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

From NAMIC Wiki
Revision as of 16:33, 26 February 2007 by Hliu (talk | contribs)
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 as follows:


 #
 # OpenTracker 
 #
 OPTION(USE_OPENTRACKER "Build Slicer3 with OpenTracker support." ON)

IF(USE_OPENTRACKER)

 # version of opentracker: 1.3 or 2.0
 # By default, use versin 1.3. If use 2.0, turn it off
 OPTION(OT_VERSION_13 "Specify the opentracker version." OFF)
 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)
 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