RPI zeros UDP client video streamer for WUROV
Install dependencies
$ sudo apt install cmake lua5.4 g++ libopencv-dev v4l-utils gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf
clone this repo
$ git clone https://github.com/WIT-IEEE-MATE-ROV/pi_stream.git
Build opencv (if needed)
Inorder to build this application you may need to build opencv from source. Once you have build opencv or you have installed libopencv-dev
you should locate the headder files in /usr/include/opencv4/opencv2
Install Premake
Before we can build the pi_stream
binary we need to download premake5.
This can be done with your systems packagemanager, such as apt
or pacman
.
$ sudo pacman -S premake
Install Premake From Tarball
If your package manager dose not maintain premake5 you can install from the tarball.
download premake5 from the website unzip the tarball and change permissions.
$ tar -xzvf premake-5.0.0-beta3-linux.tar.gz
$ sudo chmod +x premake5
You can add the premake5 binary to your path but this is not necessary. You could just move the latest premake5 binary into this project folder.
Add the flowing line to your shells respective .bashrc
file to add preamke to your path.
export PATH="$PATH:/path/to/premake5"
Run Preamke and make
Once you have opencv and premake installed you can build the application.
$ premake5 gmake premake5.lua
$ make
#$ make help