Skip to content

Setup Linux Requirements

ricardo kloss edited this page Jan 12, 2016 · 2 revisions

These steps have been tested for Ubuntu 12.04 and 14.04 but should work with other distros as well.

If you use a ubuntu distribution with the version lower than 14.04, you have to add some repositories with the new versions of required packages.

sudo add-apt-repository --yes ppa:ubuntu-toolchain-r/test
sudo add-apt-repository --yes ppa:kalakris/cmake
sudo add-apt-repository --yes ppa:kubuntu-ppa/backports
sudo apt-get update

The next commands are common to all versions of ubuntu:

sudo apt-get install build-essential
sudo apt-get install cmake
sudo apt-get install libcv-dev libcvaux-dev libhighgui-dev libopencv-dev
sudo apt-get install gcc-4.8 g++-4.8
sudo update-alternatives install /usr/bin/g++ g++ /usr/bin/g++-4.8 90