LDraw.org Discussion Forums

Full Version: Compiling LeoCAD
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I'm trying to compile LeoCAD ong GNU/Linux but I keep getting the following error:

/usr/bin/ld: obj/linux/system.o: undefined reference to symbol 'XQueryKeymap'
/usr/bin/ld: note: 'XQueryKeymap' is defined in DSO /usr/lib/libX11.so.6 so try adding it to the linker command line
/usr/lib/libX11.so.6: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status

What do I do?
I've never seen that error before but you can try to link with libX11 explicitly like I've done in this change: http://leocad.org/trac/changeset/1273

What distro are you using?
Fixed! I had to append -lX11 and -ldl.

Oh, and I'm using Arch. There's probably some setting missing somewhere in some random config file that's in most distros. On Arch, everything is the latest version and at the default setting. Oh well, I can't expect every developer to cater to every distro out there.

Thanks for the help!