Compiling LeoCAD


Compiling LeoCAD
#1
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?
Reply
Re: Compiling LeoCAD
#2
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?
Reply
Re: Compiling LeoCAD
#3
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!
Reply
« Next Oldest | Next Newest »



Forum Jump:


Users browsing this thread: 2 Guest(s)