pixpark / gpupixel

Real-time image and video processing library similar to GPUImage, with built-in beauty filters, achieving commercial-grade beauty effects. Written in C++11 and based on OpenGL/ES.
https://gpupixel.pixpark.net/
MIT License
1.25k stars 157 forks source link

Compile using msvc #64

Open jzdcf opened 3 months ago

jzdcf commented 3 months ago

v1.2.5,32-bit,msvc,MDd(default) glfw3 will get two contextuals being referenced twice by gpupixel_app.exe and gpupixel.dll in the MSVC environment,even it runs normally under mingw. So, gpupixel was compiled into the static library

//gpupixel.lib
cmake -G "Visual Studio 16 2019" -A Win32 -B buildMsvcDebug32 -S src -DCMAKE_BUILD_TYPE=Debug
cmake --build buildMsvcDebug32
//gpupixel_app.exe
cmake -G "Visual Studio 16 2019" -A Win32 -B examples/buildMsvcDebug32 -S examples -DCMAKE_BUILD_TYPE=Debug
cmake --build examples/buildMsvcDebug32

commit_details.txt

ckJust commented 2 months ago

image 请问你有s这个问题吗 demo工程编译不过

jzdcf commented 2 months ago

image 请问你有s这个问题吗 demo工程编译不过

mingw(gcc)编译出来的动态库(DLL)默认是没有MSVC连接动态库所需要的lib文件(import library)的,需要生成lib才能链接成功