Difference between revisions of "Build Slicer3 on Dell Laptop Inspiron 1501 (Fedora Core 6)"

From NAMIC Wiki
Jump to: navigation, search
 
(21 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
If Fedora Core 6 has been installed on Dell Laptop Inspiron 1501, follow these steps to build Slicer3 on it:
 
If Fedora Core 6 has been installed on Dell Laptop Inspiron 1501, follow these steps to build Slicer3 on it:
  
== Install tcl/tk ==
+
== Install Tcl/Tk ==
  
* Download free Tcl/Tk binary for linux from here:
+
* If you don't have Tcl/Tk installed, download its binary from here:
http://downloads.akctivestate.com/ActiveTcl/Linux/8.4.14/ActiveTcl8.4.14.0.272572-linux-ix86.tar.gz
+
http://downloads.activestate.com/ActiveTcl/Linux/8.4.14/ActiveTcl8.4.14.0.272572-linux-ix86.tar.gz
* Login as root and install Tcl/Tk
 
  
== Get Slicer3 source code ==
+
* Login as root and install it
  
  svn co http://www.na-mic.org/svn/Slicer3/trunk Slicer3
+
== Get Slicer3-IGT source code ==
  
== Configure build if opentracker is required (e.g. for IGT Demo module) ==
+
  svn co http://www.na-mic.org/svn/Slicer3/branches/IGT Slicer3
  
In Slicer3/CMakeLists.txt, locate the OpenTracker section and perform the following changes:
+
== [Optional] Include opentracker in Slicer3 (for IGT modules such as NeuroNav) ==
  
* Change this line
+
With SPLOT built, locate the OpenTracker section in Slicer3/CMakeLists.txt and configure that part following the bold comments:
  OPTION(USE_OPENTRACKER "Need OpenTracker lib to build IGT Demo module." '''OFF''')
 
to
 
  OPTION(USE_OPENTRACKER "Need OpenTracker lib to build IGT Demo module." '''ON''')
 
  
* Find this part
+
  #
   FIND_LIBRARY(OPENTRACKER_LIB  
+
  # OpenTracker
              NAMES opentrackerd opentracker
+
  #
              PATHS ""
+
  # '''Turn this option on to use opentracker lib'''
              )
+
  OPTION(USE_OPENTRACKER "Build Slicer3 with OpenTracker support." ON)
then change it to
+
   IF(USE_OPENTRACKER)
  FIND_LIBRARY(OPENTRACKER_LIB
+
    # '''Turn this option on if you use opentracker 1.3 and turn it off'''
              NAMES opentrackerd opentracker
+
    # '''If you use opentracker 2.0'''
              PATHS '''/home/surg/projects/splot-build/opentracker/lib'''
+
    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)
  
* Find this part
 
  FIND_PATH(OPENTRACKER_INC_DIR "OpenTracker/OpenTracker.h"
 
          /home/surg/projects/splot-build/opentracker/include
 
          ""
 
          )
 
then change it to
 
  FIND_PATH(OPENTRACKER_INC_DIR "OpenTracker/OpenTracker.h"
 
          '''/home/surg/projects/splot-build/opentracker/include'''
 
          )
 
  
 
== Build Slicer3 ==
 
== Build Slicer3 ==

Latest revision as of 16:55, 26 February 2007

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