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

From NAMIC Wiki
Jump to: navigation, search
m
Line 9: Line 9:
 
3. Cd to '''OpenIGTLink-build''', and run the following command to configure the project:
 
3. Cd to '''OpenIGTLink-build''', and run the following command to configure the project:
 
   ccmake ../OpenIGTLink
 
   ccmake ../OpenIGTLink
You need to set '''Slicer3_DIR''' as the build directory of Slicer3, i.e. Slicer3-buld. 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
+
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
 
  make  
 
  make  
 
To build OpenIGTLink. Upon completion, you should find '''libOpenIGTLink.so''' here at igt-tutorial/OpenIGTLink-build/lib/Slicer3/Modules.
 
To build OpenIGTLink. Upon completion, you should find '''libOpenIGTLink.so''' here at igt-tutorial/OpenIGTLink-build/lib/Slicer3/Modules.

Revision as of 19:44, 26 May 2008

Home < IGT:ToolKit < Build-OpenIGTLink

Back to IGT:ToolKit

Slicer3 is assumed to have been built on your computer.

1. In directory igt-tutorial, download OpenIGTLink module source code by running this command:

   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:

  ccmake ../OpenIGTLink

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

make 

To build OpenIGTLink. Upon completion, you should find libOpenIGTLink.so here at igt-tutorial/OpenIGTLink-build/lib/Slicer3/Modules.