Difference between revisions of "IGT:ToolKit/Build-IGSTK"

From NAMIC Wiki
Jump to: navigation, search
 
Line 15: Line 15:
 
* [http://wiki.na-mic.org/Wiki/index.php/IGT:ToolKit/Build-IGSTK-Linux On Linux]
 
* [http://wiki.na-mic.org/Wiki/index.php/IGT:ToolKit/Build-IGSTK-Linux On Linux]
 
* [http://wiki.na-mic.org/Wiki/index.php/IGT:ToolKit/Build-IGSTK-Windows On Windows XP]
 
* [http://wiki.na-mic.org/Wiki/index.php/IGT:ToolKit/Build-IGSTK-Windows On Windows XP]
 
===Build IGSTKSandbox===
 
cd to your '''igt-tutorial''' folder, then
 
 
  $ mkdir IGSTKSandbox-build
 
  $ cd IGSTKSandbox-build
 
  $ ccmake ../IGSTKSandbox
 
 
Configure using CMake 2.6.  You need ITK, VTK and IGSTK for this configuration.  ITK and VTK can be found in your '''Slicer3-lib''' folder after Slicer3 has been built.  IGSTK was built in the previous step.  Here is an example of how IGSTK is configured (note that you should refer to the IGSTK folder and not the IGSTK-build folder):
 
 
BUILD_SHARED                    ON
 
BUILD_TESTING                    ON
 
CMAKE_BACKWARDS_COMPATIBILITY    2.4
 
CMAKE_BUILD_TYPE
 
CMAKE_INSTALL_PREFIX            /usr/local
 
DART_ROOT                        DART_ROOT-NOTFOUND
 
DOT                              DOT-NOTFOUND
 
EXECUTABLE_OUTPUT_PATH          /home/hliu/projects/igstk/IGSTKSandbox-build/bin
 
FLTK_DIR                        FLTK_DIR-NOTFOUND
 
IGSTKSandbox_BUILD_EXAMPLES      ON
 
IGSTKSandbox_BUILD_SUPERVISED_  OFF
 
IGSTKSandbox_BUILD_TESTING      ON
 
IGSTKSandbox_SEND_TRANSFORMS_T  ON
 
IGSTKSandbox_TEST_AURORA_ATTAC  ON
 
IGSTKSandbox_TEST_AURORA_PORT_  0
 
IGSTKSandbox_TEST_FLOCKOFBIRD_  OFF
 
IGSTKSandbox_TEST_FLOCKOFBIRD_  1
 
IGSTKSandbox_TEST_LOOPBACK_ATT  OFF
 
IGSTKSandbox_TEST_LOOPBACK_POR  1
 
IGSTKSandbox_TEST_POLARIS_ATTA  OFF
 
IGSTKSandbox_TEST_POLARIS_PORT  0
 
IGSTKSandbox_USE_FLTK            OFF
 
IGSTKSandbox_USE_MicronTracker  OFF
 
IGSTKSandbox_USE_OpenIGTLink    ON
 
IGSTKSandbox_USE_Qt              OFF
 
IGSTKSandbox_USE_vtkKWImage      ON
 
IGSTK_SOURCE_DIR                /home/hliu/projects/igstk/IGSTK
 
IGSTK_USE_COORDINATE_REFERENCE  ON
 
ITK_DIR                          /home/hliu/projects/Slicer3-lib/Insight-build
 
LIBRARY_OUTPUT_PATH              /home/hliu/projects/igstk/IGSTKSandbox-build/bin
 
VTK_DIR                          /home/hliu/projects/Slicer3-lib/VTK-build
 
 
If the previous command has completed without error, you can start building
 
  $ make
 

Latest revision as of 00:36, 21 May 2009

Home < IGT:ToolKit < Build-IGSTK

Back to IGT:ToolKit

Notes before you begin

  • Slicer3 is assumed to have been built on your computer in the directory igt-tutorial
  • CMake 2.6 is absolutely required. If you don't have it installed, you can use the version of ccmake found in igt-tutorial/Slicer3-lib/CMake-build/bin (it will be CMake 2.6).

Get source code of the IGSTK package (including IGSTK and IGSTKSandbox)

 $ cd igt-tutorial
 $ cvs -d :pserver:anonymous@public.kitware.com:/cvsroot/IGSTK login
   answer with 'igstk'
 $ cvs -d :pserver:anonymous@public.kitware.com:/cvsroot/IGSTK co IGSTK
 $ cvs -d :pserver:anonymous@public.kitware.com:/cvsroot/IGSTK co IGSTKSandbox

Build IGSTK package