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

From KitwarePublic
< ITK‎ | Release 4‎ | Wrapping
Jump to navigationJump to search
No edit summary
 
(33 intermediate revisions by 2 users not shown)
Line 1: Line 1:
"WrapITK Installation"
'''WrapITK Installation'''
The following lists the steps for WrapITK installation on Mac OS X  Snow Leopard:
Steps for WrapITK installation


= Required tools =
= Required tools =
Install Xcode version 3.x (& not 4.x) from developer.apple.com
* your usual compiler
Install cmake from
* Swig for Mac OS X [http://swig.org]
Install Git from http://www.itk.org/Wiki/Git/Download
* CMake [http://www.cmake.org]
* Doxygen [http://www.doxygen.org]
* Git [http://www.itk.org/Wiki/Git/Download]
 
optionally ( but we recommend it highly ! )
* ccache [[../../Wrapping/ccache|enabling ccache]]


= Download ITK =
= Download ITK =
Download ITK source from the git page from http://www.vtk.org/Wiki/ITK/Git/Download


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.
Download ITK as explained  [http://www.vtk.org/Wiki/ITK/Git/Download | here ]


= Build ITK =
= 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_REVIEW, ITK_PYTHON, ITK_JAVA, and BUILD_SHARED_LIBS in the configuration
run make utility
ITK/build directory would contain the binaries


= Experimental build =
Create a BUILD directory and go there (example given for linux/mac)
To create the experimental build, run the command: crest -D Experimental
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 [[/Wrap_ITK_EXPLICIT|here]] ).
* WRAP_ITK_EXPLICIT
 
Much improvement in building speed can be achieve by [[../../Wrapping/ccache|enabling ccache]].
 
Now, keep configuring until the "generate" option appears. Generate. Compile.

Latest revision as of 16:00, 9 December 2011

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.