View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0012587CMakeCMakepublic2011-11-21 19:322016-06-10 14:31
Reporter_jack_ 
Assigned ToClinton Stimpson 
PrioritynormalSeverityminorReproducibilityN/A
StatusclosedResolutionmoved 
PlatformIntelOSWindows OS Version7-64 bit
Product VersionCMake 2.8.6 
Target VersionFixed in Version 
Summary0012587: Incorrect QT stuff installation detection
DescriptionIn 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.
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0027846)
Clinton Stimpson (developer)
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_ (reporter)
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 (developer)
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 (developer)
2012-08-13 23:30

Unable to reproduce, and not getting more info from the reporter. Moving to backlog.
(0041935)
Kitware Robot (administrator)
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.

 Issue History
Date Modified Username Field Change
2011-11-21 19:32 _jack_ New Issue
2011-11-21 21:47 Clinton Stimpson Note Added: 0027846
2011-11-22 08:26 _jack_ Note Added: 0027847
2012-02-22 23:51 Clinton Stimpson Note Added: 0028703
2012-02-22 23:51 Clinton Stimpson Assigned To => Clinton Stimpson
2012-02-22 23:51 Clinton Stimpson Status new => assigned
2012-08-13 23:30 Clinton Stimpson Note Added: 0030632
2012-08-13 23:30 Clinton Stimpson Status assigned => backlog
2016-06-10 14:28 Kitware Robot Note Added: 0041935
2016-06-10 14:28 Kitware Robot Status backlog => resolved
2016-06-10 14:28 Kitware Robot Resolution open => moved
2016-06-10 14:31 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team