Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- install OpenCV 3.3.0 dev
- sudo apt-get install build-essential
- sudo apt-get install cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev
- sudo apt-get install python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev
- For example
- git clone https://github.com/opencv/opencv.git
- git clone https://github.com/opencv/opencv_contrib.git
- cd ~/opencv
- mkdir build
- cd build
- #cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/usr/local ..
- cmake -DCMAKE_BUILD_TYPE=Release -D PYTHON_INCLUDE_DIR=/usr/include/python2.7 -D PYTHON_LIBRARIES=/usr/lib/python2.7/config/libpython2.7.so -DOPENCV_EXTRA_MODULES_PATH=/home/leaozinho/opencv_contrib/modules /home/leaozinho/opencv -DOPENCV_ENABLE_NONFREE=ON -DCMAKE_INSTALL_PREFIX=/usr/local ..
- make -j7 # runs 7 jobs in parallel
- sudo make install
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement