(1) sudo apt-get install cmake
(2) sudo apt-get install cmake-curses-gui
(3)下载安装包InsightToolkit-4.11.1.tar.gz,下载地址
sudo tar -xvf InsightToolkit-4.11.1.tar.gz
mkdir build
cd build/
ccmake ../InsightToolkit-3.20.1
(4)CMake配置如下:
BUILD_DOXYGEN OFF
BUILD_EXAMPLES ON
BUILD_SHARED_LIBS OFF
BUILD_TESTING ON
CMAKE_BACKWARDS_COMPATIBILITY 2.4
CMAKE_BUILD_TYPE release
CMAKE_INSTALL_PREFIX /usr/local/InsightToolkit-3.20.1
ITK_USE_KWSTYLE OFF
c完成,g完成。无错误无警告。
(5)sudo make
(6)sudo make install
也可参考以下两个博客:
http://blog.csdn.net/daliangd/article/details/12835393
http://blog.csdn.net/arackethis/article/details/42274825