Skip to content

Compilation

Wenbin edited this page Apr 26, 2016 · 1 revision

Supported Platforms

The Roto++ supports two main platforms of Ubuntu 14.04+ and Mac OSX 10.6+.

Dependencies

By default, the Roto++ requires three main dependencies of opencv 2.4.10/11, ceres-solver 1.10+ and Qt 5.0+.

  • Ubuntu
    sudo apt-get install libopencv-dev
    sudo apt-get install libeigen3-dev libatlas-base-dev libgoogle-glog-dev libsuitesparse-dev
    git clone https://ceres-solver.googlesource.com/ceres-solver
    cd ceres-solver
    mkdir build 
    cd build 
    cmake ..
    make
    sudo make install
    sudo apt-get install qtbase5-dev qtdeclarative5-dev
  • Mac

    To use Qt 5.0+ on Mac, you could download the source code and compile; or you could install the QtCreator with the Qt 5.0+ library. For the latter, the project can be load and compiled by QtCreator.

    For the easy way to install dependencies, you are suggested to use brew. Please install the brew and set the right permission to your /usr/local folder:

	sudo chown -R YOUR_USERNAME /usr/local
    brew install glog
    brew install eigen
    brew install suite-sparse
    brew tap homebrew/science
    brew install ceres-solver
    brew install opencv

Compilation

We suggest to load and compile the project using QtCreator with Qt 5.4+ compile kit or to follow:

    cd Rotoscope
    mkdir build 
    cd build 
    cmake ..
    make

For either Unix or Mac OS without installing the QtCreator, you should modify the value of CMAKE_PREFIX_PATH in CMakeLists.txt by pointing it to the Qt library.

Clone this wiki locally