GLSL-Debugger / GLSL-Debugger

GLSL source level debugger.
http://glsl-debugger.github.io/
Other
472 stars 78 forks source link

Build fails #56

Open AndreasLeeb opened 6 years ago

AndreasLeeb commented 6 years ago

Running cmake works, however when I run mingw32-make on the project I get the following error:

CMakeFiles\glslang.dir/objects.a(generated_glsl_parser.cpp.obj): In function `ZN 11TIntermNodeD2Ev': c:/users/user/downloads/glsldebugger/glsl-debugger-glsl-debugger-06cb427/glslcom piler/glslang/include/intermediate.h:493: undefined reference to `_imp__freeShCh angeableList' collect2.exe: error: ld returned 1 exit status GLSLCompiler\glslang\MachineIndependent\CMakeFiles\glslang.dir\build.make:466: r ecipe for target 'bin/libglslang.dll' failed mingw32-make[2]: [bin/libglslang.dll] Error 1 CMakeFiles\Makefile2:344: recipe for target 'GLSLCompiler/glslang/MachineIndepen dent/CMakeFiles/glslang.dir/all' failed mingw32-make[1]: [GLSLCompiler/glslang/MachineIndependent/CMakeFiles/glslang .dir/all] Error 2 Makefile:128: recipe for target 'all' failed mingw32-make: *** [all] Error 2

If I run cmake with -D USE_MESA=ON and run make on the project I get this error:

[ 52%] Generate enumerants: C:/Users/user/Downloads/glsldebugger/GLSL-Debugger-G LSL-Debugger-06cb427/build/glsldb/DebugLib/generated/glenumerants.h Can't locate genTools.pm in @INC (you may need to install the genTools module) ( @INC contains: D:/Strawberry/perl/site/lib D:/Strawberry/perl/vendor/lib D:/Stra wberry/perl/lib) at Enumerants.pl line 32. glsldb\DebugLib\generator\CMakeFiles\generation.dir\build.make:69: recipe for ta rget 'glsldb/DebugLib/generated/glenumerants.h' failed mingw32-make[2]: [glsldb/DebugLib/generated/glenumerants.h] Error 2 mingw32-make[2]: Deleting file 'glsldb/DebugLib/generated/glenumerants.h' CMakeFiles\Makefile2:640: recipe for target 'glsldb/DebugLib/generator/CMakeFile s/generation.dir/all' failed mingw32-make[1]: [glsldb/DebugLib/generator/CMakeFiles/generation.dir/all] E rror 2 Makefile:128: recipe for target 'all' failed mingw32-make: [all] Error 2

lejar commented 6 years ago

I get past the genlib part, but it fails later for me if I use -D USE_MESA=ON

[ 91%] Linking CXX executable ../bin/glsldb.exe
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
lejar commented 6 years ago

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]