OpenIGTLink/Slicer/Build

From NAMIC Wiki
Jump to: navigation, search
Home < OpenIGTLink < Slicer < Build

About this page

This page describes how to build 3D Slicer with OpenIGTLink interface module. The OpenIGTLink module is in the 3D Slicer 3 trunk repository. Before build the Slicer, you need to enable OpenIGTLink option.

Linux and Mac

First, get the source code from the repository. For Linux and Mac:

 $ cd <working directory>
 $ svn co http://svn.slicer.org/Slicer3/trunk Slicer3

Then edit Slicer3/slicer_variables.tcl configuration file. Around line 150:

 set ::USE_OPENIGTLINK "OFF"

should be modified as:

 set ::USE_OPENIGTLINK "ON"

Save the configuration file, start building by running Slicer3/Scripts/getbuildtest.tcl

$ cd Slicer3
$ ./Scripts/getbuildtest.tcl

It will take a while. Once the building process is completed, you could find Slicer3 program in the binary directory. To launch the Slicer, do followings:

$ cd ../Slicer3-build
$ ./Slicer

Windows

Detailed instructions can be found in Slicer 3 Build Instruction .

Before you start, you need:

  • Cygwin with tcltk, svn, cvs, unzip and curl packages.
  • Microsoft C++ compiler. Microsoft Visual C++ 2009 Express can be used and it's free.

First, get the source code from the repository: http://svn.slicer.org/Slicer3/trunk. You could run svn command from Cygwin terminal as:

 $ cd <working directory>
 $ svn co http://svn.slicer.org/Slicer3/trunk Slicer3

Then edit the configuration file. Open Slicer3/slicer_variables.tcl and edit the following line (around line 150):

 set ::USE_OPENIGTLINK "OFF"

as:

 set ::USE_OPENIGTLINK "ON"

Save the configuration file, start building by running Slicer3/Scripts/getbuildtest.tcl

$ cd Slicer3
$ ./Scripts/getbuildtest.tcl

It will take a while. Once the building process is completed, you could find Slicer3.exe in Slicer3-build directory.