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 に答える