Difference between revisions of "Build Slicer3 on Dell Laptop Inspiron 1501 (Fedora Core 6)"
From NAMIC Wiki
Line 13: | Line 13: | ||
== Configure build if opentracker is required (e.g. for IGT Demo module) == | == Configure build if opentracker is required (e.g. for IGT Demo module) == | ||
− | + | In Slicer3/CMakeLists.txt, locate the OpenTracker section and perform the following changes: | |
− | |||
− | + | * Change this line | |
+ | 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 | FIND_LIBRARY(OPENTRACKER_LIB | ||
NAMES opentrackerd opentracker | NAMES opentrackerd opentracker | ||
PATHS "" | PATHS "" | ||
) | ) | ||
− | + | then change it to | |
FIND_LIBRARY(OPENTRACKER_LIB | FIND_LIBRARY(OPENTRACKER_LIB | ||
NAMES opentrackerd opentracker | NAMES opentrackerd opentracker | ||
Line 27: | Line 31: | ||
) | ) | ||
− | + | * Find this part | |
FIND_PATH(OPENTRACKER_INC_DIR "OpenTracker/OpenTracker.h" | FIND_PATH(OPENTRACKER_INC_DIR "OpenTracker/OpenTracker.h" | ||
/home/surg/projects/splot-build/opentracker/include | /home/surg/projects/splot-build/opentracker/include | ||
"" | "" | ||
) | ) | ||
− | + | then change it to | |
FIND_PATH(OPENTRACKER_INC_DIR "OpenTracker/OpenTracker.h" | FIND_PATH(OPENTRACKER_INC_DIR "OpenTracker/OpenTracker.h" | ||
'''/home/surg/projects/splot-build/opentracker/include''' | '''/home/surg/projects/splot-build/opentracker/include''' |
Revision as of 20:42, 3 January 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:
Contents
Install tcl/tk
- Download free Tcl/Tk binary for linux from here:
http://downloads.akctivestate.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
svn co http://www.na-mic.org/svn/Slicer3/trunk Slicer3
Configure build if opentracker is required (e.g. for IGT Demo module)
In Slicer3/CMakeLists.txt, locate the OpenTracker section and perform the following changes:
- Change this line
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 NAMES opentrackerd opentracker PATHS "" )
then change it to
FIND_LIBRARY(OPENTRACKER_LIB NAMES opentrackerd opentracker PATHS /home/surg/projects/splot-build/opentracker/lib )
- 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
./Slicer3/Scripts/getbuildtest.tcl
Run Slicer3
./Slicer3-build/bin/Slicer3