The first step was to download the most current ITK tar.gz from their site as well as installing CMake. CMake is a cross-platform, open-source build system. ITK uses CMake to control the software compilation process so that updates can be compiled more independently. CMake can be downloaded as pre-compiled binaries, and therefore needs no installation itself.
First, make a directory to contain the ITK content:
$ sudo mkdir /usr/local/itk
$ sudo mkdir /usr/local/itk
Navigate into the itk directory:
$ cd /usr/local/itk
Extract the itk files: and delete the tar.gz:
$ sudo tar xvzf InsightToolkit-3.14.0.tar.gz
Delete the tar.gz, since it is no longer necessary:
$ sudo rm -rf InsightToolkit-3.14.0.tar.gz
Next, create a bin directory:
$ sudo mkdir /usr/local/itk/InsightToolkit-3.14.0/bin
Navigate into the bin directory:
$ cd /usr/local/itk/InsightToolkit-3.14.0/bin
Run CMake to compile:
$ sudo ccmake -DITK_USE_REVIEW=ON ..
This will open the CMake GUI.
Press 'c' to compile.
Wait for the compile to finish.
Press 'g' to generate the make files.
Now install:
$ sudo make -j4
$ sudo make install
Tada, ITK is now installed!
No comments:
Post a Comment