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

From NAMIC Wiki
Jump to: navigation, search
Line 11: Line 11:
 
* Cd IGSTK-build, configure the project
 
* Cd IGSTK-build, configure the project
 
  ccmake ../IGSTK
 
  ccmake ../IGSTK
You need ITK, VTK for the configuration. ITK and VTK can be found after Slicer3 is built.
+
You need ITK, VTK for the configuration. ITK and VTK can be found after Slicer3 is built. Here is an example of how IGSTK is configured:
 +
 
 +
BUILD_DOCUMENTATION              OFF
 +
BUILD_TESTING                    ON
 +
CMAKE_BACKWARDS_COMPATIBILITY    2.4
 +
CMAKE_BUILD_TYPE
 +
CMAKE_INSTALL_PREFIX            /usr/local
 +
DART_ROOT                        DART_ROOT-NOTFOUND
 +
EXECUTABLE_OUTPUT_PATH          /home/hliu/projects/igstk/IGSTK-build/bin
 +
IGSTK_BUILD_EXAMPLES            ON
 +
IGSTK_BUILD_TESTING              ON
 +
IGSTK_DEVELOPMENT_VERSION        ON
 +
IGSTK_TEST_AURORA_ATTACHED      ON
 +
IGSTK_TEST_AURORA_PORT_NUMBER    0
 +
IGSTK_TEST_LOOPBACK_ATTACHED    OFF
 +
IGSTK_TEST_LOOPBACK_PORT_NUMBE  1
 +
IGSTK_TEST_POLARIS_ATTACHED      OFF
 +
IGSTK_TEST_POLARIS_PORT_NUMBER  0
 +
IGSTK_USE_FLTK                  OFF
 +
IGSTK_USE_MicronTracker          OFF
 +
IGSTK_USE_Qt                    OFF
 +
ITK_DIR                          /home/hliu/projects/Slicer3-lib/Insight-build
 +
LIBRARY_OUTPUT_PATH              /home/hliu/projects/igstk/IGSTK-build/bin
 +
VTK_DIR                          /home/hliu/projects/Slicer3-lib/VTK-build
 +
 
 
* Run this command to build
 
* Run this command to build
 
  make
 
  make

Revision as of 14:27, 27 May 2008

Home < IGT:ToolKit < Build-IGSTK

Back to IGT:ToolKit

1. In directory igt-tutorial, download IGSTK source code by running these commands:

cvs -d :pserver:anonymous@public.kitware.com:/cvsroot/IGSTK login
 answer by 'igstk'
cvs -d :pserver:anonymous@public.kitware.com:/cvsroot/IGSTK co IGSTK
cvs -d :pserver:anonymous@public.kitware.com:/cvsroot/IGSTK co IGSTKSandbox

2. Build IGSTK

  • In directory igt-tutorial, create a new directory IGSTK-build.
  • Cd IGSTK-build, configure the project
ccmake ../IGSTK

You need ITK, VTK for the configuration. ITK and VTK can be found after Slicer3 is built. Here is an example of how IGSTK is configured:

BUILD_DOCUMENTATION              OFF
BUILD_TESTING                    ON
CMAKE_BACKWARDS_COMPATIBILITY    2.4
CMAKE_BUILD_TYPE
CMAKE_INSTALL_PREFIX             /usr/local
DART_ROOT                        DART_ROOT-NOTFOUND
EXECUTABLE_OUTPUT_PATH           /home/hliu/projects/igstk/IGSTK-build/bin
IGSTK_BUILD_EXAMPLES             ON
IGSTK_BUILD_TESTING              ON
IGSTK_DEVELOPMENT_VERSION        ON
IGSTK_TEST_AURORA_ATTACHED       ON
IGSTK_TEST_AURORA_PORT_NUMBER    0
IGSTK_TEST_LOOPBACK_ATTACHED     OFF
IGSTK_TEST_LOOPBACK_PORT_NUMBE   1
IGSTK_TEST_POLARIS_ATTACHED      OFF
IGSTK_TEST_POLARIS_PORT_NUMBER   0
IGSTK_USE_FLTK                   OFF
IGSTK_USE_MicronTracker          OFF
IGSTK_USE_Qt                     OFF
ITK_DIR                          /home/hliu/projects/Slicer3-lib/Insight-build
LIBRARY_OUTPUT_PATH              /home/hliu/projects/igstk/IGSTK-build/bin
VTK_DIR                          /home/hliu/projects/Slicer3-lib/VTK-build
  • Run this command to build
make

3. Build IGSTKSandbox

  • In directory igt-tutorial, create a new directory IGSTKSandbox-build.
  • Cd IGSTKSandbox-build, configure the project
ccmake ../IGSTKSandbox

You need ITK, VTK and IGSTK to configure IGSTKSandbox.

  • Run this command to build
make