glsl-optimizer icon indicating copy to clipboard operation
glsl-optimizer copied to clipboard

Building on WinGW fails partly

Open wingrime opened this issue 8 years ago • 0 comments

Using minGW that comes with Qt toolchain:

cmake -G "MinGW Makefiles" 
mingw32-make -j8

Gives link error:

[  7%] Built target mesa
[ 97%] Built target glsl_optimizer
Linking CXX executable glsl_compiler.exe
libglsl_optimizer.a(standalone_scaffolding.cpp.obj):standalone_scaffolding.cpp:(
.text+0x12): multiple definition of `_mesa_error_no_memory'
CMakeFiles\glsl_compiler.dir/objects.a(main.cpp.obj):main.cpp:(.text+0x0): first
 defined here
collect2.exe: error: ld returned 1 exit status
CMakeFiles\glsl_compiler.dir\build.make:90: recipe for target 'glsl_compiler.exe
' failed
mingw32-make[2]: *** [glsl_compiler.exe] Error 1
CMakeFiles\Makefile2:96: recipe for target 'CMakeFiles/glsl_compiler.dir/all' fa
iled
mingw32-make[1]: *** [CMakeFiles/glsl_compiler.dir/all] Error 2
Makefile:75: recipe for target 'all' failed
mingw32-make: *** [all] Error 2

wingrime avatar Sep 14 '15 16:09 wingrime