RTK/Developers: Difference between revisions

From Openrtk
Jump to navigation Jump to search
No edit summary
No edit summary
Line 3: Line 3:
This section is aimed to assist in the development of RTK.
This section is aimed to assist in the development of RTK.


##=== Source Code ===
=== Source Code ===


==== Download repository ====
==== Download repository ====
Line 33: Line 33:


CMake is used to build ITK, VTK  and VV.
CMake is used to build ITK, VTK  and VV.
===== ITK =====
ITK is an open-source, cross-platform system that provides developers with an extensive suite of software tools for image analysis.
Vv is tested with ITK 3.20.0.
You can download the source code [[http://www.itk.org/ITK/resources/software.html|here]] or via git:
{{{
git clone git://itk.org/ITK.git itk
git checkout v3.20.0
}}}
Create a binary directory, get into it and run CMake:
{{{
mkdir itk-binary
cd itk-binary
ccmake ../itk
make
}}}
NB: it is preferable to use the following options for registration:
{{{
Set ITK_USE_REVIEW to ON
Set ITK_USE_OPTIMIZED_REGISTRATION_METHODS to ON
}}}
====== ITK v4 ======
ITK v4 is still under development, vv git sources try to stay compatible with ITK v4 git sources.
The tagged version v1.2.0 of vv is compatible with itk v4.0a07:
{{{
git clone git://itk.org/ITK.git itk
git checkout v4.0a07
}}}
In CMake:
{{{
Set ITK_BUILD_ALL_MODULES to ON
}}}
===== Gengetopt =====
Gengetopt is a tool to write command line option parsing code for C programs.
On Windows, you can download the binary [[http://gnuwin32.sourceforge.net/packages/gengetopt.htm|here]].
On Linux, you can download the source code [[ftp://ftp.gnu.org/gnu/gengetopt|here]] or via git:
{{{
git clone git://git.sv.gnu.org/gengetopt.git
}}}
Compilation:
{{{
mkdir gengetopt-binary
cd gengetopt-binary
../gengetopt/configure
make
sudo make install
}}}


To compile the code, it is used CMake. The common steps to compile for the first time your code are as follows:
To compile the code, it is used CMake. The common steps to compile for the first time your code are as follows:

Revision as of 11:29, 2 August 2012

Developer's guide

This section is aimed to assist in the development of RTK.

Source Code

Download repository

The RTK source code can be retrieved from RTK's GIT repository using the following command:

 git clone git@github.com:SimonRit/RTK.git <sourcePath>

Compiling

In order to compile RTK you need the following third party software:

  1. CMake >= 2.4
  2. ITK >= 3.20
  3. Gengetopt >= 2.20
  • Optional:
  1. CUDA drivers
CMake

CMake is a family of tools designed to build, test and package software.

You can download pre-compiled binaries and the source code [[1]] or via git:

{{{ git clone git://cmake.org/cmake.git }}} Installation instructions are available [[2]].

CMake is used to build ITK, VTK and VV.

ITK

ITK is an open-source, cross-platform system that provides developers with an extensive suite of software tools for image analysis.

Vv is tested with ITK 3.20.0.

You can download the source code [[3]] or via git:

{{{ git clone git://itk.org/ITK.git itk git checkout v3.20.0 }}} Create a binary directory, get into it and run CMake:

{{{ mkdir itk-binary cd itk-binary ccmake ../itk make }}} NB: it is preferable to use the following options for registration:

{{{ Set ITK_USE_REVIEW to ON Set ITK_USE_OPTIMIZED_REGISTRATION_METHODS to ON }}}

ITK v4

ITK v4 is still under development, vv git sources try to stay compatible with ITK v4 git sources.

The tagged version v1.2.0 of vv is compatible with itk v4.0a07:

{{{ git clone git://itk.org/ITK.git itk git checkout v4.0a07 }}} In CMake:

{{{ Set ITK_BUILD_ALL_MODULES to ON }}}

Gengetopt

Gengetopt is a tool to write command line option parsing code for C programs.

On Windows, you can download the binary [[4]].

On Linux, you can download the source code [[5]] or via git:

{{{ git clone git://git.sv.gnu.org/gengetopt.git }}} Compilation:

{{{ mkdir gengetopt-binary cd gengetopt-binary ../gengetopt/configure make sudo make install }}}

To compile the code, it is used CMake. The common steps to compile for the first time your code are as follows:

   #Create a binary folder, called i.e. RKT-bin
   #Go to your binary folder   

API

Geometry

Mailing list