vtk在Cmake时遇到Found unsuitable Qt version "" from NOTFOUND

cmake报错:

CMake Error at GUISupport/Qt/CMakeLists.txt:140 (QT4_WRAP_CPP): Unknown CMake command "QT4_WRAP_CP

VTK Found unsuitable Qt version "" from NOTFOUND


解决方法:

XXXX\VTK5.10.1\CMakelists.txt
378行添加:
find_package(Qt4 REQUIRED)

388行添加:
set(QT_QMAKE_EXECUTABLE C:\\Qt\\4.8.5.64\\bin\\qmake.exe)
set(QT_MOC_EXECUTABLE C:\\Qt\\4.8.5.64\\bin\\moc.exe)
set(QT_RCC_EXECUTABLE C:\\Qt\\4.8.5.64\\bin\\RCC.exe)
set(QT_UIC_EXECUTABLE C:\\Qt\\4.8.5.64\\bin\\Uic.exe)


XXXX\VTK5.10.1\GUISupport\Qt\CMakelists.txt
4行添加:
find_package(Qt4 REQUIRED)




你可能感兴趣的:(VTK源码解析)