- Clone this repository using following command: git clone --recurse-submodules [email protected]:Dafang-Hacks/Main.git
- Run ./compile-libraries.sh to compile all the required libraries
- Go into v4l2rtpsserver-master and use ./compile.sh
Install required dependencies
$ sudo apt install \
build-essential \
git \
gcc-mips-linux-gnu \
autoconf \
libtool \
cmake
-
Use pre-prepared image (by Daviey, https://hub.docker.com/r/daviey/dafang-cross-compile )
$ mkdir ~/defang $ cd ~/defang $ docker run --rm -ti -v $(pwd):/root/ daviey/dafang-cross-compile:latest $ git clone --recurse-submodules https://github.com/Dafang-Hacks/Main.git $ cd Main $ ./compile.sh (etc)*
-
OR Build local docker image first
$ git clone --recurse-submodules https://github.com/Dafang-Hacks/Main.git $ cd Main $ docker build -t ${USER}/dafang-cross-compile .
git submodule update --init --recursive