Build Slicer3 on Dell Laptop Inspiron 1501 (Fedora Core 6)

From NAMIC Wiki
Jump to: navigation, search
Home < Build Slicer3 on Dell Laptop Inspiron 1501 (Fedora Core 6)

If Fedora Core 6 has been installed on Dell Laptop Inspiron 1501, follow these steps to build Slicer3 on it:

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

 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

 ./Slicer3/Scripts/getbuildtest.tcl

Run Slicer3

 ./Slicer3-build/bin/Slicer3