2022-09-17 09:53:52 -04:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
apt update
|
|
|
|
apt install -y cmake g++ wget unzip git ffmpeg libavcodec-dev libavformat-dev libavutil-dev libswscale-dev
|
|
|
|
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
|