Dot icon indicating copy to clipboard operation
Dot copied to clipboard

error compiling on linux

Open cyrstem opened this issue 5 years ago • 2 comments

hi i try to compile today in linux, but i get this at the end of the make command im i missing something ?

[100%] Linking CXX executable Dot
/usr/bin/ld: ../external/liblua.a(loslib.c.o): in function `os_tmpname':
loslib.c:(.text+0x177): warning: the use of `tmpnam' is dangerous, better use `mkstemp'
/usr/bin/ld: CMakeFiles/Dot.dir/external/imgui/src/imgui_impl_opengl3.cpp.o: in function `ImGui_ImplOpenGL3_Init(char const*)':
imgui_impl_opengl3.cpp:(.text+0x28): undefined reference to `glGetIntegerv'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0x39): undefined reference to `glGetIntegerv'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0x138): undefined reference to `glGetIntegerv'
/usr/bin/ld: CMakeFiles/Dot.dir/external/imgui/src/imgui_impl_opengl3.cpp.o: in function `ImGui_ImplOpenGL3_SetupRenderState(ImDrawData*, int, int, unsigned int)':
imgui_impl_opengl3.cpp:(.text+0x1a3): undefined reference to `glEnable'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0x1aa): undefined reference to `__glewBlendEquation'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0x1c0): undefined reference to `glBlendFunc'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0x1ca): undefined reference to `glDisable'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0x1d4): undefined reference to `glDisable'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0x1de): undefined reference to `glEnable'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0x1ed): undefined reference to `glPolygonMode'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0x206): undefined reference to `glViewport'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0x32f): undefined reference to `__glewUseProgram'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0x340): undefined reference to `__glewUniform1i'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0x356): undefined reference to `__glewUniformMatrix4fv'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0x379): undefined reference to `__glewBindSampler'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0x38c): undefined reference to `__glewBindVertexArray'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0x39a): undefined reference to `__glewBindBuffer'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0x3b0): undefined reference to `__glewBindBuffer'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0x3c6): undefined reference to `__glewEnableVertexAttribArray'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0x3d7): undefined reference to `__glewEnableVertexAttribArray'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0x3e8): undefined reference to `__glewEnableVertexAttribArray'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0x3f9): undefined reference to `__glewVertexAttribPointer'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0x425): undefined reference to `__glewVertexAttribPointer'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0x451): undefined reference to `__glewVertexAttribPointer'
/usr/bin/ld: CMakeFiles/Dot.dir/external/imgui/src/imgui_impl_opengl3.cpp.o: in function `ImGui_ImplOpenGL3_RenderDrawData(ImDrawData*)':
imgui_impl_opengl3.cpp:(.text+0x51c): undefined reference to `glGetIntegerv'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0x523): undefined reference to `__glewActiveTexture'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0x53e): undefined reference to `glGetIntegerv'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0x552): undefined reference to `glGetIntegerv'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0x566): undefined reference to `glGetIntegerv'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0x57a): undefined reference to `glGetIntegerv'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0x58e): undefined reference to `glGetIntegerv'
/usr/bin/ld: CMakeFiles/Dot.dir/external/imgui/src/imgui_impl_opengl3.cpp.o:imgui_impl_opengl3.cpp:(.text+0x59f): more undefined references to `glGetIntegerv' follow
/usr/bin/ld: CMakeFiles/Dot.dir/external/imgui/src/imgui_impl_opengl3.cpp.o: in function `ImGui_ImplOpenGL3_RenderDrawData(ImDrawData*)':
imgui_impl_opengl3.cpp:(.text+0x643): undefined reference to `glIsEnabled'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0x653): undefined reference to `glIsEnabled'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0x663): undefined reference to `glIsEnabled'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0x673): undefined reference to `glIsEnabled'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0x69e): undefined reference to `glGetIntegerv'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0x6c3): undefined reference to `__glewGenVertexArrays'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0x74d): undefined reference to `__glewBufferData'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0x787): undefined reference to `__glewBufferData'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0x963): undefined reference to `glScissor'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0x990): undefined reference to `glScissor'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0x9a4): undefined reference to `glBindTexture'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0x9b8): undefined reference to `__glewDrawElementsBaseVertex'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0xa12): undefined reference to `glDrawElements'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0xa2b): undefined reference to `__glewDeleteVertexArrays'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0xa43): undefined reference to `__glewUseProgram'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0xa5f): undefined reference to `glBindTexture'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0xa66): undefined reference to `__glewBindSampler'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0xa7c): undefined reference to `__glewActiveTexture'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0xa8d): undefined reference to `__glewBindVertexArray'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0xa9e): undefined reference to `__glewBindBuffer'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0xab4): undefined reference to `__glewBlendEquationSeparate'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0xacd): undefined reference to `__glewBlendFuncSeparate'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0xafd): undefined reference to `glEnable'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0xb09): undefined reference to `glDisable'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0xb1c): undefined reference to `glEnable'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0xb28): undefined reference to `glDisable'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0xb3b): undefined reference to `glEnable'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0xb47): undefined reference to `glDisable'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0xb5a): undefined reference to `glEnable'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0xb66): undefined reference to `glDisable'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0xb75): undefined reference to `glPolygonMode'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0xb88): undefined reference to `glViewport'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0xb9b): undefined reference to `glScissor'
/usr/bin/ld: CMakeFiles/Dot.dir/external/imgui/src/imgui_impl_opengl3.cpp.o: in function `ImGui_ImplOpenGL3_CreateFontsTexture()':
imgui_impl_opengl3.cpp:(.text+0xc0a): undefined reference to `glGetIntegerv'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0xc1b): undefined reference to `glGenTextures'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0xc2d): undefined reference to `glBindTexture'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0xc41): undefined reference to `glTexParameteri'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0xc55): undefined reference to `glTexParameteri'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0xc64): undefined reference to `glPixelStorei'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0xc9c): undefined reference to `glTexImage2D'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0xcc6): undefined reference to `glBindTexture'
/usr/bin/ld: CMakeFiles/Dot.dir/external/imgui/src/imgui_impl_opengl3.cpp.o: in function `ImGui_ImplOpenGL3_DestroyFontsTexture()':
imgui_impl_opengl3.cpp:(.text+0xd0d): undefined reference to `glDeleteTextures'
/usr/bin/ld: CMakeFiles/Dot.dir/external/imgui/src/imgui_impl_opengl3.cpp.o: in function `CheckShader(unsigned int, char const*)':
imgui_impl_opengl3.cpp:(.text+0xd61): undefined reference to `__glewGetShaderiv'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0xd78): undefined reference to `__glewGetShaderiv'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0xddd): undefined reference to `__glewGetShaderInfoLog'
/usr/bin/ld: CMakeFiles/Dot.dir/external/imgui/src/imgui_impl_opengl3.cpp.o: in function `CheckProgram(unsigned int, char const*)':
imgui_impl_opengl3.cpp:(.text+0xea7): undefined reference to `__glewGetProgramiv'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0xebe): undefined reference to `__glewGetProgramiv'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0xf2a): undefined reference to `__glewGetProgramInfoLog'
/usr/bin/ld: CMakeFiles/Dot.dir/external/imgui/src/imgui_impl_opengl3.cpp.o: in function `ImGui_ImplOpenGL3_CreateDeviceObjects()':
imgui_impl_opengl3.cpp:(.text+0xfee): undefined reference to `glGetIntegerv'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0x1002): undefined reference to `glGetIntegerv'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0x1016): undefined reference to `glGetIntegerv'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0x1141): undefined reference to `__glewCreateShader'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0x1155): undefined reference to `__glewShaderSource'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0x1175): undefined reference to `__glewCompileShader'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0x11bd): undefined reference to `__glewCreateShader'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0x11d1): undefined reference to `__glewShaderSource'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0x11f1): undefined reference to `__glewCompileShader'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0x1216): undefined reference to `__glewCreateProgram'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0x1225): undefined reference to `__glewAttachShader'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0x123e): undefined reference to `__glewAttachShader'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0x1257): undefined reference to `__glewLinkProgram'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0x127c): undefined reference to `__glewGetUniformLocation'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0x129a): undefined reference to `__glewGetUniformLocation'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0x12b8): undefined reference to `__glewGetAttribLocation'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0x12d6): undefined reference to `__glewGetAttribLocation'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0x12f4): undefined reference to `__glewGetAttribLocation'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0x1312): undefined reference to `__glewGenBuffers'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0x1327): undefined reference to `__glewGenBuffers'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0x134c): undefined reference to `glBindTexture'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0x1353): undefined reference to `__glewBindBuffer'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0x1369): undefined reference to `__glewBindVertexArray'
/usr/bin/ld: CMakeFiles/Dot.dir/external/imgui/src/imgui_impl_opengl3.cpp.o: in function `ImGui_ImplOpenGL3_DestroyDeviceObjects()':
imgui_impl_opengl3.cpp:(.text+0x13a3): undefined reference to `__glewDeleteBuffers'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0x13cc): undefined reference to `__glewDeleteBuffers'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0x13ff): undefined reference to `__glewDetachShader'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0x142c): undefined reference to `__glewDetachShader'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0x144f): undefined reference to `__glewDeleteShader'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0x1474): undefined reference to `__glewDeleteShader'
/usr/bin/ld: imgui_impl_opengl3.cpp:(.text+0x1499): undefined reference to `__glewDeleteProgram'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/Dot.dir/build.make:242: Dot] Error 1
make[1]: *** [CMakeFiles/Makefile2:181: CMakeFiles/Dot.dir/all] Error 2
make: *** [Makefile:130: all] Error 2

cyrstem avatar Sep 14 '20 16:09 cyrstem

Look like you are missing OpenGL

andydbc avatar Sep 14 '20 16:09 andydbc

that can't maybe its the location im under manjaro im using openGL most of the time for Cinder and OF

cyrstem avatar Sep 14 '20 17:09 cyrstem