sudo apt-get update sudo apt-get install python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev sudo apt-get install libgtk2.0 pkg-config libavcodec-dev libavformat-dev libswscale-dev git clone https://github.com/opencv/opencv.git git clone https://github.com/opencv/opencv_contrib.git cd opencv mkdir build cd build cmake -DCMAKE_EXTRA_MODULES_PATH=/home/toshi/src/opencv_contrib/modules ..
Download ippicv from following link when hit error. See http://www.linuxfromscratch.org/blfs/view/cvs/general/opencv.html
make -j8