how to search for Qt and kde libs

Alexander Neundorf neundorf at kde.org
Tue Mar 7 19:39:29 CET 2006


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.
Currently cmake will find them both and prefer the release over the debug 
version.
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

Would you consider it better if one library was searched which exists only for 
KDE4 (kxmlcore), and if it is found, all other libraries are searched only in 
the same directory ?
Or "also" in the same directory, but if they don't get found there, also in 
other directories ?

IOW should the cmake files require that the various Qt libraries are all 
installed in the same directory, and that al kde libraries are installed in 
the same directory ?

Bye
Alex
-- 
Work: alexander.neundorf AT jenoptik.com - http://www.jenoptik-los.de
Home: neundorf AT kde.org                - http://www.kde.org
      alex AT neundorf.net               - http://www.neundorf.net


More information about the Kde-buildsystem mailing list