Difference between revisions of "Instructions to build NaviTrack"

From NAMIC Wiki
Jump to: navigation, search
 
(19 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
= '''Linux Users''' =
 +
 
== Make directory: '''navitrack''' ==
 
== Make directory: '''navitrack''' ==
  
Line 8: Line 10:
 
* Run the following command to check out NaviTrack source tree:
 
* Run the following command to check out NaviTrack source tree:
 
  svn co --username ivs --password ivs https://ariser.uio.no/svn/navitrack/branches/nt-brp NaviTrack  
 
  svn co --username ivs --password ivs https://ariser.uio.no/svn/navitrack/branches/nt-brp NaviTrack  
* Download ACE source code, e.g. ACE-5.5.tar.gz, from this site: http://download.dre.vanderbilt.edu/
 
  
* Move the compressed source code (e.g. ACE-5.5.tar.gz) to the directory "splot-build"
+
== Configure NaviTrack for compiling ==
 +
* In the directory '''navitrack''', create a new directory '''NaviTrack-build'''. Now navitrack has two sub-directories: NaviTrack and NaviTrack-build
 +
* Change directory to '''NaviTrack-build'''
 +
* Run this command to configure NaviTrack:
 +
cmake ../NaviTrack
 +
(Note: Make sure you have CMake 2.4 or later installed on your system. If you don't, here is the website to get it: <br> http://www.cmake.org/HTML/Download.html)
  
* Unzip the source code and you will have this directory: ACE_wrappers
+
== Build NaviTrack ==
  gunzip ACE-5.5.tar.gz
+
* To compile NaviTrack, in the same directory, e.g. NaviTrack-build, run:
  tar xvf ACE-5.5.tar
+
make
  
* Set environment variable: '''ACE_ROOT'''. For instance, in '''.bash_profile''', add
 
  ACE_ROOT=/your-path/splot-build/ACE_wrappers
 
  export ACE_ROOT
 
  
* Add ACE lib to environment variable: '''LD_LIBRARY_PATH'''. For instance, in '''.bash_profile''', add
+
= '''Windows Users''' =
  LD_LIBRARY_PATH=$ACE_ROOT/lib:$LD_LIBRARY_PATH
 
  export LD_LIBRARY_PATH
 
  
* Create a configuration file, '''config.h''', in $ACE_ROOT/ace. Config.h will contain only the following line:
+
== Make directory: '''navitrack''' ==
  
  #include "ace/config-linux.h"
+
* Create this directory anywhere you want on your machine
 +
* This directory will be the root directory for your NaviTrack
 +
* In navitrack, make a new directory '''NaviTrack''' where the source code will be downloaded to
 +
* In the same directory, create a directory '''NaviTrack-build'''
  
This file includes the appropriate platform/compiler-specific header configurations from the ACE source directory.
+
== Download NaviTrack source code ==
 
+
* If you don't '''RapidSVN''' on your machine, download and install it from here: http://www.rapidsvn.org/download/release/0.9.4/
* Create a build configuration file, '''platform_macros.GNU''', in $ACE_ROOT/include/makeinclude. Platform_macros.GNU will contain only the following line:
+
* Run RapidSVN to check out NaviTrack source tree with the following parameters:
 
+
** username: ivs
  include $(ACE_ROOT)/include/makeinclude/platform_linux.GNU
+
** password: ivs
 
+
** URL: https://ariser.uio.no/svn/navitrack/branches/nt-brp
This file contains the compiler and Makefile directives that are platform/compiler-specific.
+
** Destination directory: your-path/navitrack/NaviTrack
 
 
* Run "make" in the ACE_ROOT directory
 
The compiling failed in building $ACE_ROOT/ACEXML/examples/SAXPrint. But the ACE libraries are already built in $ACE_ROOT/lib.
 
 
 
== Build xerces ==
 
 
 
* Download "xerces-c-src_2_7_0.tar.gz" from: http://archive.apache.org/dist/xml/xerces-c/source/ into the directory "splot-build"
 
* Unzip the source code and you will have this directory: xerces-c-src_2_7_0
 
  gunzip xerces-c-src_2_7_0.tar.gz
 
  tar xvf xerces-c-src_2_7_0.tar
 
* Set environmental variable: '''XERCESCROOT'''. For instance, in '''.bash_profile''', add:
 
  XERCESCROOT=/home/your-path/splot-build/xerces-c-src_2_7_0
 
  export XERCESCROOT
 
 
 
* Run autoconf
 
  cd $XERCESCROOT/src/xercesc
 
  autoconf
 
 
 
* In the same directory,
 
  ./configure
 
  make
 
 
 
* You will see libraries built in $XERCESCROOT/lib
 
 
 
== Build opentracker ==
 
 
 
* In "splot-build,", check out opentracker 1.3 from
 
  svn co --username otreader https://svn.icg.tu-graz.ac.at/svn/opentracker/tags/OPENTRACKER_1_3_FINAL opentracker
 
Press "t" to temporarily accept the certificate. Input '''OPEN4read''' when prompted for password.
 
 
 
* To build opentracker, do the following:
 
  cd opentracker
 
  ./bootstrap
 
  ./configure --with-ace=your_ace_dir --with-xerces=your_xerces_dir
 
  make
 
 
 
== Build CMake ==
 
 
 
Assume Slicer3 has been built, set PATH for CMake bin.
 
 
 
== Build SPLOT ==
 
 
 
* Check out SPLOT code into "splot-build" from
 
  svn co http://www.na-mic.org:8000/svn/Sign/SPLOT/trunk SPLOT
 
  
* Configure the build by running this command in SPLOT root directory
+
== Configure NaviTrack for compiling ==
  ccmake .
+
* If you don't have '''CMake''' on your computer, download and install it (version 2.4.1 or later) from here: http://www.cmake.org/HTML/Download.html
 +
* If you don't have a compiler on your computer, install Visual Studio or Developer Studio 8 Visual C++ Express. The Express is free. You can download it from here: http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/. You need to download the compiler '''and''' sdk.
  
ACE: path/libACE.so; ACE_DIR: path/ACE_wrappers; OPENTRACKER: path/libopentracker.so; OT_INC: directory containing OpenTracker.h; XERCES: path/libxerces-c.so
+
* Use CMake to configure NaviTrack. Make sure to write the configuration results into '''navitrack/NaviTrack-build'''
  
* Compile
+
== Build NaviTrack ==
  make
+
* Use Visual Studio to open the '''.sln''' file in NaviTrack-build directory
 +
* Build all projects in the list

Latest revision as of 18:22, 15 May 2007

Home < Instructions to build NaviTrack

Linux Users

Make directory: navitrack

  • Create this directory anywhere you want on your machine
  • This directory will be the root directory for your NaviTrack

Download NaviTrack source code

  • Change directory to navitrack you just created
  • Run the following command to check out NaviTrack source tree:
svn co --username ivs --password ivs https://ariser.uio.no/svn/navitrack/branches/nt-brp NaviTrack 

Configure NaviTrack for compiling

  • In the directory navitrack, create a new directory NaviTrack-build. Now navitrack has two sub-directories: NaviTrack and NaviTrack-build
  • Change directory to NaviTrack-build
  • Run this command to configure NaviTrack:
cmake ../NaviTrack
(Note: Make sure you have CMake 2.4 or later installed on your system. If you don't, here is the website to get it: 
http://www.cmake.org/HTML/Download.html)

Build NaviTrack

  • To compile NaviTrack, in the same directory, e.g. NaviTrack-build, run:
make


Windows Users

Make directory: navitrack

  • Create this directory anywhere you want on your machine
  • This directory will be the root directory for your NaviTrack
  • In navitrack, make a new directory NaviTrack where the source code will be downloaded to
  • In the same directory, create a directory NaviTrack-build

Download NaviTrack source code

Configure NaviTrack for compiling

  • Use CMake to configure NaviTrack. Make sure to write the configuration results into navitrack/NaviTrack-build

Build NaviTrack

  • Use Visual Studio to open the .sln file in NaviTrack-build directory
  • Build all projects in the list