Difference between revisions of "NaviTrack Tutorial:Creating module:Module structure"

From NAMIC Wiki
Jump to: navigation, search
 
Line 1: Line 1:
== Make directory: '''navitrack''' ==
+
== Three types of node ==
  
* Create this directory anywhere you want on your machine
+
* Sink node  (XxxxSink.h, [XxxxSink.cxx])
* This directory will be the root directory for your NaviTrack
+
* Source node (XxxxSource.h, [XxxxSource.cxx])
 +
* Filter node (we don't use this in the tutorial)
  
== Download NaviTrack source code ==
+
== Structure of XXXModule ==
 
* Change directory to '''navitrack''' you just created
 
* Change directory to '''navitrack''' you just created
 
* 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  
  
== Configure NaviTrack for compiling ==
+
== Structure of Sink class ==
* 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)
 
  
== Build NaviTrack ==
 
* To compile NaviTrack, in the same directory, e.g. NaviTrack-build, run:
 
make
 
  
== Windows Notes ==
+
== Structure of Source class ==
 
 
=== Prerequisite software ===
 
 
 
You need to get the following packages prior to compiling NaviTrack.  While still experimental, it should work on a properly configured windows environment. Current requirements are:
 
 
 
* Developer studio 8 Visual C++ Express which is free from Microsoft - be sure to install the Platform SDK and follow the ridiculous manual steps to set up the paths (see below).
 
** Other releases of visual studio also work (7 and 7.1)
 
* [http://www.cygwin.com Cygwin] with the following packages
 
** svn
 
 
 
* [http://www.cmake.org CMake (2.4.1 or later)]
 
 
 
=== Information on Free Microsoft C++ Compiler on Windows ===
 
 
 
Be sure to follow '''all''' the steps on Microsoft link. Yes it means you need to download the compiler '''and''' sdk.
 
 
 
* http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/
 

Revision as of 17:30, 14 May 2007

Home < NaviTrack Tutorial:Creating module:Module structure

Three types of node

  • Sink node (XxxxSink.h, [XxxxSink.cxx])
  • Source node (XxxxSource.h, [XxxxSource.cxx])
  • Filter node (we don't use this in the tutorial)

Structure of XXXModule

  • 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 

Structure of Sink class

Structure of Source class