2019-12-08 15:33 CET

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0006111Spring engineLinuxpublic2019-01-13 08:48
Reporterhoijui 
Assigned To 
PrioritynormalSeveritytweakReproducibilityhave not tried
StatusnewResolutionopen 
Product Version104.0 +git 
Target VersionFixed in Version 
Summary0006111: cmake -DOpenGL_GL_PREFERENCE="GLVND" && make spring fails to link with: undefined reference to 'gl...' (OpenGL)
DescriptionA fresh CMake configuration and compile on an up-to-date Debian testing machine.

version:
104.0.1-1404-gfe494aa develop ()
Steps To Reproducemkdir -p build
cd build
cmake -DOpenGL_GL_PREFERENCE="GLVND" ..
make
Additional Informationstdout:
[ 51%] Linking CXX executable ../../../spring
cd /home/hoijui/src/spring/build/rts/builds/legacy && /usr/bin/cmake -E cmake_link_script CMakeFiles/engine-legacy.dir/link.txt --verbose=1
/usr/bin/c++ -fuse-ld=gold -std=gnu++11 -fdiagnostics-color=auto -mtune=generic -msse -mfpmath=sse -mno-sse2 -mno-sse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -mno-sse4 -mno-sse4a -mno-avx -mno-fma -mno-fma4 -mno-xop -mno-lwp -mno-avx2 -fsingle-precision-constant -frounding-math -mieee-fp -pipe -fno-strict-aliasing -fvisibility=hidden -fvisibility-inlines-hidden -pthread -O2 -Wformat -Wformat-security -DNDEBUG -g -Wl,--icf=all -Wl,-O3 -rdynamic CMakeFiles/engine-legacy.dir/__/__/Game/Action.cpp.o CMakeFiles/engine-legacy.dir/__/__/Game/AviVideoCapturing.cpp.o
...(many .o files here)...
CMakeFiles/engine-legacy.dir/__/__/ExternalAI/SkirmishAIWrapper.cpp.o -o ../../../spring -Wl,-Bstatic -lSDL2main -lSDL2main -Wl,-Bdynamic -lSDL2 -lpthread -lpthread -lGLU -lGLEW -lfontconfig -lfreetype -lXcursor -lX11 ../../System/Sound/libsound.a ../../System/Net/libengineSystemNet.a -ldl -lIL ../../lib/7z/lib7zip.a -lminizip -lz ../../lib/lua/liblua.a ../../lib/luasocket/libluasocket.a ../../System/FileSystem/Archives/libarchives.a ../../lib/assimp/code/libassimp.a ../../lib/gflags/libgflags_nothreads.a ../../lib/streflop/libstreflop.a -lunwind ../../aGui/libengineaGui.a -Wl,-whole-archive ../../Sim/libengineSim.a -Wl,-no-whole-archive ../../Sim/libengineSim.a ../../../tools/pr-downloader/src/libpr-downloader_static.a -lvorbisfile -lvorbis -logg -lopenal ../../lib/7z/lib7zip.a ../../lib/assimp/contrib/irrXML/libIrrXML.a -ldl ../../../tools/pr-downloader/src/libDownloader.a -lcurl -lminizip -lz ../../../tools/pr-downloader/src/lib/md5/libpr-md5.a ../../../tools/pr-downloader/src/lib/sha1/libpr-sha1.a ../../../tools/pr-downloader/src/lib/bencode/libbencode.a ../../../tools/pr-downloader/src/lib/7z/libpr-7z.a
make[2]: Leaving directory '/home/hoijui/src/spring/build'
make[1]: Leaving directory '/home/hoijui/src/spring/build'


