Difference between revisions of "Building Slicer for IGT"

From NAMIC Wiki
Jump to: navigation, search
 
(One intermediate revision by the same user not shown)
Line 9: Line 9:
  
 
Download sources from IGT branch of Slicer 3's SVN.
 
Download sources from IGT branch of Slicer 3's SVN.
(Note: The branch is for alpha development only. It will be merged to main trunk of Slicer 3 by the end of February, 2007)
+
 
  
 
   svn co http://www.na-mic.org/svn/Slicer3/branches/IGT Slicer3
 
   svn co http://www.na-mic.org/svn/Slicer3/branches/IGT Slicer3
 
== [Optional] Include opentracker in Slicer3 (for IGT modules such as NeuroNav) ==
 
 
With SPLOT built, locate the OpenTracker section in Slicer3/CMakeLists.txt and configure that part following the bold comments:
 
 
  #
 
  # OpenTracker
 
  #
 
  # '''Turn this option on to use opentracker lib'''
 
  OPTION(USE_OPENTRACKER "Build Slicer3 with OpenTracker support." ON)
 
  IF(USE_OPENTRACKER)
 
    # '''Turn this option on if you use opentracker 1.3 and turn it off'''
 
    # '''If you use opentracker 2.0'''
 
    OPTION(OT_VERSION_13 "Specify the opentracker version." OFF)
 
    # '''Set the path here for opentracker library'''
 
    FIND_LIBRARY(OPENTRACKER_LIB
 
      NAMES opentrackerd opentracker OpenTracker
 
      PATHS /projects/birn/hliu/splot-build/opentracker/lib
 
    )
 
    IF(OPENTRACKER_LIB-NOTFOUND)
 
      MESSAGE (FATAL_ERROR "Need OpenTracker to build")
 
    ENDIF(OPENTRACKER_LIB-NOTFOUND)
 
    # include file for OpenTracker 1.3
 
    IF(OT_VERSION_13)
 
      SET(INC "OpenTracker.h")
 
    # include file for OpenTracker 2.0
 
    ELSE(OT_VERSION_13)
 
      SET(INC "OpenTracker/OpenTracker.h")
 
    ENDIF(OT_VERSION_13)
 
    #
 
    # '''Specify the path for the header file OpenTrakcer.h'''
 
    # '''For opentracker 1.3, set the directory for OpenTracker.h'''
 
    # '''For opentracker 2.0, set the path for OpenTracker/OpenTracker.h'''
 
    FIND_PATH(OPENTRACKER_INC_DIR "${INC}"
 
      /projects/birn/hliu/splot-build/opentracker/include
 
    )
 
    IF(OPENTRACKER_INC_DIR-NOTFOUND)
 
      MESSAGE (FATAL_ERROR "Need OpenTracker.h to build")
 
    ENDIF(OPENTRACKER_INC_DIR-NOTFOUND)
 
  ELSE(USE_OPENTRACKER)
 
    SET(OPENTRACKER_LIB "")
 
    SET(OPENTRACKER_INC_DIR "")
 
  ENDIF(USE_OPENTRACKER)
 
 
  
 
== Build Slicer3 for IGT ==
 
== Build Slicer3 for IGT ==

Latest revision as of 20:31, 10 October 2007

Home < Building Slicer for IGT

Install Tcl/Tk

  • If you don't have Tcl/Tk installed, download its binary from here:

http://downloads.activestate.com/ActiveTcl/Linux/8.4.14/ActiveTcl8.4.14.0.272572-linux-ix86.tar.gz

  • Login as root and install it

Get Slicer3-IGT source code

Download sources from IGT branch of Slicer 3's SVN.


 svn co http://www.na-mic.org/svn/Slicer3/branches/IGT Slicer3

Build Slicer3 for IGT

 ./Slicer3/Scripts/getbuildtest.tcl

Run Slicer3 for IGT

 ./Slicer3-build/bin/Slicer3