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. |
|