how to search for Qt and kde libs

Thiago Macieira thiago at kde.org
Tue Mar 7 21:08:22 CET 2006


Alexander Neundorf wrote:
>Hi,
>
>both KDE and Qt consist of several libraries.
>For all of them is searched in a bunch of directories.
>It is possible that e.g. Qt 4.1 QtCore_debug (i.e. only the debug
> version) is installed in /usr/local/lib/qt4.1/lib, and Qt 4.0 QtCore
> (i.e. only the release version) is installed in /usr/lib.

I'd say: use pkg-config and the result it gives you.

That way, you can tweak which library it should find by changing 
PKG_CONFIG_PATH

>Currently cmake will find them both and prefer the release over the
> debug version.

Yeah, that's a problem because Qt installs QtCore and QtCore_debug 
pkg-config data files. Not much to do here, though...

So, hint: don't install Qt into /usr/lib. :-)

>The same could happen for the kde libraries.
>E.g. libkxmlcore could be found in /opt/kde4/lib, while e.g. kdecore and
> kdeui might be found in /opt/kde3/lib.
>The KDE libraries are currently searched in:
>KDEDIR
>/opt/kde/bin
>/opt/kde4/bin

No, use pkg-config. Which means, of course, we have to create and install 
the .pc files...

-- 
  Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358

2. Tó cennan his weorc gearu, ymbe se circolwyrde, wearð se cægbord and se 
leohtspeccabord, and þa mýs cómon lator. On þone dæg, he hine reste.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-buildsystem/attachments/20060307/4608607f/attachment.pgp 


More information about the Kde-buildsystem mailing list