SwisTrack/Developers/Setting up a development environment/Linux

Prerequisites

You need the following programs and libraries:

The following libraries are optional and only necessary if you want to use the corresponding cameras:

  • Basler Pylon driver (according to the company, a Linux driver will be available soon)
  • Firewire camera driver
↑Jump back a section

Installing Libraries

Ubuntu 8.04

On Ubuntu, it should be enough to install the packages

  • libwxgtk2.8-dev (wxWidgets)
  • libhighgui-dev (OpenCV)
  • libcvaux-dev (OpenCV)

Use Synaptic Packet Manager or type

sudo apt-get install libwxgtk2.8-dev
sudo apt-get install libhighgui-dev libcvaux-dev

on the terminal to install these packages.

Other distributions

If your distribution does not provide a package, you can compile and install these libraries manually.

Manually Installing OpenCV

Download the OpenCV 1.0 sources and compile and install them:

tar xfz opencv-1.0.0.tar.gz
cd opencv-1.0.0
./configure --prefix=/usr
make
sudo make install

For detailed installation instructions, check out the INSTALL file.

Note that the current SwisTrack Makefile expects OpenCV to be installed with the prefix /usr. If you install it elsewhere, do not forget to modify the INCL_DIRS line in the Makefile appropriately.

Manually Installing wxWidgets

Download the wxWidgets 2.8.8 sources (either wxGTK or wxAll) and compile and install them.

tar xfz wxWidgets-2.8.8.tar.gz
cd wxWidgets-2.8.8
./configure
make
sudo make install

You are free to change the prefix here, as SwisTrack uses 'wx-config' to locate wxWidgets.

Installing Optional Libraries

If you have a FireWire camera, install the 1394camera driver.

↑Jump back a section

Checking out the latest SVN Tree

Check out the latest SVN tree:

svn checkout https://swistrack.svn.sourceforge.net/svnroot/swistrack
↑Jump back a section

Compiling and Launching

You can compile SwisTrack as follows:

cd swistrack
make

This will compile libtsai (with a few warnings), camshift_wrapper, core and gui. The executable is stored as SwisTrackEnvironment/SwisTrack in the SVN tree. Lauch it as follows

cd SwisTrackEnvironment
./SwisTrack
↑Jump back a section

Library Paths

Depending on your system configuration, SwisTrack will complain about missing libraries. You may see error messages like this:

./SwisTrack: error while loading shared libraries: libwx_gtk2_aui-2.8.so.0: cannot open shared object file: No suchfile or directory

In this case, you need to set your LD_LIBRARY_PATH variable to point to the directory where these libraries are installed. If you are using a bash shell, this can be achieved as follows:

export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH

On Ubuntu 10.10 the following is required : export LD_LIBRARY_PATH=/usr/lib:$LD_LIBRARY_PATH and create a dynamic link on the cvaux libs : sudo ln -s libcvaux.so.2.1 libcvaux.so in /usr/lib/

↑Jump back a section
Last modified on 25 August 2011, at 00:40