Problem when calling FIND_PACKAGE(Qt) twice inside a project

Christian Ehrlicher Ch.Ehrlicher at gmx.de
Fri Jul 13 10:14:30 CEST 2007


Hi,

When FIND_PACKAGE(QT) is called twice (e.g. in cmake source root and a 
subdirectory) I sometimes get this error:

----------------------8<-----------------
E:\kde\kdebase-build>nmake

Microsoft (R) Program Maintenance Utility, Version 8.00.50727.42
Copyright (C) Microsoft Corporation. Alle Rechte vorbehalten.

-- Found Qt-Version 4.3.0beta with qmake at E:/kde/qt-copy/bin/qmake.exe
-- Found windows supplementary package location: D:/Programme/kdewin32
-- Found kdewin32 library: D:/Programme/kdewin32/lib/kdewin32d.lib
-- Found KDE 4.0 include dir: D:/Programme/kdelibs/include
-- Found KDE 4 library dir: D:/Programme/kdelibs/lib
-- Found KDE4 kconfig_compiler preprocessor: 
D:/Programme/kdelibs/bin/kconfig_compiler.exe
-- Found KDE4 automoc: D:/Programme/kdelibs/bin/kde4automoc.exe
-- Found Strigi: D:/Programme/win32libs/lib/streamanalyzer.lib
-- Found Strigi: D:/Programme/win32libs/lib/streams.lib
-- Make sure Strigi is a recent SVN version!
-- ** svn://anonsvn.kde.org/home/kde/trunk/kdesupport/strigi
-- Found OpenSSL: D:/Programme/win32libs/lib/ssleay32MDd.lib
CMake Error: Error in cmake code at
D:/Programme/kdelibs/share/apps/cmake/modules/FindQt4.cmake:204:
FILE Internal CMake error when trying to open file: 
E:/kde/kdebase-build/runtime/CMakeFiles/CMakeTmpQmake/tmp.pro for writing.
Current CMake stack: 
E:/kde/kdebase/runtime/CMakeLists.txt;D:/Programme/CMake 
2.4/share/cmake-2.4/Modules/FindKDE4.cmake;D:/Programme/kdelibs/share/apps/cmake/modules/FindKDE4Internal.cmake;D:/Programme/kdelibs/share/apps/cmake/modules/Find
Qt4.cmake
CMake Error: Error in cmake code at
D:/Programme/kdelibs/share/apps/cmake/modules/FindQt4.cmake:815:
A command failed during the invocation of macro "QT_QUERY_QMAKE".
CMake Error: Error in cmake code at
D:/Programme/kdelibs/share/apps/cmake/modules/FindQt4.cmake:815:
QT_QUERY_QMAKE unknown error.
Current CMake stack: 
E:/kde/kdebase/runtime/CMakeLists.txt;D:/Programme/CMake 
2.4/share/cmake-2.4/Modules/FindKDE4.cmake;D:/Programme/kdelibs/share/apps/cmake/modules/FindKDE4Internal.cmake;D:/Programme/kdelibs/share/apps/cmake/modules/Find
Qt4.cmake
-- Found Qt-Version 4.3.0beta with qmake at E:/kde/qt-copy/bin/qmake.exe
-- Found kdewin32 library: D:/Programme/kdewin32/lib/kdewin32d.lib
-- Found KDE 4.0 include dir: D:/Programme/kdelibs/include
-- Found KDE 4 library dir: D:/Programme/kdelibs/lib
-- Found KDE4 kconfig_compiler preprocessor: 
D:/Programme/kdelibs/bin/kconfig_co
mpiler.exe
-- Found KDE4 automoc: D:/Programme/kdelibs/bin/kde4automoc.exe
-- Found Strigi: D:/Programme/win32libs/lib/streamanalyzer.lib
-- Found Strigi: D:/Programme/win32libs/lib/streams.lib
-- Make sure Strigi is a recent SVN version!
-- ** svn://anonsvn.kde.org/home/kde/trunk/kdesupport/strigi
-- Found KDE PIM libraries
-- Found Nepomuk: 
D:/Programme/kdelibs/lib/nepomuk.lib;D:/Programme/kdelibs/lib/
nepomuk-middleware.lib
-- Found Qt-Version 4.3.0beta with qmake at E:/kde/qt-copy/bin/qmake.exe
-- Found kdewin32 library: D:/Programme/kdewin32/lib/kdewin32d.lib
-- Found KDE 4.0 include dir: D:/Programme/kdelibs/include
-- Found KDE 4 library dir: D:/Programme/kdelibs/lib
-- Found KDE4 kconfig_compiler preprocessor: 
D:/Programme/kdelibs/bin/kconfig_compiler.exe
-- Found KDE4 automoc: D:/Programme/kdelibs/bin/kde4automoc.exe
-- Found Strigi: D:/Programme/win32libs/lib/streamanalyzer.lib
-- Found Strigi: D:/Programme/win32libs/lib/streams.lib
-- Make sure Strigi is a recent SVN version!
-- ** svn://anonsvn.kde.org/home/kde/trunk/kdesupport/strigi
-- Found Nepomuk: 
D:/Programme/kdelibs/lib/nepomuk.lib;D:/Programme/kdelibs/lib/
nepomuk-middleware.lib
--
--------------------------------------------------------------------------------
--
-- The following list of OPTIONAL packages could NOT be located on your 
system.
--
-- Consider installing them to enable more features from this software.
--
--------------------------------------------------------------------------------
--
+ Samba: Sambas libsmbclient is required for the smb-ioslave. A version 
which al
ready has smbc_set_context() is required <http://www.samba.org>

-- Configuring done
NMAKE : fatal error U1077: ""D:\Programme\CMake 2.4\bin\cmake.exe"": 
Rückgabe-Code "0xffffffff"
Stop.

----------------------8<-----------------

A solution would be to remove the check for Qt (KDE) inside 
kdabase/runtime, but I don't think this is possible here (runtime should 
also be build as standalone project afaik).


Christian

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 250 bytes
Desc: OpenPGP digital signature
Url : http://mail.kde.org/pipermail/kde-buildsystem/attachments/20070713/3e29a8ba/attachment.pgp 


More information about the Kde-buildsystem mailing list