[cmake-developers] [CMake 0012332]: CMake fails to find Qt 4

Mantis Bug Tracker mantis at public.kitware.com
Tue Jul 12 04:57:16 EDT 2011


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=12332 
====================================================================== 
Reported By:                spineless
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   12332
Category:                   CMake
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2011-07-12 04:57 EDT
Last Modified:              2011-07-12 04:57 EDT
====================================================================== 
Summary:                    CMake fails to find Qt 4
Description: 
CMake fails to find Qt 4 installation. CMake should be able to find Qt without
any user configuration, and this bug severely limits its usability as the most
universal make program available.

While importing a project into Qt using its SVN import wizard. Wizard tries to
use cmake to import project, but fails with the following message:

juffed version: 0.8.2
CMake Error at C:/Program Files/CMake
2.8/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:91 (MESSAGE):
Could NOT find Qt4 (missing: QT_QMAKE_EXECUTABLE QT_MOC_EXECUTABLE
QT_RCC_EXECUTABLE QT_UIC_EXECUTABLE QT_INCLUDE_DIR QT_LIBRARY_DIR
QT_QTCORE_LIBRARY)
Call Stack (most recent call first):
C:/Program Files/CMake
2.8/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:252
(_FPHSA_FAILURE_MESSAGE)
C:/Program Files/CMake 2.8/share/cmake-2.8/Modules/FindQt4.cmake:1162
(FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:205 (FIND_PACKAGE)


Also, The error message is not clear enough for a user just trying out cmake for
the first time to be able to correct the issue themselves.

Steps to Reproduce: 
Install latest Qt SDK
Install CMake

In Qt creator select:
Create new project...
Project from version control -> subversion checkout
Repository: http://juffed.svn.sourceforge.net/svnroot/juffed/0.8 (for example)
Next >
Run cmake

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-07-12 04:57 spineless      New Issue                                    
======================================================================




More information about the cmake-developers mailing list