compiling arts/qt not findign Xft

James Richard Tyrer tyrerj at acm.org
Mon Jun 10 02:32:03 BST 2002


Pupeno wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> When I compiled qt (qt-copy from head) I hade the proble of qt not finding 
> Xft, I solved that with -xft in the configure line of qt, now, trying to 
> compile arts, it says it cannot find qt >=3.0.3 (I have 3.0.4), when I look 
> at config.log it says: 
>  g++ -o conftest -Wnon-virtual-dtor -Wno-long-long -Wbad-function-cast -Wundef 
> - -Wall -ped
> antic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi 
> - -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversi
> on -fno-builtin -g3 -fno-exceptions -fno-check-new -I/opt/lib/qt-copy//include 
> - -I/usr/X11R6/include  -DQT_THREAD_SUPPORT  -D_
> REENTRANT  -L/opt/lib/qt-copy//lib -L/usr/X11R6/lib   conftest.cc  -lqt-mt 
> - -lpng -lz -lm -ljpeg -ldl  -lXext -lX11 -lSM -lICE
>   -lresolv -lpthread 1>&5
> /opt/lib/qt-copy//lib/libqt-mt.so: undefined reference to `XftFreeTypeOpen'
> /opt/lib/qt-copy//lib/libqt-mt.so: undefined reference to `XftInit'
> /opt/lib/qt-copy//lib/libqt-mt.so: undefined reference to `XftPatternBuild'
> /opt/lib/qt-copy//lib/libqt-mt.so: undefined reference to `XftGlyphLoad'
> /opt/lib/qt-copy//lib/libqt-mt.so: undefined reference to `XftFreeTypeClose'
> /opt/lib/qt-copy//lib/libqt-mt.so: undefined reference to 
> `XftFreeTypeGlyphExists'
> /opt/lib/qt-copy//lib/libqt-mt.so: undefined reference to `XftNameUnparse'
> /opt/lib/qt-copy//lib/libqt-mt.so: undefined reference to 
> `XftPatternGetInteger'
> /opt/lib/qt-copy//lib/libqt-mt.so: undefined reference to `XftPatternDestroy'
> /opt/lib/qt-copy//lib/libqt-mt.so: undefined reference to `XftListFonts'
> /opt/lib/qt-copy//lib/libqt-mt.so: undefined reference to `XftFontSetDestroy'
> /opt/lib/qt-copy//lib/libqt-mt.so: undefined reference to 
> `XftPatternGetString'
> /opt/lib/qt-copy//lib/libqt-mt.so: undefined reference to `XftGlyphCheck'
> /opt/lib/qt-copy//lib/libqt-mt.so: undefined reference to `XftPatternAddBool'
> /opt/lib/qt-copy//lib/libqt-mt.so: undefined reference to `XftInitFtLibrary'
> /opt/lib/qt-copy//lib/libqt-mt.so: undefined reference to `XftFontMatch'
> /opt/lib/qt-copy//lib/libqt-mt.so: undefined reference to `XftNameParse'
> collect2: ld returned 1 exit status
> 
> Is this some problem with qt or that I'm not specifying -lXft in that line 
> while compiling ? what should I do ?

Your problem appears to be the double '//' in the path.

What did you put in: "ld.so.conf"?

Note that this is not the optimum way/place to install Qt.

I have this feeling that installing it in a path with two 'lib's in it 
can confuse "configure".

If you want it installed in: "/opt/", I would suggest that it should be 
installed in: "/opt/qt-3.0.4/" and then you should make a link: 
"/opt/qt3 -> /opt/qt-3.0.4"

You need to add: "/opt/qt3/bin" to your path.

You need to set QTDIR to "/opt/qt3"

BEFORE you compile Qt, you need to add: "/opt/qt3/lib" to your: 
"ld.so.conf" file.

You can try this with your current installation by making a link: 
"/opt/qt3 -> /opt/lib/qt-copy" and doing the above with QTDIR, PATH and 
"ld.so.conf".

--
JRT




___________________________________________________
This message is from the kde mailing list.
Account management:  http://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.




More information about the kde mailing list