651ec96083
Moved logging out of it's own loop, hopefully this fixes the issue with it not outputting all log lines. recLoop() and detectLoop() will now update logs synchronously. The setup.sh script will now include gstreamer and pkg-config. This should help fix opencv video-io format support.
25 lines
622 B
Bash
25 lines
622 B
Bash
#!/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
|