CMake 生成 ITK 模块时出错 VTKGlue

Error with CMake to generate ITK Module VTKGlue

我想为 ITK 模块 VTKGlue 生成 makefile,但我有一条消息错误:

CMake Error at Modules/Bridge/VtkGlue/itk-module-init.cmake:7 (find_package): Could not find a configuration file for package "VTK" that is compatible with requested version "".

The following configuration files were considered but not accepted:

C:/ITK/bin/VTK/VTKConfig.cmake, version: 6.2.0 (64bit)

Call Stack (most recent call first):
CMake/ITKModuleEnablement.cmake:315 (include) CMakeLists.txt:364 (include)

Modules/Bridge/VtkGlue/itk-module-init.cmake 的内容是:

# Find the packages required by this module #

Needed VTK version set(VERSION_MIN "5.10.0")

Look for VTK find_package(VTK NO_MODULE REQUIRED COMPONENTS vtkCommonCore)

我该怎么办?

谢谢

解决办法是重建VTK...

它是用生成器 VS 构建的,而 ITK 是用生成器 Eclipse CDT构建的。