OpenCV Install Memo

 

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

https://raw.githubusercontent.com/opencv/opencv_3rdparty/81a676001ca8075ada498583e4166079e5744668/ippicv/ippicv_linux_20151201.tgz

make -j8
Undefined

User login