CMake problem with Qt4.2.1 from Distro packages and qt-copy for kdelibs
Reinhold Kainhofer
reinhold at kainhofer.com
Mon Jan 1 12:51:38 GMT 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
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
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
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
from /usr, the library paths are taken from /data/kdetest/qt-unstable, and
the binaries are taken from /usr....
QT_DBUSCPP2XML_EXECUTABLE */usr/bin/qdbuscpp2cml
QT_DBUSXML2CPP_EXECUTABLE */usr/bin/qdbusxml2cpp
QT_DOC_DIR */data/kdetest/qt-unstable/doc
QT_INCLUDE_DIR */usr/include/qt4
QT_LIBRARY_DIR */data/kdetest/qt-unstable/lib
QT_MKSPECS_DIR */data/kdetest/qt-unstable/mkspecs
QT_MOC_EXECUTABLE */data/kdetest/qt-unstable/bin/moc
QT_QMAKE_EXECUTABLE */data/kdetest/qt-unstable/bin/qmake
QT_QT3SUPPORT_INCLUDE_DIR */usr/include/qt4/Qt3Support
QT_QT3SUPPORT_LIBRARY */data/kdetest/qt-unstable/lib/libQt3Support.so
QT_QTASSISTANT_INCLUDE_DIR */usr/include/qt4/QtAssistant
QT_QTASSISTANT_LIBRARY */data/kdetest/qt-unstable/lib/libQtAssistantClient.so
QT_QTCORE_INCLUDE_DIR */usr/include/qt4/QtCore
QT_QTCORE_LIBRARY */data/kdetest/qt-unstable/lib/libQtCore.so
QT_QTDBUS_INCLUDE_DIR */usr/include/qt4/QtDBus
QT_QTDBUS_LIBRARY */data/kdetest/qt-unstable/lib/libQtDBus.so
QT_QTDESIGNERCOMPONENTS_INCLUD */usr/include/qt4/QtDesigner
QT_QTDESIGNERCOMPONENTS_LIBRARY
*/data/kdetest/qt-unstable/lib/libQtDesignerComponents.so
QT_QTDESIGNER_INCLUDE_DIR */usr/include/qt4/QtDesigner
QT_QTDESIGNER_LIBRARY */data/kdetest/qt-unstable/lib/libQtDesigner.so
QT_QTGUI_INCLUDE_DIR */usr/include/qt4/QtGui
QT_QTGUI_LIBRARY */data/kdetest/qt-unstable/lib/libQtGui.so
QT_QTMOTIF_INCLUDE_DIR *QT_QTMOTIF_INCLUDE_DIR-NOTFOUND
QT_QTMOTIF_LIBRARY *QT_QTMOTIF_LIBRARY-NOTFOUND
QT_QTNETWORK_INCLUDE_DIR */usr/include/qt4/QtNetwork
QT_QTNETWORK_LIBRARY */data/kdetest/qt-unstable/lib/libQtNetwork.so
QT_QTNSPLUGIN_INCLUDE_DIR *QT_QTNSPLUGIN_INCLUDE_DIR-NOTFOUND
QT_QTNSPLUGIN_LIBRARY *QT_QTNSPLUGIN_LIBRARY-NOTFOUND
QT_QTOPENGL_INCLUDE_DIR */usr/include/qt4/QtOpenGL
QT_QTOPENGL_LIBRARY */data/kdetest/qt-unstable/lib/libQtOpenGL.so
QT_QTSQL_INCLUDE_DIR */usr/include/qt4/QtSql
QT_QTSQL_LIBRARY */data/kdetest/qt-unstable/lib/libQtSql.so
QT_QTSVG_INCLUDE_DIR */usr/include/qt4/QtSvg
QT_QTSVG_LIBRARY */data/kdetest/qt-unstable/lib/libQtSvg.so
QT_QTTEST_INCLUDE_DIR */usr/include/qt4/QtTest
QT_QTTEST_LIBRARY */data/kdetest/qt-unstable/lib/libQtTest.so
QT_QTUITOOLS_INCLUDE_DIR */usr/include/qt4/QtUiTools
QT_QTUITOOLS_LIBRARY */data/kdetest/qt-unstable/lib/libQtUiTools.a
QT_QTXML_INCLUDE_DIR */usr/include/qt4/QtXml
QT_QTXML_LIBRARY */data/kdetest/qt-unstable/lib/libQtXml.so
QT_QT_INCLUDE_DIR */usr/include/qt4/Qt
QT_RCC_EXECUTABLE */usr/bin/rcc
QT_UIC3_EXECUTABLE */usr/bin/uic3
QT_UIC_EXECUTABLE */data/kdetest/qt-unstable/bin/uic
How can I force ccmake to search for the includes and the binaries in the
QTDIR first and not in /usr?
Thanks,
Reinhold
- --
- ------------------------------------------------------------------
Reinhold Kainhofer, Vienna University of Technology, Austria
email: reinhold at kainhofer.com, http://reinhold.kainhofer.com/
* Financial and Actuarial Mathematics, TU Wien, http://www.fam.tuwien.ac.at/
* K Desktop Environment, http://www.kde.org, KOrganizer maintainer
* Chorvereinigung "Jung-Wien", http://www.jung-wien.at/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
iD8DBQFFmQPdTqjEwhXvPN0RAs5pAJoD7GKDdFgKyJJHIJfbIaVQm6GDWQCghqec
7GPReyeQC3nH+ISv3q3bjSg=
=ExjH
-----END PGP SIGNATURE-----
More information about the kde-core-devel
mailing list