Difference between revisions of "SimpleITK with Slicer4"

From NAMIC Wiki
Jump to: navigation, search
m (Fixed CMake flag names)
(Added Qt requirement and superbuild persistance work-around)
 
Line 2: Line 2:
  
 
=Linux/Mac=
 
=Linux/Mac=
Currently does '''NOT''' work with CLang compiler (OSX Lion)
+
 
 +
== 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:
 
From build directory:
  $ cmake /source/dir  
+
  $ ccmake /source/dir
 +
$ cmake .
 
  > -DCMAKE_BUILD_TYPE:STRING=Release  
 
  > -DCMAKE_BUILD_TYPE:STRING=Release  
 
  > -DSlicer_ITK_VERSION_MAJOR:INT=4  
 
  > -DSlicer_ITK_VERSION_MAJOR:INT=4  
Line 13: Line 18:
 
  > -DCMAKE_C_FLAGS=-fPIC  
 
  > -DCMAKE_C_FLAGS=-fPIC  
 
  > -DCMAKE_CXX_FLAGS=-fPIC
 
  > -DCMAKE_CXX_FLAGS=-fPIC
 +
> -DCMAKE_QT_EXECUTABLE=/path/to/Qt/4.7
  
 
=Windows=
 
=Windows=
 
From build directory:
 
From build directory:
 
  '''TODO'''
 
  '''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