Fedora 上的 ITKConfig.cmake 在哪里?
Where is ITKConfig.cmake on Fedora?
我的程序使用
FIND_PACKAGE(ITK REQUIRED)
它给我错误信息
Could not find a package configuration file provided by "ITK" with any of
the following names:
ITKConfig.cmake
itk-config.cmake
我已经安装了 itk 和 itk-devel 包,但是 none 其中有任何 CMake 模块。 CMake 本身的模块已弃用。
我正在使用 Fedora 23 和 CMake 3.4.1
编辑:
下载 ITK 4.9.1 并尝试使用
构建它之后
cmake ../
我收到以下错误:
Performing Test C_HAS_WARNING-Wformat=2
Performing Test C_HAS_WARNING-Wformat=2 - Success
Performing Test CXX_HAS_WARNING-Wformat=2
Performing Test CXX_HAS_WARNING-Wformat=2 - Success
CMake Error at CMakeLists.txt:243 (include):
include could not find load file:
/home/.../InsightToolkit/InsightToolkit-4.9.1/Utilities/KWStyle/KWStyle.cmake
CMake Error at CMake/ITKModuleEnablement.cmake:43 (message):
No such module "ITKKWIML" needed by "ITKCommon"
Call Stack (most recent call first):
CMake/ITKModuleEnablement.cmake:59 (itk_module_check)
CMake/ITKModuleEnablement.cmake:59 (itk_module_check)
CMake/ITKModuleEnablement.cmake:66 (itk_module_check)
CMakeLists.txt:345 (include)
您需要从源代码构建和安装 ITK。有详细解释here.
安装完ITK后,CMake就能找到它。
我的程序使用
FIND_PACKAGE(ITK REQUIRED)
它给我错误信息
Could not find a package configuration file provided by "ITK" with any of
the following names:
ITKConfig.cmake
itk-config.cmake
我已经安装了 itk 和 itk-devel 包,但是 none 其中有任何 CMake 模块。 CMake 本身的模块已弃用。
我正在使用 Fedora 23 和 CMake 3.4.1
编辑: 下载 ITK 4.9.1 并尝试使用
构建它之后cmake ../
我收到以下错误:
Performing Test C_HAS_WARNING-Wformat=2
Performing Test C_HAS_WARNING-Wformat=2 - Success
Performing Test CXX_HAS_WARNING-Wformat=2
Performing Test CXX_HAS_WARNING-Wformat=2 - Success
CMake Error at CMakeLists.txt:243 (include):
include could not find load file:
/home/.../InsightToolkit/InsightToolkit-4.9.1/Utilities/KWStyle/KWStyle.cmake
CMake Error at CMake/ITKModuleEnablement.cmake:43 (message):
No such module "ITKKWIML" needed by "ITKCommon"
Call Stack (most recent call first):
CMake/ITKModuleEnablement.cmake:59 (itk_module_check)
CMake/ITKModuleEnablement.cmake:59 (itk_module_check)
CMake/ITKModuleEnablement.cmake:66 (itk_module_check)
CMakeLists.txt:345 (include)
您需要从源代码构建和安装 ITK。有详细解释here.
安装完ITK后,CMake就能找到它。