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

From NAMIC Wiki
Jump to: navigation, search
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
Back to [[IGT:ToolKit|IGT:ToolKit]]
 
Back to [[IGT:ToolKit|IGT:ToolKit]]
  
1. In directory '''igt-tutorial''', download IGSTK source code by running these commands:
+
===Notes before you begin===
cvs -d :pserver:anonymous@public.kitware.com:/cvsroot/IGSTK login
+
* Slicer3 is assumed to have been built on your computer in the directory '''igt-tutorial'''
  answer by 'igstk'
+
* 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).
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
+
===Get source code of the IGSTK package (including IGSTK and IGSTKSandbox)===
* In directory '''igt-tutorial''', create a new directory '''IGSTK-build'''.
+
  $ cd igt-tutorial
* Cd IGSTK-build, configure the project
+
  $ cvs -d :pserver:anonymous@public.kitware.com:/cvsroot/IGSTK login
ccmake ../IGSTK
+
    answer with 'igstk'
You need ITK, VTK for the configuration. ITK and VTK can be found after Slicer3 is built.
+
  $ cvs -d :pserver:anonymous@public.kitware.com:/cvsroot/IGSTK co IGSTK
 +
  $ cvs -d :pserver:anonymous@public.kitware.com:/cvsroot/IGSTK co IGSTKSandbox
  
3. Build IGSTKSandbox
+
===Build IGSTK package===
* In directory '''igt-tutorial''', create a new directory '''IGSTKSandbox-build'''.
+
* [http://wiki.na-mic.org/Wiki/index.php/IGT:ToolKit/Build-IGSTK-Linux On Linux]
* Cd IGSTKSandbox-build, configure the project
+
* [http://wiki.na-mic.org/Wiki/index.php/IGT:ToolKit/Build-IGSTK-Windows On Windows XP]
ccmake ../IGSTKSandbox
 
You need ITK, VTK and IGSTK to configure IGSTKSandbox.
 
 
 
You need to set '''Slicer3_DIR''' as the build directory of Slicer3, i.e. Slicer3-buld. Also, make sure you have version 2.6 of CMake installed. If you don't, you can find in Slicer3-lib/CMake-build/bin. After configuration, run
 
make
 
To build OpenIGTLink. Upon completion, you should find '''libOpenIGTLink.so''' here at igt-tutorial/OpenIGTLink-build/lib/Slicer3/Modules.
 

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