[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-24 10:54:42
[Download RAW message or body]

christopher j bottaro wrote:
> first off, how did qt's configure auto detect xft without you making some
> symlinks or editing the configure.test (or whatever its called) file?

If found Xft[1] and used it.

> second off, i've done this twice.  once for qt-3.1.0 and again for qt-3.1.1.
> both times i've followed instructions from people on mailing lists.
> 
> for qt-3.1.0, the process includes making some symlinks, making sure some
> xft and fontconfig devel packages (as well as the non devel packages,
> duh...;) are installed, then finally editing ALL the project makefiles to
> link to xft AND fontconfig.  that last step must be done after you run
> configure (and can easily be done with perl and a regular expression).

This shouldn't be necessary as it works 'out of the box' with FCPackage installed from source.

[jrt@localhost lib]$ ldd libqt-mt.so.3.1.1
         libpng12.so.0 => /usr/local/lib/libpng12.so.0 (0x40631000)
         libz.so.1 => /usr/local/lib/libz.so.1 (0x4065e000)
         libGL.so.1 => /usr/local/lib/libGL.so.1 (0x4066c000)
         libXmu.so.6 => /usr/X11R6/lib/libXmu.so.6 (0x40861000)
         libXrender.so.1 => /usr/X11R6/lib/libXrender.so.1 (0x40877000)
         libXft.so.2 => /usr/X11R6/lib/libXft.so.2 (0x4087f000)
         libfreetype.so.6 => /usr/local/lib/libfreetype.so.6 (0x40890000)
         libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x408de000)
         libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x408eb000)
         libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x409a2000)
         libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x409ac000)
         libdl.so.2 => /lib/libdl.so.2 (0x409c2000)
         libpthread.so.0 => /lib/libpthread.so.0 (0x409c6000)
         libstdc++.so.5 => /usr/local/lib/libstdc++.so.5 (0x409dd000)
         libm.so.6 => /lib/libm.so.6 (0x40a8e000)
         libgcc_s.so.1 => /usr/local/lib/libgcc_s.so.1 (0x40ab0000)
         libc.so.6 => /lib/libc.so.6 (0x40ab9000)
         libXt.so.6 => /usr/X11R6/lib/libXt.so.6 (0x40bef000)
         libfontconfig.so.1 => /usr/X11R6/lib/libfontconfig.so.1 (0x40c38000)
         /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
         libexpat.so.0 => /usr/local/lib/libexpat.so.0 (0x40c5c000)

> for qt-3.1.1, the fix posted was much simpler.  you simply change two lines
> in the configure.test (dunno if thats the exact name) file, then add to your
> configure command line options '-I/usr/include/Xft2'.

That would be pointing to a directory called: "/usr/include/Xft2/".  I think that you only would 
need: "-I/usr/include" which is redundant.

> i know what you're thinking.  'i can't believe i read this entire email to
> get these half assed directions on how to kinda do something!!'.  well, send
> me an email and when i go back home and check my email, i'll have the exact
> directions for you.  that'll prolly be around new years though...=/  ahh
> well, i'm sure plenty of people on this list can tell you how to do it...

Basically, this is simple, Qt needs to find:

	X11/Xft/XftFreetype.h
	X11/Xft/Xft.h

	libXft.so -> libXft.so.2.0

It needs for the first two to be in:

	/usr/X11R6/include

It needs for that: "Xft.h" to be the correct version -- the one that comes with Xft2.

It needs the library to be in /usr/X11R6/lib

You need to be sure that there isn't another: "libXft.so" somewhere on the system.

So, three links made and possibly one link removed should do it.

I presume that FreeType2 is in: "/usr/" so that is no problem.

--
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