The following steps were made to compile the project under Ubuntu 14.04 system.
Installing Qt Creator
- For Qt installation go to Qt Website and follow the instructions, it's really straightforward. (it's recommended to use the offline installer to avoid connection problem while installing).
Installing OpenCV 3.0 with contrib modules
- Installing the requirements:
1 $ sudo apt-get install -y build-essential cmake libv4l-dev pkg-config libgtk2.0-dev \
2 libtiff5-dev libjasper-dev libavformat-dev libswscale-dev \
3 libavcodec-dev libjpeg8-dev git python-dev python-numpy \
4 libtbb2 libtbb-dev libpng-dev libdc1394-22-dev
- Clone the master branch of OpenCV 3.0
2 $ mkdir -p OpenCV-3.0.0/OpenCV-3.0.0-master
3 $ cd OpenCV-3.0.0/OpenCV-3.0.0-master
4 $ git clone https://github.com/Itseez/opencv.git
- Clone the contrib branch of OpenCV 3.0
2 $ mkdir OpenCV-3.0.0-contrib
3 $ cd OpenCV-3.0.0-contrib
4 $ git clone https://github.com/Itseez/opencv_contrib.git
- Compile OpenCV 3.0.0 master with contrib (note that, for being sure where to find the contrib modules, the complete path to modules is recommended).
1 $ cd ~/OpenCV-3.0.0/OpenCV-3.0.0-master/opencv
2 $ mkdir build && cd build
3 $ cmake -D CMAKE_BUILD_TYPE=Release -D OPENCV_EXTRA_MODULES_PATH=/home/${USER}/OpenCV-3.0.0/OpenCV-3.0.0-contrib/opencv_contrib/modules -D CMAKE_INSTALL_PREFIX=/usr/local ..
- That's it. You can check the installation by using pkg-config:
1 $ pkg-config --cflags --libs opencv
Compiling the project:
- Open the project using Qt creator just installed, disable shadow build and you're good to go.
Enable Auto Documentation In Qt with Doxygen