ITK/Release 4/Wrapping/WrapITK Installation: Difference between revisions

From KitwarePublic
< ITK‎ | Release 4‎ | Wrapping
Jump to navigationJump to search
No edit summary
Line 29: Line 29:
To create the experimental build, run the command:  
To create the experimental build, run the command:  
  ctest -D Experimental
  ctest -D Experimental
= Using CCache for WrapITK =
Using CCache[http://ccache.samba.org] to build WrapITK can improve the build times considerably.
Install ccache with Macports. The Macports installation would automatically creates the symbolic links to g++/cc compilers and put them in the directory /opt/local/libexec/ccache. The only remaining thing needed is to add this directory to the PATH variable (alternatively you can add it to the .bash_profile or .profile in home directory)
$ sudo port install ccache
$ export PATH= /opt/local/libexec/ccache:$PATH

Revision as of 21:41, 21 March 2011

WrapITK Installation Steps for WrapITK installation on Mac OS X Snow Leopard:

Required tools

Download ITK

Download ITK source from the git page [6] Make sure you checkout the Master branch using git checkout master instead of any other tag. The output directory ITK would contain the source code.

Build ITK

Create a new directory for ITK binaries and run cmake from command line or GUI to build the ITK source.

mkdir build 
cd build 
ccmake ..

Make sure of enabling the configuration options USE_WRAP_ITK, ITK_USE_REVIEW, and BUILD_SHARED_LIBS in the configuration. For specific language wrapping support, enable the corresponding options. For example, enable WRAP_ITK_PYTHON for Python, WRAP_ITK_JAVA for Java. Note that WRAP_ITK_EXPLICIT option should be set ON when building WrapITK for many languages;this will improve build time significantly. Finally, run the make utility.

make

ITK/build directory would contain the binaries.

Experimental build

To create the experimental build, run the command:

ctest -D Experimental

Using CCache for WrapITK

Using CCache[7] to build WrapITK can improve the build times considerably. Install ccache with Macports. The Macports installation would automatically creates the symbolic links to g++/cc compilers and put them in the directory /opt/local/libexec/ccache. The only remaining thing needed is to add this directory to the PATH variable (alternatively you can add it to the .bash_profile or .profile in home directory)

$ sudo port install ccache
$ export PATH= /opt/local/libexec/ccache:$PATH