Closed vyorkin closed 1 year ago
Hi @vyorkin ! Strange error, as the CI pipeline for this project runs in a ubuntu image, and doesn't seem to suffer from the same problem 🤔 I don't have access to ubuntu right now, but looking at the premake5.lua script, I can see that on Linux, we only do:
filter "system:linux"
links { "dl" }
Maybe we should also be linking agains -lgl
? Could you try if modifying the script to this helps?
filter "system:linux"
links { "dl", "gl" }
Thanks, @Nelarius, yes you're right, linking succeeds if I change it to:
filter "system:linux"
links { "dl", "GL", "GLEW }
For some reason, it tries to link with GLEW. Now I have another problem (segfault), which I'm trying to debug, here is the backtrace from gdb:
(gdb) bt
#0 0x0000000000000000 in ?? ()
#1 0x000055e513fcedc5 in ImGui_ImplOpenGL3_CreateDeviceObjects () at ../../dependencies/imgui-1.80/imgui_impl_opengl3.cpp:669
#2 0x000055e513fcdd09 in ImGui_ImplOpenGL3_NewFrame () at ../../dependencies/imgui-1.80/imgui_impl_opengl3.cpp:242
#3 0x000055e513f7469a in main () at ../../example/main.cpp:92
Some more context:
668 const GLchar* vertex_shader_with_version[2] = { g_GlslVersionString, vertex_shader };
669 g_VertHandle = glCreateShader(GL_VERTEX_SHADER);
670 glShaderSource(g_VertHandle, 2, vertex_shader_with_version, NULL);
671 glCompileShader(g_VertHandle);
672 CheckShader(g_VertHandle, "vertex shader");
I think it is related to #83
Hello! I'm trying to build imnodes on Ubuntu 20.4. Here is what I do:
But I'm getting the linking errors:
https://asciinema.org/a/Blq2Vpo40uu7KZsHrIpgaVVpo