升级 cmake 后,安装 ITK 仍然出错?

升级 cmake 后,安装 ITK 仍然出错?

我想安装一个需要 ITK 的软件,但它引发了一个错误:

[ 52%] Performing configure step for 'ITKv5'
Not searching for unused variables given on the command line.
CMake Error at CMakeLists.txt:1 (cmake_minimum_required):
  CMake 3.10.2 or higher is required.  You are running version 3.5.1


-- Configuring incomplete, errors occurred!
CMakeFiles/ITKv5.dir/build.make:107: recipe for target 'ITKv5-prefix/src/ITKv5-stamp/ITKv5-configure' failed
make[2]: *** [ITKv5-prefix/src/ITKv5-stamp/ITKv5-configure] Error 1
CMakeFiles/Makefile2:104: recipe for target 'CMakeFiles/ITKv5.dir/all' failed
make[1]: *** [CMakeFiles/ITKv5.dir/all] Error 2
Makefile:116: recipe for target 'all' failed
make: *** [all] Error 2

我删除了当前的 cmake(3.5.1)并从 cmake 网站重新安装它,并按照此处的说明。最新版本是cmake version 3.11.3,但是我仍然收到相同的错误。您能帮我解决这个问题吗?

答案1

Ubuntu 14.04 - amd64. ... 为以下项构建 cmakeITK5.0例如cmake_3.10.3:获取“build-deps”→$ sudo apt install g++ libncurses5-dev gfortran libbz2-dev libcurl4-openssl-dev python-sphinx libjsoncpp0 libarchive-dev libexpat1-dev libuv-dev librhash-dev liblzma-dev emacs python-all-dev desktop-file-utils libx11-dev libjsoncpp-dev

结果 :cmake_3.10.3-1ubuntu14_amd64.deb https://drive.google.com/file/d/1nUI2nRc7KfbxJZuQb9XduCiLt_qpZxlR/view?usp=sharing

安装/更新“cmake”:$ sudo gdebi Downloads/cmake_3.10.3-1ubuntu14_amd64.deb


$ cd ITK-5.0a02/build/ && cmake .. && make:创建了 259 个可执行文件 → 1.2GB(构建时间 = 3 .. 4 小时)

$ sudo make install > ITK5_install.loghttps://www.dropbox.com/s/ip7zbyzifgqlkzm/ITK5_install.log.txt?dl=0→ 第 2904 行:/usr/local/bin/itkTestDriver

相关内容