2 # This file contains documentation snippets for Linux installation tutorial
3 if [ "$1" = "--check" ] ; then
11 # Install minimal prerequisites (Ubuntu 18.04 as reference)
12 sudo apt update && sudo apt install -y cmake g++ wget unzip
14 # Download and unpack sources
15 wget -O opencv.zip https://github.com/opencv/opencv/archive/master.zip
18 # Create build directory
19 mkdir -p build && cd build
22 cmake ../opencv-master