Open kerabromsmu opened 7 years ago
I found a solution to this problem -- open SConstruct
, and edit the following section, around line 70, from:
# Note: add '--static' to link with all the libs needed by glfw3.
env.ParseConfig('pkg-config --libs glfw3')
to:
# Note: add '--static' to link with all the libs needed by glfw3.
env.ParseConfig('pkg-config --static --libs glfw3')
like the comment instructs. I also had to comment out a few flags that GCC wasn't accepting, but those should be unrelated.
Scons shows this error: *** Do not know how to make File target `pkg-config' (/home/podlec/Downloads/goxel/goxel-0.7.1/pkg-config). Stop.
If I just run scons without parameters, it gives this error: /usr/bin/ld: /usr/local/lib/libglfw3.a(vulkan.c.o): undefined reference to symbol 'dlsym@@GLIBC_2.2.5' //lib/x86_64-linux-gnu/libdl.so.2: error adding symbols: DSO missing from command line
If I run scons debug=0, it gives this error: /usr/bin/ld: /usr/local/lib/libglfw3.a(x11_window.c.o): undefined reference to symbol 'XConvertSelection' //usr/lib/x86_64-linux-gnu/libX11.so.6: error adding symbols: DSO missing from command line