RTK/Developers: Difference between revisions
No edit summary |
No edit summary |
||
Line 27: | Line 27: | ||
You can download pre-compiled binaries and the source code [[http://www.cmake.org/cmake/resources/software.html|here]] or via git: | You can download pre-compiled binaries and the source code [[http://www.cmake.org/cmake/resources/software.html|here]] or via git: | ||
git clone git://cmake.org/cmake.git | |||
git clone git://cmake.org/cmake.git | |||
CMake is used to build ITK, | Installation instructions are available, [[http://www.cmake.org/Wiki/CMake here]]. | ||
CMake is used to build ITK and RTK, among other platforms. | |||
===== ITK ===== | ===== ITK ===== | ||
ITK is an open-source, cross-platform system that provides developers with an extensive suite of software tools for image analysis. | ITK is an open-source, cross-platform system that provides developers with an extensive suite of software tools for image analysis. | ||
You can download the source code, [[http://www.itk.org/ITK/resources/software.html, here]] | |||
or via git: | |||
You can download the source code [[http://www.itk.org/ITK/resources/software.html | |||
git clone git://itk.org/ITK.git <sourcePath> | |||
git checkout v3.20.0 | |||
Create a binary directory, i.e. itk-bin, get into it and run CMake: | |||
mkdir itk-bin | |||
cd itk-bin | |||
ccmake ../itk | |||
make | |||
Note: it is preferable to use the following options for registration: | |||
Set ITK_USE_REVIEW to ON | |||
Set | Set ITK_USE_OPTIMIZED_REGISTRATION_METHODS to ON | ||
===== Gengetopt ===== | ===== Gengetopt ===== | ||
Gengetopt is a tool to write command line option parsing code for C programs. | 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 | 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: | Compilation: | ||
mkdir gengetopt-bin | |||
mkdir gengetopt- | cd gengetopt-bin | ||
cd gengetopt- | ../gengetopt/configure | ||
../gengetopt/configure | make | ||
make | sudo make install | ||
sudo make install | |||
Last step is to compile RTK and we also use CMake. Compilation process as follows: | |||
mkdir rtk-bin | |||
cd rtk-bin | |||
ccmake ../rtk | |||
make | |||
=== API === | === API === |
Revision as of 10:38, 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:
- Optional:
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, [here].
CMake is used to build ITK and RTK, among other platforms.
ITK
ITK is an open-source, cross-platform system that provides developers with an extensive suite of software tools for image analysis.
You can download the source code, [here] or via git:
git clone git://itk.org/ITK.git <sourcePath> git checkout v3.20.0
Create a binary directory, i.e. itk-bin, get into it and run CMake:
mkdir itk-bin cd itk-bin ccmake ../itk make
Note: it is preferable to use the following options for registration:
Set ITK_USE_REVIEW to ON Set ITK_USE_OPTIMIZED_REGISTRATION_METHODS to ON
Gengetopt
Gengetopt is a tool to write command line option parsing code for C programs.
On Windows, you can download the binary, [here].
On Linux, you can download the source code, [here] or via git:
git clone git://git.sv.gnu.org/gengetopt.git
Compilation:
mkdir gengetopt-bin cd gengetopt-bin ../gengetopt/configure make sudo make install
Last step is to compile RTK and we also use CMake. Compilation process as follows:
mkdir rtk-bin cd rtk-bin ccmake ../rtk make