guillaumechereau / goxel

Goxel: Free and Open Source 3D Voxel Editor
GNU General Public License v3.0
2.82k stars 224 forks source link

Cannot build on Linux Mint #63

Open kerabromsmu opened 7 years ago

kerabromsmu commented 7 years ago

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

Charles-the-Cat commented 6 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.