[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: Qt-3.1.1 under RedHat 8.0
From: James Richard Tyrer <tyrerj () acm ! org>
Date: 2002-12-25 7:06:49
[Download RAW message or body]
Troels Tolstrup wrote:
> Either you installed something extra, or you created a symlink yourself.
As I said, I installed 'FCPackage' from source. I installed all four packages in: "/usr/X11R6/"
because that appears to be where Qt expects to find them. Also, I used the: "Xft.h" from Xft[2].
> In a standard redhat 8 installer there are no
> /usr/X11R6/lib/libXft.so.2.
The RPM: "Xft-2.0-1.i386.rpm" contains the files:
/usr/lib/libXft.so.2
/usr/lib/libXft.so.2.0
So you need to make a link.
/usr/X11R6/lib/libXft.so -> /usr/lib/libXft.so.2
After removing all other: "libXft.so" links (if they exist).
Note: be sure to run [as root]: ldconfig after making any library links.
> The only Xft in /usr/X11R6, as far as i can
> tell, is an old version coming with XFree. The Xft rpms installed the
> libraries to /usr/lib and the headers in /usr/lib/Xft2
>
Yes, the headers you need are in: "/usr/include/Xft2/X11/Xft/"
You need to make sure that Qt finds the correct: "Xft.h". The easiest way to ensure this is to
make the links:
/usr/X11R6/include/X11/Xft/Xft.h -> /usr/include/Xft2/X11/Xft/Xft.h
/usr/X11R6/include/X11/Xft/XftCompat.h -> /usr/include/Xft2/X11/Xft/XftCompat.h
> I added a -I /usr/include/Xft2 when running configure,
The problem with this is that Qt might find: "/usr/X11R6/include/X11/Xft/Xft.h" since:
"/usr/X11R6/include" is already on the search path.
> and then ran this
> command after configured finished. (from the qt toplevel dir)
>
> find . -name "Makefile" | xargs perl -pi -e 's/-lXft/-lXft2
> -lfontconfig/g'
If you make the link for: "libXft.so" as stated above, then you won't need to do this.
> And then it compiled and linked just fine.
>
As I said somewhere else: are you certain as to which: "Xft.h" was used to build Qt?
I note that there is a downside to this method. You will no longer be able to build anything
against: Xft[1].
I also note the you might need to do something about: "/usr/lib/pkgconfig/xft.pc" If you try to
build: "pango-1.1.4 from source.
--
JRT
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic