2022-09-17 09:53:52 -04:00
|
|
|
#!/bin/sh
|
|
|
|
|
2022-12-04 15:13:39 -05:00
|
|
|
apt update -y
|
2022-12-11 21:00:53 -05:00
|
|
|
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
|
2022-12-04 15:13:39 -05:00
|
|
|
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
|
2022-09-17 09:53:52 -04:00
|
|
|
cd ./src
|
2022-09-27 18:10:04 -04:00
|
|
|
if [ -d "./opencv" ]
|
|
|
|
then
|
|
|
|
cd ./opencv
|
|
|
|
git pull origin
|
|
|
|
cd ..
|
|
|
|
else
|
|
|
|
git clone https://github.com/opencv/opencv.git
|
|
|
|
fi
|
2022-09-17 09:53:52 -04:00
|
|
|
cd ..
|
|
|
|
mkdir -p ./.build-opencv
|
|
|
|
cd ./.build-opencv
|
|
|
|
cmake ../src/opencv
|
|
|
|
make -j4
|
|
|
|
make install
|