Advertisement
tomateblue

Install OpenCV3.3.0-dev

Aug 23rd, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. install OpenCV 3.3.0 dev
  2.  
  3.  
  4. sudo apt-get install build-essential
  5. sudo apt-get install cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev
  6. sudo apt-get install python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev
  7.  
  8. For example
  9.  
  10. git clone https://github.com/opencv/opencv.git
  11. git clone https://github.com/opencv/opencv_contrib.git
  12. cd ~/opencv
  13. mkdir build
  14. cd build
  15. #cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/usr/local ..
  16. 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 ..
  17.  
  18. make -j7 # runs 7 jobs in parallel
  19.  
  20. sudo make install
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement