guillaumechereau / goxel

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

Linker error, undefined reference to symbol 'XConvertSelection' #197

Open inhinias opened 4 years ago

inhinias commented 4 years ago

On release 0.10.5 I get the following linker 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

Fixed it by changing the following line in SConstruct under the Linux section (Line: 88-93): env.ParseConfig('pkg-config --libs glfw3') to env.ParseConfig('pkg-config --static --libs x11 xrandr xi xxf86vm glew glfw3')

I would write a pull request for this, but I'm not really familiar with x11 and glfw3 development, I just copy pasted this from stackoverflow. stackoverflow.com/questions/19901934

Extra info that may not be necessary: OS: Linux Mint 19.3 x86_64 Kernel: 5.3.0-51-generic DE: Cinnamon 4.4.8 CPU: i7-4790k GPU: GTX 970 Nvidia-Driver: 440.82

sodomon2 commented 4 years ago

@JFK422 You still get the error in version 0.10.6?

inhinias commented 4 years ago

@sodomon2 Sadly the issue is still present in version 0.10.6. I guess we can leave it at that. Since the issue only appears to be solely on my machine and I solved it by changing the linking. It is up to you guy's to close this issue or keep it open for others.

sodomon2 commented 3 years ago

@JFK422 Unfortunately I cannot reproduce this