Hi Gonzalo, the problem is cmake didn't find qmake. The safest way to use cmake with Qt on Windows is to run cmake from a Qt-aware command line (or have qmake in your PATH). There should be a shortcut to a "Qt command prompt" installed in your Start menu. If it's not, you can create your own:
`%COMSPEC% /k your_path_to_Qt\bin\qtvars.bat vsvars' Petr On Tue, May 15, 2012 at 10:36 AM, Gonzalo Amadio <[email protected]> wrote: > Hello, I am trying to install MITK on windows 7 64bit. > > It is required to have QT, I downloaded it from > http://qt.nokia.com/downloads and istalled it. > > I installed the Cmake GUI. And Visual Studio 10 express (in the > configuration, i choose visual studio 10 compiler). > > I have the following error when trying to "Generate". > >> Setting build type to 'Debug' as none was specified. >> Check for working C compiler using: Visual Studio 10 >> Check for working C compiler using: Visual Studio 10 -- works >> Detecting C compiler ABI info >> Detecting C compiler ABI info - done >> Check for working CXX compiler using: Visual Studio 10 >> Check for working CXX compiler using: Visual Studio 10 -- works >> Detecting CXX compiler ABI info >> Detecting CXX compiler ABI info - done >> CMake Error at C:/Program Files (x86)/CMake >> 2.8/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:97 >> (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) (Required is at least version "4.6.2") >> Call Stack (most recent call first): >> C:/Program Files (x86)/CMake >> 2.8/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:288 >> (_FPHSA_FAILURE_MESSAGE) >> C:/Program Files (x86)/CMake >> 2.8/share/cmake-2.8/Modules/FindQt4.cmake:1172 >> (FIND_PACKAGE_HANDLE_STANDARD_ARGS) >> CMakeLists.txt:188 (find_package) >> Configuring incomplete, errors occurred! > > > > -- > -------- > Gonzalo Amadio > > > -- > > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the CMake FAQ at: > http://www.cmake.org/Wiki/CMake_FAQ > > Follow this link to subscribe/unsubscribe: > http://www.cmake.org/mailman/listinfo/cmake -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
