Difference between revisions of "IGT:ToolKit/Build-OpenIGTLink"

From NAMIC Wiki
Jump to: navigation, search
m
Line 1: Line 1:
 
Back to [[IGT:ToolKit|IGT:ToolKit]]
 
Back to [[IGT:ToolKit|IGT:ToolKit]]
  
Slicer3 is assumed to have been built on your computer.
+
===Notes before you begin===
 +
* Slicer3 is assumed to have been built on your computer in the directory '''igt-tutorial'''
 +
* CMake 2.6 is absolutely required.  If you don't have it installed, you can use the version of ccmake found in igt-tutorial/Slicer3-lib/CMake-build/bin (it will be CMake 2.6)
  
1. In directory '''igt-tutorial''' (where you built Slicer3 in step 1), download OpenIGTLink module source code by running this command:
+
===Instructions===
    svn co http://www.na-mic.org/svn/NAMICSandBox/trunk/IGTLoadableModules
 
2. In directory '''igt-tutorial/IGTLoadableModules''', create a new directory '''OpenIGTLink-build'''
 
  
3. Cd to '''OpenIGTLink-build''', and run the following command to configure the project:
+
First, get the OpenIGTLink module source code from the repository:
  ccmake ../OpenIGTLink
+
  $ cd igt-tutorial
You need to set '''Slicer3_DIR''' as the build directory of Slicer3, i.e. Slicer3-build. Also, make sure you have version 2.6 of CMake installed. If you don't, you can find in Slicer3-lib/CMake-build/bin. After configuration, run
+
  $ svn co http://www.na-mic.org/svn/NAMICSandBox/trunk/IGTLoadableModules/OpenIGTLink OpenIGTLink
make  
+
 
To build OpenIGTLink. Upon completion, you should find '''libOpenIGTLink.so''' here at igt-tutorial/OpenIGTLink-build/lib/Slicer3/Modules.
+
Create a new build directory:
 +
  $ mkdir OpenIGTLink-build
 +
 
 +
Configure using CMake 2.6 - you should set '''Slicer3_DIR''' to your build directory of Slicer3, i.e. Slicer3-build.
 +
  $ cd OpenIGTLink-build
 +
  $ ccmake ../OpenIGTLink
 +
 
 +
If the previous command has completed without error, you can start building:
 +
  $ make
 +
 
 +
Upon completion, you should find '''libOpenIGTLink.so''' (Linux) or '''libOpenIGTLink.dylib''' (Mac OS X) at igt-tutorial/OpenIGTLink-build/lib/Slicer3/Modules

Revision as of 02:24, 4 June 2008

Home < IGT:ToolKit < Build-OpenIGTLink

Back to IGT:ToolKit

Notes before you begin

  • Slicer3 is assumed to have been built on your computer in the directory igt-tutorial
  • CMake 2.6 is absolutely required. If you don't have it installed, you can use the version of ccmake found in igt-tutorial/Slicer3-lib/CMake-build/bin (it will be CMake 2.6)

Instructions

First, get the OpenIGTLink module source code from the repository:

 $ cd igt-tutorial
 $ svn co http://www.na-mic.org/svn/NAMICSandBox/trunk/IGTLoadableModules/OpenIGTLink OpenIGTLink

Create a new build directory:

 $ mkdir OpenIGTLink-build

Configure using CMake 2.6 - you should set Slicer3_DIR to your build directory of Slicer3, i.e. Slicer3-build.

 $ cd OpenIGTLink-build
 $ ccmake ../OpenIGTLink

If the previous command has completed without error, you can start building:

 $ make

Upon completion, you should find libOpenIGTLink.so (Linux) or libOpenIGTLink.dylib (Mac OS X) at igt-tutorial/OpenIGTLink-build/lib/Slicer3/Modules