Page 1 of 1

Compile error with Xft

Posted: Sat Apr 28, 2007 12:40 am
by peppe
Hello,

i was trying to compile the latest cvs on a fedora core 6 with gcc 4.1.1 and i got the following error that I solved adding a -lXft switch to the compiling line.

drag.o: In function `Get_window_coords':
/home/giellamo/games/exult/xdrag.cc:51: undefined reference to `XQueryTree'
/home/giellamo/games/exult/xdrag.cc:53: undefined reference to `XFree'
/home/giellamo/games/exult/xdrag.cc:59: undefined reference to `XGetWindowAttributes'
xdrag.o: In function `Xdnd':
/home/giellamo/games/exult/xdrag.cc:88: undefined reference to `XInternAtom'
/home/giellamo/games/exult/xdrag.cc:89: undefined reference to `XInternAtom'
/home/giellamo/games/exult/xdrag.cc:90: undefined reference to `XInternAtom'
/home/giellamo/games/exult/xdrag.cc:91: undefined reference to `XInternAtom'
/home/giellamo/games/exult/xdrag.cc:93: undefined reference to `XInternAtom'
xdrag.o:/home/giellamo/games/exult/xdrag.cc:94: more undefined references to `XInternAtom' follow
xdrag.o: In function `Xdnd::select_msg(XSelectionEvent&)':
/home/giellamo/games/exult/xdrag.cc:258: undefined reference to `XGetAtomName'
/home/giellamo/games/exult/xdrag.cc:275: undefined reference to `XGetWindowProperty'
/home/giellamo/games/exult/xdrag.cc:307: undefined reference to `XFree'
xdrag.o: In function `Xdnd::client_msg(XClientMessageEvent&)':
/home/giellamo/games/exult/xdrag.cc:132: undefined reference to `XGetAtomName'
/home/giellamo/games/exult/xdrag.cc:190: undefined reference to `XSendEvent'
/home/giellamo/games/exult/xdrag.cc:154: undefined reference to `XGetWindowProperty'
/home/giellamo/games/exult/xdrag.cc:200: undefined reference to `XConvertSelection'
xdrag.o: In function `Xdnd':
/home/giellamo/games/exult/xdrag.cc:108: undefined reference to `XChangeProperty'
/home/giellamo/games/exult/xdrag.cc:108: undefined reference to `XChangeProperty'
collect2: ld returned 1 exit status

Re: Compile error with Xft

Posted: Sat May 12, 2007 7:58 am
by Renier
I solved this by editing the Makefile and adding -lX11 to the LIBS variable.

Makefile:
...
LIBS = -lasound
...

after change:
...
LIBS = -lasound -lX11
...

Re: Compile error with Xft

Posted: Mon May 14, 2007 11:04 am
by drcode
Glad you were able to get past this. I'd expect that autoconf/automake would have added the "-lX11".

Fatal: Not able to open ./cache/production/data_global.php