Open AndreasLeeb opened 6 years ago
I get past the genlib part, but it fails later for me if I use -D USE_MESA=ON
[ 91%] [32m[1mLinking CXX executable ../bin/glsldb.exe[0m
cd /C/Users/chris/Downloads/GLSL-Debugger-GLSL-Debugger-d4b997b/build/glsldb && "/C/Program Files/CMake/bin/cmake.exe" -E remove -f CMakeFiles/glsldb.dir/objects.a
cd /C/Users/chris/Downloads/GLSL-Debugger-GLSL-Debugger-d4b997b/build/glsldb && /C/MinGW/bin/ar.exe cr CMakeFiles/glsldb.dir/objects.a @CMakeFiles/glsldb.dir/objects1.rsp
cd /C/Users/chris/Downloads/GLSL-Debugger-GLSL-Debugger-d4b997b/build/glsldb && /C/MinGW/bin/g++.exe -Wall -Wfatal-errors -Wextra -std=gnu++0x -g -g -O0 -Wl,--whole-archive CMakeFiles/glsldb.dir/objects.a -Wl,--no-whole-archive -o ../bin/glsldb.exe -Wl,--out-implib,../bin/libglsldb.dll.a -Wl,--major-image-version,0,--minor-image-version,0 @CMakeFiles/glsldb.dir/linklibs.rsp
CMakeFiles/glsldb.dir/objects.a(mainWindow.cpp.obj): In function `ZN10MainWindowC2EPcRK11QStringList':
c:/Users/chris/Downloads/GLSL-Debugger-GLSL-Debugger-d4b997b/glsldb/mainWindow.cpp:164: undefined reference to `_imp__ShInitialize'
CMakeFiles/glsldb.dir/objects.a(mainWindow.cpp.obj): In function `ZN10MainWindowD2Ev':
c:/Users/chris/Downloads/GLSL-Debugger-GLSL-Debugger-d4b997b/glsldb/mainWindow.cpp:242: undefined reference to `_imp_@ShFinalize@0'
CMakeFiles/glsldb.dir/objects.a(mainWindow.cpp.obj): In function `ZN10MainWindow18getDebugVertexDataE12DbgCgOptionsP16ShChangeableListPbP9VertexBox':
c:/Users/chris/Downloads/GLSL-Debugger-GLSL-Debugger-d4b997b/glsldb/mainWindow.cpp:1382: undefined reference to `_imp__ShDebugGetProg'
CMakeFiles/glsldb.dir/objects.a(mainWindow.cpp.obj): In function `ZN10MainWindow13getDebugImageE12DbgCgOptionsP16ShChangeableListiPbPP8PixelBox':
c:/Users/chris/Downloads/GLSL-Debugger-GLSL-Debugger-d4b997b/glsldb/mainWindow.cpp:1530: undefined reference to `_imp__ShDebugGetProg'
CMakeFiles/glsldb.dir/objects.a(mainWindow.cpp.obj): In function `ZN10MainWindow19updateWatchItemDataEP9ShVarItem':
c:/Users/chris/Downloads/GLSL-Debugger-GLSL-Debugger-d4b997b/glsldb/mainWindow.cpp:1653: undefined reference to `_imp__addShChangeable'
c:/Users/chris/Downloads/GLSL-Debugger-GLSL-Debugger-d4b997b/glsldb/mainWindow.cpp:1735: undefined reference to `_imp__freeShChangeable'
CMakeFiles/glsldb.dir/objects.a(mainWindow.cpp.obj): In function `ZN10MainWindow10ShaderStepEibb':
c:/Users/chris/Downloads/GLSL-Debugger-GLSL-Debugger-d4b997b/glsldb/mainWindow.cpp:1902: undefined reference to `_imp__ShDebugJumpToNext'
CMakeFiles/glsldb.dir/objects.a(mainWindow.cpp.obj): In function `ZN10MainWindow26on_tbShaderExecute_clickedEv':
c:/Users/chris/Downloads/GLSL-Debugger-GLSL-Debugger-d4b997b/glsldb/mainWindow.cpp:2534: undefined reference to `_imp__ShConstructCompiler'
c:/Users/chris/Downloads/GLSL-Debugger-GLSL-Debugger-d4b997b/glsldb/mainWindow.cpp:2544: undefined reference to `_imp__ShCompile'
c:/Users/chris/Downloads/GLSL-Debugger-GLSL-Debugger-d4b997b/glsldb/mainWindow.cpp:2546: undefined reference to `_imp__ShGetInfoLog'
CMakeFiles/glsldb.dir/objects.a(mainWindow.cpp.obj): In function `ZN10MainWindow16cleanupDBGShaderEv':
c:/Users/chris/Downloads/GLSL-Debugger-GLSL-Debugger-d4b997b/glsldb/mainWindow.cpp:3154: undefined reference to `_imp__freeShVariableList'
c:/Users/chris/Downloads/GLSL-Debugger-GLSL-Debugger-d4b997b/glsldb/mainWindow.cpp:3155: undefined reference to `_imp__ShDestruct'
CMakeFiles/glsldb.dir/objects.a(shVarModel.cpp.obj): In function `ZN9ShVarItem15getShChangeableEv':
c:/Users/chris/Downloads/GLSL-Debugger-GLSL-Debugger-d4b997b/glsldb/shVarModel.cpp:131: undefined reference to `_imp__createShChangeable'
c:/Users/chris/Downloads/GLSL-Debugger-GLSL-Debugger-d4b997b/glsldb/shVarModel.cpp:137: undefined reference to `_imp__createShChangeableIndex'
c:/Users/chris/Downloads/GLSL-Debugger-GLSL-Debugger-d4b997b/glsldb/shVarModel.cpp:138: undefined reference to `_imp__addShIndexToChangeable'
c:/Users/chris/Downloads/GLSL-Debugger-GLSL-Debugger-d4b997b/glsldb/shVarModel.cpp:143: undefined reference to `_imp__createShChangeableIndex'
c:/Users/chris/Downloads/GLSL-Debugger-GLSL-Debugger-d4b997b/glsldb/shVarModel.cpp:144: undefined reference to `_imp__addShIndexToChangeable'
CMakeFiles/glsldb.dir/objects.a(shVarModel.cpp.obj): In function `ZN10ShVarModel18setChangedAndScopeER16ShChangeableListR10DbgRsScopeS3_':
c:/Users/chris/Downloads/GLSL-Debugger-GLSL-Debugger-d4b997b/glsldb/shVarModel.cpp:551: undefined reference to `_imp__dumpShChangeableList'
CMakeFiles/glsldb.dir/objects.a(shVarModel.cpp.obj): In function `addShVariable':
c:/Users/chris/Downloads/GLSL-Debugger-GLSL-Debugger-d4b997b/glsldb/shVarModel.cpp:1161: undefined reference to `_imp__ShGetTypeString'
c:/Users/chris/Downloads/GLSL-Debugger-GLSL-Debugger-d4b997b/glsldb/shVarModel.cpp:1167: undefined reference to `_imp__ShGetQualifierString'
c:/Users/chris/Downloads/GLSL-Debugger-GLSL-Debugger-d4b997b/glsldb/shVarModel.cpp:1226: undefined reference to `_imp__copyShVariable'
c:/Users/chris/Downloads/GLSL-Debugger-GLSL-Debugger-d4b997b/glsldb/shVarModel.cpp:1249: undefined reference to `_imp__freeShVariable'
c:/Users/chris/Downloads/GLSL-Debugger-GLSL-Debugger-d4b997b/glsldb/shVarModel.cpp:1255: undefined reference to `_imp__copyShVariable'
c:/Users/chris/Downloads/GLSL-Debugger-GLSL-Debugger-d4b997b/glsldb/shVarModel.cpp:1261: undefined reference to `_imp__freeShVariable'
c:/Users/chris/Downloads/GLSL-Debugger-GLSL-Debugger-d4b997b/glsldb/shVarModel.cpp:1267: undefined reference to `_imp__copyShVariable'
c:/Users/chris/Downloads/GLSL-Debugger-GLSL-Debugger-d4b997b/glsldb/shVarModel.cpp:1279: undefined reference to `_imp__freeShVariable'
c:/Users/chris/Downloads/GLSL-Debugger-GLSL-Debugger-d4b997b/glsldb/shVarModel.cpp:1284: undefined reference to `_imp__copyShVariable'
c:/Users/chris/Downloads/GLSL-Debugger-GLSL-Debugger-d4b997b/glsldb/shVarModel.cpp:1291: undefined reference to `_imp__freeShVariable'
collect2.exe: error: ld returned 1 exit status
make[2]: *** [bin/glsldb.exe] Error 1
make[2]: Leaving directory `/C/Users/chris/Downloads/GLSL-Debugger-GLSL-Debugger-d4b997b/build'
make[1]: *** [glsldb/CMakeFiles/glsldb.dir/all] Error 2
make[1]: Leaving directory `/C/Users/chris/Downloads/GLSL-Debugger-GLSL-Debugger-d4b997b/build'
make: *** [all] Error 2
What's interesting is that the symbols are from inside the project. There are actually compiler warnings regarding the symbols:
c:/Users/chris/Downloads/GLSL-Debugger-GLSL-Debugger-d4b997b/mesa-glsl/interface/Shader.cpp: In function 'int ShInitialize()':
c:/Users/chris/Downloads/GLSL-Debugger-GLSL-Debugger-d4b997b/mesa-glsl/interface/Shader.cpp:160:5: warning: 'int ShInitialize()' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
int ShInitialize( )
^~~~~~~~~~~~
c:/Users/chris/Downloads/GLSL-Debugger-GLSL-Debugger-d4b997b/mesa-glsl/interface/Shader.cpp: In function 'void* ShConstructCompiler(EShLanguage, int)':
c:/Users/chris/Downloads/GLSL-Debugger-GLSL-Debugger-d4b997b/mesa-glsl/interface/Shader.cpp:169:10: warning: 'void* ShConstructCompiler(EShLanguage, int)' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
Running cmake works, however when I run mingw32-make on the project I get the following error:
If I run cmake with
-D USE_MESA=ON
and run make on the project I get this error: