MantisBT - CMake
View Issue Details
0012587CMakeCMakepublic2011-11-21 19:322016-06-10 14:31
_jack_ 
Clinton Stimpson 
normalminorN/A
closedmoved 
IntelWindows 7-64 bit
CMake 2.8.6 
 
0012587: Incorrect QT stuff installation detection
In Windows 7 Pro 64 bit,with QTSDK (mingw compiler) CMake under QT Creator is unable to detect the correct QT stuff installation path (c:\QtSDK\Desktop\Qt\4.7.4\mingw\bin\) even if QT Creator ide detect correctly it.
The QT path is, as usual, also declared in the environment path variable of the OS.
This beaviour is not present in Cmake 2.8.2 which correctly detect the path, with usual Cmake code, and permit the compilation without Qt stuff unfound errors.
No tags attached.
Issue History
2011-11-21 19:32_jack_New Issue
2011-11-21 21:47Clinton StimpsonNote Added: 0027846
2011-11-22 08:26_jack_Note Added: 0027847
2012-02-22 23:51Clinton StimpsonNote Added: 0028703
2012-02-22 23:51Clinton StimpsonAssigned To => Clinton Stimpson
2012-02-22 23:51Clinton StimpsonStatusnew => assigned
2012-08-13 23:30Clinton StimpsonNote Added: 0030632
2012-08-13 23:30Clinton StimpsonStatusassigned => backlog
2016-06-10 14:28Kitware RobotNote Added: 0041935
2016-06-10 14:28Kitware RobotStatusbacklog => resolved
2016-06-10 14:28Kitware RobotResolutionopen => moved
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0027846)
Clinton Stimpson   
2011-11-21 21:47   
So, you only upgraded cmake and now it doesn't find Qt? Would you mind double checking with a cmake 2.8.2 installation? I don't understand why it would automatically find Qt without some kind of hint.
(0027847)
_jack_   
2011-11-22 08:26   
Yes, I only update Cmake to new version and it doesnt'find Qt.
I'm using the same cmakelist.txt containing the common findQt code I used before:
...
SET(QT_MOC_EXECUTABLE ${VTK_QT_MOC_EXECUTABLE} CACHE FILEPATH "")
SET(QT_UIC_EXECUTABLE ${VTK_QT_UIC_EXECUTABLE} CACHE FILEPATH "")
SET(QT_QMAKE_EXECUTABLE ${VTK_QT_QMAKE_EXECUTABLE} CACHE FILEPATH "")
SET(DESIRED_QT_VERSION ${VTK_DESIRED_QT_VERSION} CACHE FILEPATH "")
FIND_PACKAGE(Qt4 REQUIRED)
INCLUDE(${QT_USE_FILE})
INCLUDE_DIRECTORIES(
  ${QT_INCLUDE_DIR}
  ${CMAKE_CURRENT_BINARY_DIR}
  ${CMAKE_CURRENT_SOURCE_DIR}
)
...
During compilation under Mingw, Qt path is not retrieved and give lots of compilation errors
Reinstalling cmake 2.8.2 and reconfiguring the project, everything returned ok.
(0028703)
Clinton Stimpson   
2012-02-22 23:51   
You could probably simplify that to just this:

SET(QT_QMAKE_EXECUTABLE "${VTK_QT_QMAKE_EXECUTABLE}" CACHE FILEPATH "")
FIND_PACKAGE(Qt4 REQUIRED)
INCLUDE(${QT_USE_FILE})
INCLUDE_DIRECTORIES(
  ${CMAKE_CURRENT_BINARY_DIR}
  ${CMAKE_CURRENT_SOURCE_DIR}
)

But what were the errors you were getting?
(0030632)
Clinton Stimpson   
2012-08-13 23:30   
Unable to reproduce, and not getting more info from the reporter. Moving to backlog.
(0041935)
Kitware Robot   
2016-06-10 14:28   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.