ITK/Release 4/Wrapping/WrapITK Installation

From KitwarePublic
Jump to navigationJump to search

WrapITK Installation Steps for WrapITK installation

Required tools

  • your usual compiler
  • Swig for Mac OS X [1]
  • CMake [2]
  • Doxygen [3]
  • Git [4]

optionally ( but we recommend it highly ! )

Download ITK

Download ITK as explained | here

Build ITK

Create a BUILD directory and go there (example given for linux/mac)

mkdir BUILD
cd BUILD

Run CCMake (example given for linux/mac)

ccmake ..

Set the following CMake flags ON:

  • USE_WRAP_ITK
  • ITK_USE_REVIEW (This is an advanced option, you would need to toggle them on)
  • BUILD_SHARED_LIBS

Then Choose which language(s) you want to create libraries for by setting the corresponding flag ON

  • WRAP_ITK_PYTHON
  • WRAP_ITK_JAVA
  • WRAP_ITK_TCL ...

Note that if you choose more than one, you might want to switch the following flag ON as well to sped up the process ( Examples of speed ups here ).

  • WRAP_ITK_EXPLICIT

Much improvement in building speed can be achieve by enabling ccache.

Now, keep configuring until the "generate" option appears. Generate. Compile.