- build-tools
sudo apt-get install build-essential
- Software
sudo apt-get install cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev
- Source code
git clone https://github.com/opencv/opencv / https://opencv.org/opencv-3-4-1.html source code
- Some commond:
Tar -xf XXX.tar
Cd opencv*
Mkdir build
Cd build
Cmake -D CMAKE_BUILD_TYPE=Release ..
Make -j8
Sudo make install