-
Notifications
You must be signed in to change notification settings - Fork 0
OpenCV install guide
Tomek Roszczynialski edited this page May 5, 2017
·
6 revisions
cd git
git clone https://github.com/Itseez/opencv.git
-
sudo apt-get install build-essential
(already installed) sudo apt-get install cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev
-
sudo apt-get install libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev libv4l-dev
[optional] -
sudo apt-get install libatlas-base-dev
6a.sudo apt update && sudo apt install ffmpeg libav-tools x264 x265
-
git checkout 2.4.11
,mkdir build && cd build
8a. Ubuntu without ffmpeg
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D BUILD_NEW_PYTHON_SUPPORT=ON -D INSTALL_C_EXAMPLES=ON -D INSTALL_PYTHON_EXAMPLES=ON -D BUILD_EXAMPLES=ON -D WITH_FFMPEG=OFF ..
- Rasbpian with ffmpeg
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D BUILD_NEW_PYTHON_SUPPORT=ON -D INSTALL_C_EXAMPLES=ON -D INSTALL_PYTHON_EXAMPLES=ON -D BUILD_EXAMPLES=ON ..
-
make
3 hours -
sudo make install
-
sudo ldconfig