#!/bin/sh apt update -y apt install -y pkg-config apt install -y cmake g++ wget unzip git ffmpeg gstreamer1.0* libavcodec-dev libavformat-dev libavutil-dev libswscale-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev add-apt-repository -y ppa:ubuntu-toolchain-r/test apt update -y apt install -y gcc-10 gcc-10-base gcc-10-doc g++-10 apt install -y libstdc++-10-dev libstdc++-10-doc cd ./src if [ -d "./opencv" ] then cd ./opencv git pull origin cd .. else git clone https://github.com/opencv/opencv.git fi cd .. mkdir -p ./.build-opencv cd ./.build-opencv cmake ../src/opencv make -j4 make install