Fedora上的ITKConfig.cmake在哪里?

时间:2016-04-14 11:30:47

标签: cmake fedora itk

我的程序使用

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软件包,但它们都没有任何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)

1 个答案:

答案 0 :(得分:2)

您需要从源代码构建和安装ITK。有一个详细的解释here

完成ITK的安装后,CMake就能找到它。