Difference between revisions of "SimpleITK with Slicer4"

From NAMIC Wiki
Jump to: navigation, search
(Untested, rough draft)
m (Fixed CMake flag names)
Line 7: Line 7:
 
  $ cmake /source/dir  
 
  $ cmake /source/dir  
 
  > -DCMAKE_BUILD_TYPE:STRING=Release  
 
  > -DCMAKE_BUILD_TYPE:STRING=Release  
  > -DSlicer_BUILD_WITH_ITKv4:BOOL=ON
+
  > -DSlicer_ITK_VERSION_MAJOR:INT=4
  > -DSlicer_BUILD_WITH_SIMPLEITK:BOOL=ON  
+
  > -DSlicer_USE_SimpleITK:BOOL=ON  
 
  > -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/gcc-4.2  
 
  > -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/gcc-4.2  
 
  > -DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/g++-4.2  
 
  > -DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/g++-4.2  
  > -DCMAKE_C_COMPILER_FLAGS=-fPIC  
+
  > -DCMAKE_C_FLAGS=-fPIC  
  > -DCMAKE_CXX_COMPILER_FLAGS=-fPIC
+
  > -DCMAKE_CXX_FLAGS=-fPIC
  
 
=Windows=
 
=Windows=
 
From build directory:
 
From build directory:
 
  '''TODO'''
 
  '''TODO'''

Revision as of 19:21, 2 April 2012

Home < SimpleITK with Slicer4

Instructions on how to build Slicer4 with Simple ITK:

Linux/Mac

Currently does NOT work with CLang compiler (OSX Lion)

From build directory:

$ cmake /source/dir 
> -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

Windows

From build directory:

TODO