Developer Setup - Linux

1. Install Prerequisites

Make sure your linux installation allows you to develop C/C++ application. You may still need to install packages.

1.1 Using Yum (tested on Fedora 12-14)

# yum install -y cmake qt qt-devel qt-doc mysql mysql-devel ffmpeg ffmpeg-devel boost boost-devel

'Note: On Fedora 13, there is one missing include in ffmpeg-devel*.rpm, and thus vtk can not be compiled with the delivered package!'

1.2 Using Apt (tested on Ubuntu 9.10 / Debian 6)

# apt-get install build-essential git cmake cmake-curses-gui ffmpeg libavutil-dev libswscale-dev libavcodec-dev libavformat-dev mysql-common libmysqlclient-dev mysql-server libboost-dev libqt4-dev qt4-doc libxt-dev uuid uuid-dev

1.3 MySQL

Check Install MySQL

1.4 FFMPEG

Check Developer - Video Support


2 Install External Libraries

2.1 VTK

Follow the instructions on http://www.vtk.org/VTK/resources/software.html

You can

  • either download the latest release (i.e. 5.6.1)
  • either get the latest git version

If you decide to use the git version (see http://www.vtk.org/Wiki/VTK/Git)

$ git clone https://github.com/Kitware/VTK.git VTK

$ mkdir -p ~/BUILD/VTK
$ ccmake /path/to/VTK
VTK_USE_GUISUPPORT     ON # NOT REQUIRED WITH GIT ANYMORE (01-27-2011)
VTK_USE_QT ON
VTK_USE_MYSQL ON
VTK_USE_PARALLEL ON # NOT REQUIRED WITH GIT ANYMORE (01-27-2011)
VTK_USE_FFMPEG_ENCODER ON # NOT REQUIRED WITH GIT ANYMORE (01-27-2011)
  • If you compiled FFMPEG from scratch, don't forget to specify the paths of the created libraries to VTK in cmake.
$ make -j8

2.2 ITK

Follow the instructions on http://itk.org/ITK/resources/software.html Then follow instructions below starting with $ mkdir -p ~/BUILD/ITK

To use the git version for ITK type the command

$ git clone https://github.com/Kitware/ITK.git itk
$ mkdir -p ~/BUILD/ITK
$ cd ~/BUILD/ITK
$ ccmake ~/path/to/ITK

Then choose the following options

ITK_USE_REVIEW            ON
ITK_USE_REVIEW_STATISTICS ON # only for older version of ITK
$ make -j8

3 GoFigure2

  • Get the source
$ git clone https://github.com/gofigure2/GoFigure2.git gofigure
$ mkdir -p ~/BUILD/gofigure2
$ cd ~/BUILD/gofigure2
$ ccmake ~/path/to/gofigure2/
$ make -j8