Skip to content

nik0/Main

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Main Repository for Low-Level Development

Build Enviroment

You can either cross-compile from a native Ubuntu/Debian setup or build in docker container.

Ubuntu / Debian (x86 cross-compile)

Install the required dependencies:

sudo apt install build-essential git gcc-mips-linux-gnu autoconf autoconf libtool libtool cmake ftp-upload u-boot-tools pkg-config mercurial

Docker (Slower!)

Build your own local docker image:

git clone --recurse-submodules https://github.com/Dafang-Hacks/Main.git
cd Main
docker build -t ${USER}/dafang-cross-compile .
docker run --rm -ti -v $(pwd):/root/ ${USER}/dafang-cross-compile:latest

Or use the docker image provided by Daviey ( https://hub.docker.com/r/daviey/dafang-cross-compile ):

mkdir ~/dafang
cd ~/dafang
docker run --rm -ti -v $(pwd):/root/ daviey/dafang-cross-compile:latest

Build

Now check out the repo with all its submodules and build the necessary libraries and then the rtspserver:

git clone --recurse-submodules https://github.com/Dafang-Hacks/Main.git
cd Main
./compile_modules.sh
cd v4l2rtpsserver-master
./compile.sh

Develop

To update the build environment:

git submodule update --init --recursive

You can push the compiled binaries to your development camera via ftp-upload:

ftp-upload -h dafang.local -u root --password ismart12 -d /system/sdcard/bin/ your_file_name

Sources:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 61.6%
  • C 26.3%
  • Objective-C 11.9%
  • Shell 0.1%
  • Makefile 0.1%
  • CMake 0.0%