build-essential cmake
  1. #!/bin/bash
  2.  
  3. mkdir OpenCV && cd OpenCV
  4.  
  5. sudo apt install -y build-essential cmake cmake-qt-gui git libgtk2.0-dev\
  6.     pkg-config libavcodec-dev libavformat-dev libswscale-dev python-dev\
  7.     python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libdc1394-22-dev
  8.  
  9. git clone https://github.com/opencv/opencv.git
  10. git clone https://github.com/opencv/opencv_contrib.git
  11.  
  12. cd opencv
  13. git fetch
  14. git checkout 4.2.0
  15. mkdir build && cd build
  16.  
  17. cmake-gui
  18. make -j6
  19. sudo make install
Parsed in 0.006 seconds