0

使用 GDCM2.2 配置 ITK 时发现以下错误

CMake Error at Modules/ThirdParty/GDCM/itk-module-init.cmake:5 (find_package):
  By not providing "FindGDCM.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "GDCM", but
  CMake did not find one.

  Could not find a package configuration file provided by "GDCM" with any of
  the following names:

    GDCMConfig.cmake
    gdcm-config.cmake

  Add the installation prefix of "GDCM" to CMAKE_PREFIX_PATH or set
  "GDCM_DIR" to a directory containing one of the above files.  If "GDCM"
  provides a separate development package or SDK, be sure it has been
  installed.
Call Stack (most recent call first):
  CMakeLists.txt:558 (include)

我已经安装了 GDCM2.2 [不是存储库] 并手动设置了 gdcm 目录的路径,但 Cmake 仍然返回此错误。请帮忙。

4

1 回答 1

2

使用 gdcm 构建 ITK 下载 gdcm2.2.1 或最新版本的 .zip 文件,因为通过 exe 安装 gdcm 不包括任何 GDCMconfig.cmake 文件,但 zip 有它。在 ITK 配置中,我们必须给出 GDCMconfig.cmake 所在目录的路径。

于 2013-01-02T10:46:37.813 回答