How to find qmake to find QT4
William A. Hoffman
billlist at nycap.rr.com
Wed Mar 22 15:56:30 CET 2006
At 06:17 AM 3/22/2006, Thiago Macieira wrote:
>David Faure wrote:
>>For me it doesn't.
>
>I forgot to add:
>$ echo $PKG_CONFIG_PATH
>/home/tjmaciei/local/dbus/lib/pkgconfig:/home/tjmaciei/troll/qt-4.1-build/lib
>
>>$ qmake -query QT_INSTALL_HEADERS
>>/devel/kde/src/4/qt-copy/include
>
>This approach is problematic if you have both Qt3 and Qt4 support. How do
>you know which qmake it found? It's not a KDE issue because we don't
>build stuff for both Qt versions, but it is a problem for other people,
>like D-Bus or the LSB build environment.
We make sure that the version of qmake is for 4:
if (QT_QMAKE_EXECUTABLE)
EXEC_PROGRAM(${QT_QMAKE_EXECUTABLE} ARGS "-query QT_VERSION"
OUTPUT_VARIABLE QTVERSION)
if(QTVERSION MATCHES "4.*")
set(QT4_QMAKE_FOUND TRUE)
endif(QTVERSION MATCHES "4.*")
endif (QT_QMAKE_EXECUTABLE)
-Bill
More information about the Kde-buildsystem
mailing list