Difference between revisions of "IGT:ToolKit/Build-Tracker-Simulator"

From NAMIC Wiki
Jump to: navigation, search
m
Line 12: Line 12:
  
 
Configure using CMake 2.6:  You should not need to change any settings - just press the 'c' key followed by the 'g' key to generate the makefiles.
 
Configure using CMake 2.6:  You should not need to change any settings - just press the 'c' key followed by the 'g' key to generate the makefiles.
 +
 +
''' Windows '''
 +
* Open ScannerIO.sln in the ScannerIO folder
 +
* Build -> Build Solution
 +
* Copy ScannerIOLib.dll from the ScannerIO/Debug folder to the ScannerIO/bin/Debug folder
 +
* Make sure the Windows firewall is '''off'''
 +
Upon completion, you will find TrackerSim.exe in ScannerIO/bin/Debug
 +
 +
''' Linux / Mac OS X'''
 
  $ cd ScannerIO
 
  $ cd ScannerIO
 
  $ ccmake .
 
  $ ccmake .
Line 18: Line 27:
 
   $ make
 
   $ make
  
Upon completion, you should find the '''TrackerSim''' executable file at ScannerIO/bin
+
Upon completion, you should find the '''TrackerSim''' executable file in ScannerIO/bin

Revision as of 22:24, 10 October 2008

Home < IGT:ToolKit < Build-Tracker-Simulator

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 tracker simulator source code from the repository:

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

Configure using CMake 2.6: You should not need to change any settings - just press the 'c' key followed by the 'g' key to generate the makefiles.

Windows

  • Open ScannerIO.sln in the ScannerIO folder
  • Build -> Build Solution
  • Copy ScannerIOLib.dll from the ScannerIO/Debug folder to the ScannerIO/bin/Debug folder
  • Make sure the Windows firewall is off

Upon completion, you will find TrackerSim.exe in ScannerIO/bin/Debug

Linux / Mac OS X

$ cd ScannerIO
$ ccmake .

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

 $ make

Upon completion, you should find the TrackerSim executable file in ScannerIO/bin