Installation Instructions

Dependencies

This library builds on top of Eigen 3, a C++ template library for linear algebra (http://eigen.tuxfamily.org). To work properly, it must be installed on your system.

You also need the Fast Library for Approximate Nearest Neighbors (FLANN) (http://www.cs.ubc.ca/research/flann).

The installation of OpenCV (http://opencv.org) is optional.

Linux

On Linux systems the above mentioned software packages are often availabe through the system's package management software. On Ubuntu or Debian-based systems just run:

$ apt-get install libeigen3-dev
$ apt-get install libflann-dev
$ apt-get install libopencv-dev (optional)

Build Instructions

Linux
$ mkdir build && cd build
$ cmake -G "Unix Makefiles" ..
$ make && make install

If you also want to build the unit tests, change the cmake command as follows:

$ cmake -D BUILD_TEST=1 -G "Unix Makefiles" ..

The default installation location on Unix-like systems is /usr/local. Thus the default installation directories are

/usr/local/lib
/usr/local/include/TRTK

You can change this by setting CMAKE_INSTALL_PREFIX:

$ cmake -DCMAKE_INSTALL_PREFIX:PATH=/home/christoph/usr/local .
Windows (Visual Studio 2010 or above)

From the Visual Studio command line run the following commands inside the trunk folder:

> mkdir build
> cd build
> cmake -G "Visual Studio 10" ..

Alternatively, you can run cmake-gui.

cmake-gui.png

You can adapt the properties as necessary.

Start the solution and buid the project. By building the subproject "INSTALL" the library is installed.

The default installation location on Windows is C:\Program Files.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines