Setup CamiTK Development Environment on Linux

How to setup CamiTK Development Environment on a Debian or derived distribution

This page will guide you to install the development environment required to build CamiTK.

Install dependencies and toolchain

Thanks to the power of debian, in order to install everything you need to build CamiTK, just type:

sudo apt-get build-dep camitk

You can easily copy all the bash code from this page by clicking on the Copy button in the top right corner of each code snippets… You can then paste easily in your terminal.

If you get the following error message:

E: You must put some 'source' URIs in your sources.list

you need to add source repository, see the Debian documentation or Ubuntu documentation.

Basically you just need to add the repositories that contains the source codes of the packages (so that apt-get can deduce which packages to install).

An simple way of doing this (beware that any error can result in a bad state!)

sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup
sudo sed -Ei 's/^# deb-src /deb-src /' /etc/apt/sources.list
sudo apt update

If you get the following error message:

E: Unable to find a source package for camitk

your distribution cannot automatically find the list of dependencies. You have to specify the correct and precise list of dependency names on the command line by entering:

sudo apt install lcov git lsb-release build-essential fakeroot gdb vim ninja-build clang iputils-ping traceroute cmake libvtk9-dev libvtk9-qt-dev qtbase5-dev libqt5xmlpatterns5-dev libqt5opengl5-dev qttools5-dev-tools xsdcxx libinsighttoolkit5-dev libfftw3-dev libgdcm-dev libgdcm-tools libvtkgdcm-dev xvfb xauth doxygen graphviz debhelper

Cleanup the already installed version

If you had previously installed the CamiTK stable development environment, please uninstall the package first and locally installed files. Make sure also that you have nothing installed locally in your user $HOME/.config/CamiTK directory.

Where should I go next?

You can now proceed to build and install CamiTK