stderr:
Spring engine version: 104.0.1-1404-gfe494aa develop ()
/home/hoijui/src/spring/rts/Game/Game.cpp:1339: error: undefined reference to 'glEnable'
/home/hoijui/src/spring/rts/Game/Game.cpp:1360: error: undefined reference to 'glEnable'
/home/hoijui/src/spring/rts/Game/SelectedUnitsHandler.cpp:869: error: undefined reference to 'glDisable'
/home/hoijui/src/spring/rts/Game/UI/CursorIcons.cpp:64: error: undefined reference to 'glBindTexture'
/home/hoijui/src/spring/rts/Game/UI/EndGameBox.cpp:88: error: undefined reference to 'glDeleteTextures'
/home/hoijui/src/spring/rts/Game/UI/EndGameBox.cpp:349: error: undefined reference to 'glBindTexture'
/home/hoijui/src/spring/rts/Game/UI/EndGameBox.cpp:355: error: undefined reference to 'glBindTexture'
/home/hoijui/src/spring/rts/Game/UI/GuiHandler.cpp:2568: error: undefined reference to 'glBindTexture'
/home/hoijui/src/spring/rts/Game/UI/GuiHandler.cpp:4372: error: undefined reference to 'glEnable'
/home/hoijui/src/spring/rts/Game/UI/GuiHandler.cpp:4373: error: undefined reference to 'glLogicOp'
/home/hoijui/src/spring/rts/Game/UI/GuiHandler.cpp:4375: error: undefined reference to 'glDisable'
/home/hoijui/src/spring/rts/Game/UI/MiniMap.cpp:1505: error: undefined reference to 'glColor4f'
/home/hoijui/src/spring/rts/Game/UI/MiniMap.cpp:1534: error: undefined reference to 'glEnable'
/home/hoijui/src/spring/rts/Game/UI/MiniMap.cpp:1541: error: undefined reference to 'glDisable'
/home/hoijui/src/spring/rts/Game/UI/MiniMap.cpp:1641: error: undefined reference to 'glClipPlane'
/home/hoijui/src/spring/rts/Game/UI/MiniMap.cpp:1642: error: undefined reference to 'glClipPlane'
/home/hoijui/src/spring/rts/Game/UI/MiniMap.cpp:1643: error: undefined reference to 'glClipPlane'
/home/hoijui/src/spring/rts/Game/UI/MiniMap.cpp:1644: error: undefined reference to 'glClipPlane'
/home/hoijui/src/spring/rts/Game/UI/MiniMap.cpp:169: error: undefined reference to 'glDeleteTextures'
/home/hoijui/src/spring/rts/Game/UI/MiniMap.cpp:170: error: undefined reference to 'glDeleteTextures'
/home/hoijui/src/spring/rts/Game/UI/MiniMap.cpp:1153: error: undefined reference to 'glDisable'
/home/hoijui/src/spring/rts/Game/UI/MiniMap.cpp:1203: error: undefined reference to 'glColor4f'
/home/hoijui/src/spring/rts/Game/UI/MiniMap.cpp:1208: error: undefined reference to 'glColor4fv'
/home/hoijui/src/spring/rts/Game/UI/MiniMap.cpp:1192: error: undefined reference to 'glColor4f'
/home/hoijui/src/spring/rts/Game/UI/MiniMap.cpp:1196: error: undefined reference to 'glColor4f'
/home/hoijui/src/spring/rts/Game/UI/MiniMap.cpp:1483: error: undefined reference to 'glBegin'
/home/hoijui/src/spring/rts/Game/UI/MiniMap.cpp:1484: error: undefined reference to 'glTexCoord2f'
/home/hoijui/src/spring/rts/Game/UI/MiniMap.cpp:1484: error: undefined reference to 'glVertex2f'
/home/hoijui/src/spring/rts/Game/UI/MiniMap.cpp:1485: error: undefined reference to 'glTexCoord2f'
/home/hoijui/src/spring/rts/Game/UI/MiniMap.cpp:1485: error: undefined reference to 'glVertex2f'
/home/hoijui/src/spring/rts/Game/UI/MiniMap.cpp:1486: error: undefined reference to 'glTexCoord2f'
/home/hoijui/src/spring/rts/Game/UI/MiniMap.cpp:1486: error: undefined reference to 'glVertex2f'
/home/hoijui/src/spring/rts/Game/UI/MiniMap.cpp:1487: error: undefined reference to 'glTexCoord2f'
/home/hoijui/src/spring/rts/Game/UI/MiniMap.cpp:1487: error: undefined reference to 'glVertex2f'
/home/hoijui/src/spring/rts/Game/UI/MiniMap.cpp:1488: error: undefined reference to 'glEnd'
/home/hoijui/src/spring/rts/Game/UI/MiniMap.cpp:955: error: undefined reference to 'glDeleteTextures'
/home/hoijui/src/spring/rts/Game/UI/MiniMap.cpp:956: error: undefined reference to 'glGenTextures'
/home/hoijui/src/spring/rts/Game/UI/MiniMap.cpp:959: error: undefined reference to 'glTexParameteri'
/home/hoijui/src/spring/rts/Game/UI/MiniMap.cpp:960: error: undefined reference to 'glTexParameteri'
/home/hoijui/src/spring/rts/Game/UI/MiniMap.cpp:961: error: undefined reference to 'glTexParameteri'
/home/hoijui/src/spring/rts/Game/UI/MiniMap.cpp:962: error: undefined reference to 'glTexParameteri'
/home/hoijui/src/spring/rts/Game/UI/MiniMap.cpp:963: error: undefined reference to 'glTexImage2D'
/home/hoijui/src/spring/rts/Game/UI/MiniMap.cpp:112: error: undefined reference to 'glGenTextures'
/home/hoijui/src/spring/rts/Game/UI/MiniMap.cpp:114: error: undefined reference to 'glTexImage2D'
/home/hoijui/src/spring/rts/Lua/LuaFBOs.cpp:499: error: undefined reference to 'glGetIntegerv'
/home/hoijui/src/spring/rts/Lua/LuaFBOs.cpp:460: error: undefined reference to 'glGetIntegerv'
/home/hoijui/src/spring/rts/Lua/LuaFBOs.cpp:582: error: undefined reference to 'glGetIntegerv'
/home/hoijui/src/spring/rts/Lua/LuaFBOs.cpp:335: error: undefined reference to 'glDrawBuffer'
/home/hoijui/src/spring/rts/Lua/LuaFBOs.cpp:214: error: undefined reference to 'glGetIntegerv'
/home/hoijui/src/spring/rts/Lua/LuaFBOs.cpp:225: error: undefined reference to 'glReadBuffer'
/home/hoijui/src/spring/rts/Lua/LuaOpenGL.cpp:919: error: undefined reference to 'glGetString'
/home/hoijui/src/spring/rts/Lua/LuaOpenGL.cpp:1705: error: undefined reference to 'glBegin'
/home/hoijui/src/spring/rts/Lua/LuaOpenGL.cpp:1707: error: undefined reference to 'glEnd'
/home/hoijui/src/spring/rts/Lua/LuaOpenGL.cpp:1612: error: undefined reference to 'glBegin'
/home/hoijui/src/spring/rts/Lua/LuaOpenGL.cpp:1618: error: undefined reference to 'glVertex3f'
/home/hoijui/src/spring/rts/Lua/LuaOpenGL.cpp:1619: error: undefined reference to 'glVertex3f'
/home/hoijui/src/spring/rts/Lua/LuaOpenGL.cpp:1621: error: undefined reference to 'glEnd'
/home/hoijui/src/spring/rts/Lua/LuaOpenGL.cpp:1672: error: undefined reference to 'glBegin'
/home/hoijui/src/spring/rts/Lua/LuaOpenGL.cpp:1679: error: undefined reference to 'glVertex3f'
/home/hoijui/src/spring/rts/Lua/LuaOpenGL.cpp:1681: error: undefined reference to 'glVertex3f'
/home/hoijui/src/spring/rts/Lua/LuaOpenGL.cpp:1684: error: undefined reference to 'glEnd'
/home/hoijui/src/spring/rts/Lua/LuaOpenGL.cpp:1771: error: undefined reference to 'glVertex4f'
/home/hoijui/src/spring/rts/Lua/LuaOpenGL.cpp:1751: error: undefined reference to 'glVertex4f'
/home/hoijui/src/spring/rts/Lua/LuaOpenGL.cpp:1852: error: undefined reference to 'glTexCoord3f'
/home/hoijui/src/spring/rts/Lua/LuaOpenGL.cpp:1876: error: undefined reference to 'glTexCoord4f'
/home/hoijui/src/spring/rts/Lua/LuaOpenGL.cpp:1827: error: undefined reference to 'glTexCoord1f'
/home/hoijui/src/spring/rts/Lua/LuaOpenGL.cpp:1869: error: undefined reference to 'glTexCoord3f'
/home/hoijui/src/spring/rts/Lua/LuaOpenGL.cpp:1856: error: undefined reference to 'glTexCoord4f'
/home/hoijui/src/spring/rts/Lua/LuaOpenGL.cpp:1840: error: undefined reference to 'glTexCoord1f'
/home/hoijui/src/spring/rts/Lua/LuaOpenGL.cpp:1894: error: undefined reference to 'glRectf'
/home/hoijui/src/spring/rts/Lua/LuaOpenGL.cpp:2038: error: undefined reference to 'glScissor'
/home/hoijui/src/spring/rts/Lua/LuaOpenGL.cpp:2477: error: undefined reference to 'glLineStipple'
/home/hoijui/src/spring/rts/Lua/LuaOpenGL.cpp:3223: error: undefined reference to 'glGetFloatv'
/home/hoijui/src/spring/rts/Lua/LuaOpenGL.cpp:3320: error: undefined reference to 'glFlush'
/home/hoijui/src/spring/rts/Lua/LuaOpenGL.cpp:3320: error: undefined reference to 'glFlush'
/home/hoijui/src/spring/rts/Lua/LuaOpenGL.cpp:3327: error: undefined reference to 'glFinish'
/home/hoijui/src/spring/rts/Lua/LuaOpenGL.cpp:3327: error: undefined reference to 'glFinish'
/home/hoijui/src/spring/rts/Lua/LuaOpenGL.cpp:1813: error: undefined reference to 'glNormal3f'
/home/hoijui/src/spring/rts/Lua/LuaOpenGL.cpp:1806: error: undefined reference to 'glNormal3f'
/home/hoijui/src/spring/rts/Lua/LuaOpenGL.cpp:2181: error: undefined reference to 'glLogicOp'
/home/hoijui/src/spring/rts/Lua/LuaOpenGL.cpp:3393: error: undefined reference to 'glReadPixels'
/home/hoijui/src/spring/rts/Lua/LuaOpenGL.cpp:908: error: undefined reference to 'glGetFloatv'
/home/hoijui/src/spring/rts/Lua/LuaOpenGL.cpp:908: error: undefined reference to 'glGetFloatv'
/home/hoijui/src/spring/rts/Lua/LuaOpenGL.cpp:1989: error: undefined reference to 'glColor4fv'
/home/hoijui/src/spring/rts/Lua/LuaOpenGL.cpp:2774: error: undefined reference to 'glCopyTexSubImage2D'
/home/hoijui/src/spring/rts/Lua/LuaOpenGL.cpp:3491: error: undefined reference to 'glReadPixels'
/home/hoijui/src/spring/rts/Lua/LuaOpenGL.cpp:3485: error: undefined reference to 'glReadPixels'
/home/hoijui/src/spring/rts/Lua/LuaTextures.cpp:19: error: undefined reference to 'glGenTextures'
/home/hoijui/src/spring/rts/Lua/LuaTextures.cpp:33: error: undefined reference to 'glTexImage2D'
/home/hoijui/src/spring/rts/Lua/LuaTextures.cpp:37: error: undefined reference to 'glGetError'
/home/hoijui/src/spring/rts/Lua/LuaTextures.cpp:177: error: undefined reference to 'glTexParameterf'
/home/hoijui/src/spring/rts/Map/HeightMapTexture.cpp:92: error: undefined reference to 'glTexSubImage2D'
/home/hoijui/src/spring/rts/Map/HeightMapTexture.cpp:38: error: undefined reference to 'glGenTextures'
/home/hoijui/src/spring/rts/Map/HeightMapTexture.cpp:47: error: undefined reference to 'glTexImage2D'
/home/hoijui/src/spring/rts/Map/Generation/MapGenerator.cpp:238: error: undefined reference to 'glGetError'
/home/hoijui/src/spring/rts/Map/SMF/SMFGroundTextures.cpp:478: error: undefined reference to 'glTexParameterf'
/home/hoijui/src/spring/rts/Map/SMF/SMFGroundTextures.cpp:473: error: undefined reference to 'glTexParameterf'
/home/hoijui/src/spring/rts/Map/SMF/SMFReadMap.cpp:733: error: undefined reference to 'glTexEnvi'
/home/hoijui/src/spring/rts/Map/SMF/SMFReadMap.cpp:734: error: undefined reference to 'glTexEnvi'
/home/hoijui/src/spring/rts/Map/SMF/SMFReadMap.cpp:766: error: undefined reference to 'glTexEnvi'
/home/hoijui/src/spring/rts/Map/SMF/SMFReadMap.cpp:702: error: undefined reference to 'glTexSubImage2D'
/home/hoijui/src/spring/rts/Map/SMF/SMFReadMap.cpp:587: error: undefined reference to 'glTexSubImage2D'
/home/hoijui/src/spring/rts/Map/SMF/SMFReadMap.cpp:341: error: undefined reference to 'glTexParameterf'
/home/hoijui/src/spring/rts/Map/SMF/SMFReadMap.cpp:543: error: undefined reference to 'glTexSubImage2D'
/home/hoijui/src/spring/rts/Map/SMF/Basic/BasicMeshDrawer.cpp:675: error: undefined reference to 'glDrawElements'
/home/hoijui/src/spring/rts/Map/SMF/Basic/BasicMeshDrawer.cpp:627: error: undefined reference to 'glDrawElements'
/home/hoijui/src/spring/rts/Map/SMF/ROAM/Patch.cpp:603: error: undefined reference to 'glDrawArrays'
/home/hoijui/src/spring/rts/Rendering/Env/AdvTreeGenerator.cpp:399: error: undefined reference to 'glReadPixels'
/home/hoijui/src/spring/rts/Rendering/Env/AdvTreeGenerator.cpp:247: error: undefined reference to 'glDrawArrays'
/home/hoijui/src/spring/rts/Rendering/Env/BumpWater.cpp:1082: error: undefined reference to 'glCopyTexSubImage2D'
/home/hoijui/src/spring/rts/Rendering/Env/BumpWater.cpp:1076: error: undefined reference to 'glCopyTexSubImage2D'
/home/hoijui/src/spring/rts/Rendering/Env/BumpWater.cpp:865: error: undefined reference to 'glDrawBuffer'
/home/hoijui/src/spring/rts/Rendering/Env/BumpWater.cpp:165: error: undefined reference to 'glGetTexLevelParameteriv'
/home/hoijui/src/spring/rts/Rendering/Env/BumpWater.cpp:166: error: undefined reference to 'glGetTexLevelParameteriv'
/home/hoijui/src/spring/rts/Rendering/Env/Decals/DecalsDrawerGL4.cpp:770: error: undefined reference to 'glCopyTexSubImage2D'
/home/hoijui/src/spring/rts/Rendering/Env/Particles/Classes/FlyingPiece.cpp:244: error: undefined reference to 'glDrawElements'
/home/hoijui/src/spring/rts/Rendering/FarTextureHandler.cpp:332: error: undefined reference to 'glGetTexImage'
/home/hoijui/src/spring/rts/Rendering/GL/FBO.cpp:42: error: undefined reference to 'glGetTexLevelParameteriv'
/home/hoijui/src/spring/rts/Rendering/GL/FBO.cpp:179: error: undefined reference to 'glIsTexture'
/home/hoijui/src/spring/rts/Rendering/GL/FBO.cpp:190: error: undefined reference to 'glTexImage1D'
/home/hoijui/src/spring/rts/Rendering/GL/FBO.cpp:140: error: undefined reference to 'glGetTexImage'
/home/hoijui/src/spring/rts/Rendering/GL/FBO.cpp:100: error: undefined reference to 'glGetTexLevelParameteriv'
/home/hoijui/src/spring/rts/Rendering/GL/FBO.cpp:135: error: undefined reference to 'glReadBuffer'
/home/hoijui/src/spring/rts/Rendering/GL/FBO.cpp:164: error: undefined reference to 'glReadBuffer'
/home/hoijui/src/spring/rts/Rendering/GL/AttribState.cpp:21: error: undefined reference to 'glGetError'
/home/hoijui/src/spring/rts/Rendering/GL/AttribState.cpp:22: error: undefined reference to 'glGetFloatv'
/home/hoijui/src/spring/rts/Rendering/GL/AttribState.cpp:621: error: undefined reference to 'glCullFace'
/home/hoijui/src/spring/rts/Rendering/GL/AttribState.cpp:610: error: undefined reference to 'glFrontFace'
/home/hoijui/src/spring/rts/Rendering/GL/AttribState.cpp:411: error: undefined reference to 'glDepthFunc'
/home/hoijui/src/spring/rts/Rendering/GL/AttribState.cpp:400: error: undefined reference to 'glDepthMask'
/home/hoijui/src/spring/rts/Rendering/GL/AttribState.cpp:494: error: undefined reference to 'glStencilMask'
/home/hoijui/src/spring/rts/Rendering/GL/AttribState.cpp:618: error: undefined reference to 'glCullFace'
/home/hoijui/src/spring/rts/Rendering/GL/AttribState.cpp:607: error: undefined reference to 'glFrontFace'
/home/hoijui/src/spring/rts/Rendering/GL/AttribState.cpp:408: error: undefined reference to 'glDepthFunc'
/home/hoijui/src/spring/rts/Rendering/GL/AttribState.cpp:397: error: undefined reference to 'glDepthMask'
/home/hoijui/src/spring/rts/Rendering/GL/AttribState.cpp:491: error: undefined reference to 'glStencilMask'
/home/hoijui/src/spring/rts/Rendering/GL/AttribState.cpp:21: error: undefined reference to 'glGetError'
/home/hoijui/src/spring/rts/Rendering/GL/AttribState.cpp:91: error: undefined reference to 'glIsEnabled'
/home/hoijui/src/spring/rts/Rendering/GL/AttribState.cpp:92: error: undefined reference to 'glIsEnabled'
/home/hoijui/src/spring/rts/Rendering/GL/AttribState.cpp:397: error: undefined reference to 'glDepthMask'
/home/hoijui/src/spring/rts/Rendering/GL/AttribState.cpp:408: error: undefined reference to 'glDepthFunc'
/home/hoijui/src/spring/rts/Rendering/GL/AttribState.cpp:95: error: undefined reference to 'glIsEnabled'
/home/hoijui/src/spring/rts/Rendering/GL/AttribState.cpp:100: error: undefined reference to 'glIsEnabled'
/home/hoijui/src/spring/rts/Rendering/GL/AttribState.cpp:607: error: undefined reference to 'glFrontFace'
/home/hoijui/src/spring/rts/Rendering/GL/AttribState.cpp:618: error: undefined reference to 'glCullFace'
/home/hoijui/src/spring/rts/Rendering/GL/AttribState.cpp:672: error: undefined reference to 'glLineWidth'
/home/hoijui/src/spring/rts/Rendering/GL/AttribState.cpp:394: error: undefined reference to 'glDepthMask'
/home/hoijui/src/spring/rts/Rendering/GL/AttribState.cpp:405: error: undefined reference to 'glDepthFunc'
/home/hoijui/src/spring/rts/Rendering/GL/AttribState.cpp:427: error: undefined reference to 'glAlphaFunc'
/home/hoijui/src/spring/rts/Rendering/GL/AttribState.cpp:427: error: undefined reference to 'glAlphaFunc'
/home/hoijui/src/spring/rts/Rendering/GL/AttribState.cpp:427: error: undefined reference to 'glAlphaFunc'
/home/hoijui/src/spring/rts/Rendering/GL/AttribState.cpp:441: error: undefined reference to 'glBlendFunc'
/home/hoijui/src/spring/rts/Rendering/GL/AttribState.cpp:441: error: undefined reference to 'glBlendFunc'
/home/hoijui/src/spring/rts/Rendering/GL/AttribState.cpp:441: error: undefined reference to 'glBlendFunc'
/home/hoijui/src/spring/rts/Rendering/GL/AttribState.cpp:488: error: undefined reference to 'glStencilMask'
/home/hoijui/src/spring/rts/Rendering/GL/AttribState.cpp:491: error: undefined reference to 'glStencilMask'
/home/hoijui/src/spring/rts/Rendering/GL/AttribState.cpp:498: error: undefined reference to 'glStencilFunc'
/home/hoijui/src/spring/rts/Rendering/GL/AttribState.cpp:512: error: undefined reference to 'glStencilOp'
/home/hoijui/src/spring/rts/Rendering/GL/AttribState.cpp:527: error: undefined reference to 'glPolygonMode'
/home/hoijui/src/spring/rts/Rendering/GL/AttribState.cpp:527: error: undefined reference to 'glPolygonMode'
/home/hoijui/src/spring/rts/Rendering/GL/AttribState.cpp:527: error: undefined reference to 'glPolygonMode'
/home/hoijui/src/spring/rts/Rendering/GL/AttribState.cpp:541: error: undefined reference to 'glPolygonOffset'
/home/hoijui/src/spring/rts/Rendering/GL/AttribState.cpp:541: error: undefined reference to 'glPolygonOffset'
/home/hoijui/src/spring/rts/Rendering/GL/AttribState.cpp:541: error: undefined reference to 'glPolygonOffset'
/home/hoijui/src/spring/rts/Rendering/GL/AttribState.cpp:588: error: undefined reference to 'glViewport'
/home/hoijui/src/spring/rts/Rendering/GL/AttribState.cpp:604: error: undefined reference to 'glFrontFace'
/home/hoijui/src/spring/rts/Rendering/GL/AttribState.cpp:615: error: undefined reference to 'glCullFace'
/home/hoijui/src/spring/rts/Rendering/GL/AttribState.cpp:653: error: undefined reference to 'glColorMask'
/home/hoijui/src/spring/rts/Rendering/GL/AttribState.cpp:675: error: undefined reference to 'glLineWidth'
/home/hoijui/src/spring/rts/Rendering/GL/AttribState.cpp:672: error: undefined reference to 'glLineWidth'
/home/hoijui/src/spring/rts/Rendering/GL/AttribState.cpp:669: error: undefined reference to 'glLineWidth'
/home/hoijui/src/spring/rts/Rendering/GL/AttribState.cpp:680: error: undefined reference to 'glClear'
/home/hoijui/src/spring/rts/Rendering/GL/AttribState.cpp:682: error: undefined reference to 'glClearAccum'
/home/hoijui/src/spring/rts/Rendering/GL/AttribState.cpp:691: error: undefined reference to 'glClearColor'
/home/hoijui/src/spring/rts/Rendering/GL/AttribState.cpp:694: error: undefined reference to 'glClearDepth'
/home/hoijui/src/spring/rts/Rendering/GL/AttribState.cpp:697: error: undefined reference to 'glClearStencil'
/home/hoijui/src/spring/rts/Rendering/GL/MatrixState.cpp:79: error: undefined reference to 'glMatrixMode'
/home/hoijui/src/spring/rts/Rendering/GL/MatrixState.cpp:176: error: undefined reference to 'glPushMatrix'
/home/hoijui/src/spring/rts/Rendering/GL/MatrixState.cpp:177: error: undefined reference to 'glPopMatrix'
/home/hoijui/src/spring/rts/Rendering/GL/MatrixState.cpp:179: error: undefined reference to 'glMultMatrixf'
/home/hoijui/src/spring/rts/Rendering/GL/MatrixState.cpp:180: error: undefined reference to 'glLoadMatrixf'
/home/hoijui/src/spring/rts/Rendering/GL/MatrixState.cpp:181: error: undefined reference to 'glLoadIdentity'
/home/hoijui/src/spring/rts/Rendering/GL/MatrixState.cpp:183: error: undefined reference to 'glTranslatef'
/home/hoijui/src/spring/rts/Rendering/GL/MatrixState.cpp:184: error: undefined reference to 'glTranslatef'
/home/hoijui/src/spring/rts/Rendering/GL/MatrixState.cpp:185: error: undefined reference to 'glScalef'
/home/hoijui/src/spring/rts/Rendering/GL/MatrixState.cpp:186: error: undefined reference to 'glScalef'
/home/hoijui/src/spring/rts/Rendering/GL/MatrixState.cpp:187: error: undefined reference to 'glRotatef'
/home/hoijui/src/spring/rts/Rendering/GL/MatrixState.cpp:188: error: undefined reference to 'glRotatef'
/home/hoijui/src/spring/rts/Rendering/GL/MatrixState.cpp:189: error: undefined reference to 'glRotatef'
/home/hoijui/src/spring/rts/Rendering/GL/MatrixState.cpp:190: error: undefined reference to 'glRotatef'
/home/hoijui/src/spring/rts/Rendering/GL/RenderDataBuffer.cpp:373: error: undefined reference to 'glDrawArrays'
/home/hoijui/src/spring/rts/Rendering/GL/RenderDataBuffer.cpp:392: error: undefined reference to 'glDrawElements'
/home/hoijui/src/spring/rts/Rendering/GL/VertexArray.cpp:122: error: undefined reference to 'glDrawArrays'
/home/hoijui/src/spring/rts/Rendering/GL/VertexArray.cpp:334: error: undefined reference to 'glEnableClientState'
/home/hoijui/src/spring/rts/Rendering/GL/VertexArray.cpp:335: error: undefined reference to 'glEnableClientState'
/home/hoijui/src/spring/rts/Rendering/GL/VertexArray.cpp:336: error: undefined reference to 'glEnableClientState'
/home/hoijui/src/spring/rts/Rendering/GL/VertexArray.cpp:337: error: undefined reference to 'glVertexPointer'
/home/hoijui/src/spring/rts/Rendering/GL/VertexArray.cpp:338: error: undefined reference to 'glTexCoordPointer'
/home/hoijui/src/spring/rts/Rendering/GL/VertexArray.cpp:339: error: undefined reference to 'glColorPointer'
/home/hoijui/src/spring/rts/Rendering/GL/VertexArray.cpp:341: error: undefined reference to 'glDisableClientState'
/home/hoijui/src/spring/rts/Rendering/GL/VertexArray.cpp:342: error: undefined reference to 'glDisableClientState'
/home/hoijui/src/spring/rts/Rendering/GL/VertexArray.cpp:207: error: undefined reference to 'glEnableClientState'
/home/hoijui/src/spring/rts/Rendering/GL/VertexArray.cpp:208: error: undefined reference to 'glVertexPointer'
/home/hoijui/src/spring/rts/Rendering/GL/VertexArray.cpp:220: error: undefined reference to 'glVertexPointer'
/home/hoijui/src/spring/rts/Rendering/GL/VertexArray.cpp:233: error: undefined reference to 'glVertexPointer'
/home/hoijui/src/spring/rts/Rendering/GL/VertexArray.cpp:234: error: undefined reference to 'glColorPointer'
/home/hoijui/src/spring/rts/Rendering/GL/VertexArray.cpp:236: error: undefined reference to 'glDisableClientState'
/home/hoijui/src/spring/rts/Rendering/GL/VertexArray.cpp:250: error: undefined reference to 'glTexCoordPointer'
/home/hoijui/src/spring/rts/Rendering/GL/VertexArray.cpp:252: error: undefined reference to 'glDisableClientState'
/home/hoijui/src/spring/rts/Rendering/GL/VertexArray.cpp:266: error: undefined reference to 'glTexCoordPointer'
/home/hoijui/src/spring/rts/Rendering/GL/VertexArray.cpp:301: error: undefined reference to 'glTexCoordPointer'
/home/hoijui/src/spring/rts/Rendering/GL/VertexArray.cpp:320: error: undefined reference to 'glNormalPointer'
/home/hoijui/src/spring/rts/Rendering/GL/VertexArray.cpp:284: error: undefined reference to 'glColorPointer'
/home/hoijui/src/spring/rts/Rendering/GL/myGL.cpp:151: error: undefined reference to 'glXGetProcAddress'
/home/hoijui/src/spring/rts/Rendering/GL/myGL.cpp:252: error: undefined reference to 'glGetTexImage'
/home/hoijui/src/spring/rts/Rendering/GlobalRendering.cpp:1143: error: undefined reference to 'glClearDepth'
/home/hoijui/src/spring/rts/Rendering/GlobalRendering.cpp:1167: error: undefined reference to 'glClearColor'
/home/hoijui/src/spring/rts/Rendering/GlobalRendering.cpp:1168: error: undefined reference to 'glClear'
/home/hoijui/src/spring/rts/Rendering/GlobalRendering.cpp:1170: error: undefined reference to 'glViewport'
/home/hoijui/src/spring/rts/Rendering/GlobalRendering.cpp:832: error: undefined reference to 'glGetString'
/home/hoijui/src/spring/rts/Rendering/GlobalRendering.cpp:833: error: undefined reference to 'glGetString'
/home/hoijui/src/spring/rts/Rendering/GlobalRendering.cpp:834: error: undefined reference to 'glGetString'
/home/hoijui/src/spring/rts/Rendering/LineDrawer.cpp:50: error: undefined reference to 'glLineStipple'
/home/hoijui/src/spring/rts/Rendering/ShadowHandler.cpp:374: error: undefined reference to 'glDrawBuffer'
/home/hoijui/src/spring/rts/Rendering/ShadowHandler.cpp:375: error: undefined reference to 'glReadBuffer'
/home/hoijui/src/spring/rts/Rendering/ShadowHandler.cpp:312: error: undefined reference to 'glTexParameterfv'
/home/hoijui/src/spring/rts/Rendering/ShadowHandler.cpp:334: error: undefined reference to 'glDrawBuffer'
/home/hoijui/src/spring/rts/Rendering/Textures/NamedTextures.cpp:237: error: undefined reference to 'glTexParameterfv'
/home/hoijui/src/spring/rts/Rendering/Textures/nv_dds.cpp:758: error: undefined reference to 'glTexImage1D'
/home/hoijui/src/spring/rts/Rendering/Textures/nv_dds.cpp:766: error: undefined reference to 'glTexImage1D'
/home/hoijui/src/spring/rts/Rendering/Textures/nv_dds.cpp:771: error: undefined reference to 'glPixelStorei'
/home/hoijui/src/spring/rts/Rendering/Textures/nv_dds.cpp:755: error: undefined reference to 'glPixelStorei'
/home/hoijui/src/spring/rts/Rendering/Textures/nv_dds.cpp:842: error: undefined reference to 'glPixelStorei'
/home/hoijui/src/spring/rts/Rendering/Textures/nv_dds.cpp:825: error: undefined reference to 'glPixelStorei'
/home/hoijui/src/spring/rts/Rendering/Fonts/CFontTexture.cpp:682: error: undefined reference to 'glTexParameterfv'
/home/hoijui/src/spring/rts/aGui/LineEdit.cpp:77: error: undefined reference to 'glRectf'
collect2: error: ld returned 1 exit status
make[2]: *** [rts/builds/legacy/CMakeFiles/engine-legacy.dir/build.make:5854: spring] Error 1
make[1]: *** [CMakeFiles/Makefile2:4085: rts/builds/legacy/CMakeFiles/engine-legacy.dir/all] Error 2
make: *** [Makefile:141: all] Error 2

TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files

-Relationships
+Relationships

-Notes

~0019637

abma (administrator)

https://cmake.org/cmake/help/v3.10/module/FindOpenGL.html

~0019660

hoijui (reporter)

if I don't specify `OpenGL_GL_PREFERENCE` when running cmake, I get this warning:


CMake Warning (dev) at /usr/share/cmake-3.13/Modules/FindOpenGL.cmake:270 (message):
  Policy CMP0072 is not set: FindOpenGL prefers GLVND by default when
  available. Run "cmake --help-policy CMP0072" for policy details. Use the
  cmake_policy command to set the policy and suppress this warning.

  FindOpenGL found both a legacy GL library:

    OPENGL_gl_LIBRARY: /usr/lib/x86_64-linux-gnu/libGL.so

  and GLVND libraries for OpenGL and GLX:

    OPENGL_opengl_LIBRARY: /usr/lib/x86_64-linux-gnu/libOpenGL.so
    OPENGL_glx_LIBRARY: /usr/lib/x86_64-linux-gnu/libGLX.so

  OpenGL_GL_PREFERENCE has not been set to "GLVND" or "LEGACY", so for
  compatibility with CMake 3.10 and below the legacy GL library will be used.
Call Stack (most recent call first):
  rts/build/cmake/PreferStaticLibs.cmake:64 (find_package)
  rts/builds/legacy/CMakeLists.txt:20 (find_package_static)
This warning is for project developers. Use -Wno-dev to suppress it.
+Notes

-Issue History
Date Modified Username Field Change
2018-12-30 16:44 hoijui New Issue
2019-01-03 15:22 abma Priority high => normal
2019-01-03 15:22 abma Severity block => tweak
2019-01-03 15:22 abma Summary spring fails to link with: undefined reference to 'gl...' (OpenGL) => cmake -DOpenGL_GL_PREFERENCE="GLVND" && make spring fails to link with: undefined reference to 'gl...' (OpenGL)
2019-01-03 15:24 abma Note Added: 0019637
2019-01-13 08:48 hoijui Note Added: 0019660
+Issue History