CMake problem with Qt4.2.1 from Distro packages and qt-copy for kdelibs

Alexander Neundorf neundorf at kde.org
Mon Jan 1 13:56:34 GMT 2007


On Monday 01 January 2007 13:51, Reinhold Kainhofer wrote:
> Hi all!
>
> On my office machine I have Debian installed and Qt 4.2.1 from the debian
> packages (since other packages depend on Qt4). Now since kdelibs no longer
> works with Qt 4.2.1 (which has worked for quite a while until a week or two
> ago), I needed to install qt-copy, too.
>
> So, I have Qt 4.2.1 installed in /usr and qt-copy
> in /data/kdetest/qt-unstable, the variables are all setup correctly as
> decribed on http://wiki.kde.org/tiki-index.php?page=KDE3To4:
>
> kdetest at curie:~$ echo $QTDIR
> /data/kdetest/qt-unstable

QTDIR is obsolete with Qt4, no need to set it.

> kdetest at curie:~$ echo $LD_LIBRARY_PATH
> /data/kdetest/kde/lib:/data/kdetest/qt-unstable/lib:
> kdetest at curie:~$ which qdbuscpp2xml
> /data/kdetest/qt-unstable/bin/qdbuscpp2xml

"which qmake" is the important one. Make sure the qt-copy qmake is the first 
qmake in the PATH, then everything should work correctly.

> However, when I use ccmake (cmake version 2.4-patch 5, installed from
> Debian packages) to configure kdelibs, some paths are taken from $QTDIR,
> while others are taken from /usr! In particular, all include paths are
> taken

This can probably be improved...
The FindQt4.cmake in KDE svn and the one coming with CMake have diverged quite 
a bit, and I'm not sure they can be merged again :-/

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-core-devel mailing list