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

From NAMIC Wiki
Jump to: navigation, search
Line 15: Line 15:
  
 
Configure using CMake 2.6:  Press the 'c' key, then set '''Slicer3_DIR''' to your build directory of Slicer3 (i.e. Slicer3-build), press 'c' again and then press the 'g' key to generate the makefiles.
 
Configure using CMake 2.6:  Press the 'c' key, then set '''Slicer3_DIR''' to your build directory of Slicer3 (i.e. Slicer3-build), press 'c' again and then press the 'g' key to generate the makefiles.
 +
 +
''' Windows '''
 +
* Open OpenIGTLink.sln in the OpenIGTLink-build folder
 +
* Build -> Build Solution
 +
 +
Upon completion, you will find '''OpenIGTLink.dll''' in OpenIGTLink-build/Debug
 +
 +
''' Linux / Mac OS X '''
 
   $ cd OpenIGTLink-build
 
   $ cd OpenIGTLink-build
 
   $ ccmake ../OpenIGTLink
 
   $ ccmake ../OpenIGTLink
Line 21: Line 29:
 
   $ make
 
   $ make
  
Upon completion, you should find '''libOpenIGTLink.so''' (Linux), '''libOpenIGTLink.dll''' (Windows) or '''libOpenIGTLink.dylib''' (Mac OS X) at igt-tutorial/OpenIGTLink-build
+
Upon completion, you should find '''libOpenIGTLink.so''' (Linux) or '''libOpenIGTLink.dylib''' (Mac OS X) at igt-tutorial/OpenIGTLink-build

Revision as of 22:14, 10 October 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://svn.na-mic.org/NAMICSandBox/trunk/IGTLoadableModules/OpenIGTLink OpenIGTLink

Create a new build directory:

 $ mkdir OpenIGTLink-build

Configure using CMake 2.6: Press the 'c' key, then set Slicer3_DIR to your build directory of Slicer3 (i.e. Slicer3-build), press 'c' again and then press the 'g' key to generate the makefiles.

Windows

  • Open OpenIGTLink.sln in the OpenIGTLink-build folder
  • Build -> Build Solution

Upon completion, you will find OpenIGTLink.dll in OpenIGTLink-build/Debug

Linux / Mac OS X

 $ 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