[vtkusers] Fw: Qt Vtk cmake problem

John Drescher drescherjm at gmail.com
Tue Jan 24 09:09:29 EST 2012


> while i'm trying to build Vtk . and after enabling VTK_USE_QT at cmake.
> cmake failed to configure.
>
>
> the error is "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.5.0")
> CMake Error at CMakeLists.txt:370 (MESSAGE):
>   Qt 4.5.0 or greater not found.  Please check the QT_QMAKE_EXECUTABLE
>   variable.
>
>
> Filter ZLIB is ON
> Qt QTGUI library not found.
> Qt QTSQL library not found.
> Qt QTCORE library not found.
> Qt QTGUI library not found.
> Qt QTSQL library not found.
> Qt QTNETWORK library not found.
> Qt QTCORE library not found.
> CMake Error at GUISupport/Qt/CMakeLists.txt:136 (QT4_WRAP_CPP):
>   Unknown CMake command "QT4_WRAP_CPP"."
>
> i use Qt 4.7.4 , windows 7
>
> sorry for that but i'm vtk beginner,
>
This is absolutely normal. Since there is no default location on
windows where to put libraries, headers and source code a lot of the
time the cmake finders will fail. You can help out by either doing
what it says for the error "Please check the QT_QMAKE_EXECUTABLE
variable." or setting the QTDIR environment variable to point to the
root folder where you built Qt or installed it. You can also set some
of the root variables in your CMakeLists.txt see the documentation for
FIND_PACKAGE

cmake --help command FIND_PACKAGE

John



More information about the vtkusers mailing list