Difference between revisions of "SimpleITK with Slicer4"

From NAMIC Wiki
Jump to: navigation, search
(Created page with 'Instructions on how to build Slicer4 with Simple ITK:')
 
(Added Qt requirement and superbuild persistance work-around)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
Instructions on how to build Slicer4 with Simple ITK:
 
Instructions on how to build Slicer4 with Simple ITK:
 +
 +
=Linux/Mac=
 +
 +
== Notes ==
 +
* Currently does '''NOT''' work with CLang compiler (OSX Lion)
 +
* Qt 4.8 is not compatible, use Qt 4.7
 +
* Specify variables using '''BOTH''' ccmake and cmake to ensure variable persistance to subproject builds
 +
 +
From build directory:
 +
$ ccmake /source/dir
 +
$ cmake .
 +
> -DCMAKE_BUILD_TYPE:STRING=Release
 +
> -DSlicer_ITK_VERSION_MAJOR:INT=4
 +
> -DSlicer_USE_SimpleITK:BOOL=ON
 +
> -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/gcc-4.2
 +
> -DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/g++-4.2
 +
> -DCMAKE_C_FLAGS=-fPIC
 +
> -DCMAKE_CXX_FLAGS=-fPIC
 +
> -DCMAKE_QT_EXECUTABLE=/path/to/Qt/4.7
 +
 +
=Windows=
 +
From build directory:
 +
'''TODO'''

Latest revision as of 19:47, 2 April 2012

Home < SimpleITK with Slicer4

Instructions on how to build Slicer4 with Simple ITK:

Linux/Mac

Notes

  • Currently does NOT work with CLang compiler (OSX Lion)
  • Qt 4.8 is not compatible, use Qt 4.7
  • Specify variables using BOTH ccmake and cmake to ensure variable persistance to subproject builds

From build directory:

$ ccmake /source/dir
$ cmake .
> -DCMAKE_BUILD_TYPE:STRING=Release 
> -DSlicer_ITK_VERSION_MAJOR:INT=4 
> -DSlicer_USE_SimpleITK:BOOL=ON 
> -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/gcc-4.2 
> -DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/g++-4.2 
> -DCMAKE_C_FLAGS=-fPIC 
> -DCMAKE_CXX_FLAGS=-fPIC
> -DCMAKE_QT_EXECUTABLE=/path/to/Qt/4.7

Windows

From build directory:

TODO