compiling Qt with -Xft

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi, has anyone had any success compiling Qt with -xft (freetype support) on 
psyche?  I've tried qt-copy from kde cvs, and qt-3.1 beta 2 from trolltech.

For the configure step to see the xft header files I need to add 
-I/usr/include/Xft2, no problem.

Then the make step fails with:

g++ -fno-exceptions -shared -Wl,-soname,libqt-mt.so.3 
-Wl,-rpath,/opt/kdecvs/src/qt-copy1/lib -o libqt-mt.so.3.1.0 
.obj/release-shared-mt/qtaddons_x11.o 
.obj/release-shared-mt/qapplication_x11.o 
<snip>
.obj/release-shared-mt/moc_qplatinumstyle.o 
.obj/release-shared-mt/moc_qsgistyle.o 
.obj/release-shared-mt/moc_qwindowsstyle.o 
.obj/release-shared-mt/moc_qmotifstyle.o  -L/usr/X11R6/lib -L/usr/X11R6/lib 
-lpng -lz -lpthread -lGL -lXmu -lSM -lICE -ldl -lXext -lX11 -lm -lXinerama 
-lXrender -lXft -lfreetype
/usr/bin/ld: cannot find -lXft
collect2: ld returned 1 exit status
make[1]: *** [../lib/libqt-mt.so.3.1.0] Error 1
make[1]: Leaving directory `/opt/kdecvs/src/qt-copy1/src'
make: *** [sub-src-qt_pro] Error 2

So I changed the configure script to link against -lXft2, instead of -lXft, 
this gets me a bit further, but still fails:

g++ -fno-exceptions -o ../../../bin/uic .obj/release-shared-mt/main.o 
.obj/release-shared-mt/uic.o .obj/release-shared-mt/form.o 
.obj/release-shared-mt/object.o .obj/release-shared-mt/subclassing.o 
.obj/release-shared-mt/embed.o .obj/release-shared-mt/widgetdatabase.o 
.obj/release-shared-mt/domtool.o .obj/release-shared-mt/parser.o    
-Wl,-rpath,/opt/kdecvs/src/qt-copy2/lib -L/opt/kdecvs/src/qt-copy2/lib 
-L/usr/X11R6/lib -L/usr/X11R6/lib -lqt-mt -ljpeg -lpng -lz -lpthread -lGLU 
-lGL -lXmu -lSM -lICE -ldl -lXext -lX11 -lm -lXinerama -lXrender -lXft2 
-lfreetype
/opt/kdecvs/src/qt-copy2/lib/libqt-mt.so: undefined reference to 
`FcPatternAddInteger'
/opt/kdecvs/src/qt-copy2/lib/libqt-mt.so: undefined reference to 
`FcPatternAddBool'
/usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../libXft2.so: undefined 
reference to `FcPatternGetBool'
/usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../libXft2.so: undefined 
reference to `FcFreeTypeCharSet'
/usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../libXft2.so: undefined 
reference to `FcNameUnparse'
/usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../libXft2.so: undefined 
reference to `FcNameConstant'
/usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../libXft2.so: undefined 
reference to `FcObjectSetDestroy'
<snip>
/usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../libXft2.so: undefined 
reference to `FcPatternGetMatrix'
/opt/kdecvs/src/qt-copy2/lib/libqt-mt.so: undefined reference to 
`FcCharSetCreate'
/usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../libXft2.so: undefined 
reference to `FcPatternPrint'
/usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../libXft2.so: undefined 
reference to `FcFontMatch'
/opt/kdecvs/src/qt-copy2/lib/libqt-mt.so: undefined reference to 
`FcCharSetDestroy'
/opt/kdecvs/src/qt-copy2/lib/libqt-mt.so: undefined reference to 
`FcFontSetDestroy'
/usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../libXft2.so: undefined 
reference to `FcDefaultSubstitute'
collect2: ld returned 1 exit status
make[3]: *** [../../../bin/uic] Error 1
make[3]: Leaving directory `/opt/kdecvs/src/qt-copy2/tools/designer/uic'
make[2]: *** [sub-uic] Error 2
make[2]: Leaving directory `/opt/kdecvs/src/qt-copy2/tools/designer'
make[1]: *** [sub-designer] Error 2
make[1]: Leaving directory `/opt/kdecvs/src/qt-copy2/tools'
make: *** [sub-tools]


Anyone have any suggestions?  Why all the undefined references?  I've heard 
the freetype libs that psyche shipped are quite a bit different than the 
offical verions, that true?  Do I need to comiple the official version from 
source?


[kdedev@peanut qt-copy]$ ls -lh /usr/lib/*Xft*
lrwxrwxrwx    1 root     root           11 Oct  4 10:18 /usr/lib/libXft2.so -> 
libXft.so.2
lrwxrwxrwx    1 root     root           13 Oct  1 20:21 /usr/lib/libXft.so.2 
-> libXft.so.2.0
-rwxr-xr-x    1 root     root          80K Sep  2 15:21 /usr/lib/libXft.so.2.0





-- 
Psyche-list mailing list
Psyche-list@redhat.com
https://listman.redhat.com/mailman/listinfo/psyche-list

[Index of Archives]     [Fedora General Discussion]     [Red Hat General Discussion]     [Centos]     [Kernel]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat 9]     [Gimp]     [Yosemite News]

  Powered by Linux