This repository contains the sources of dvblast for OpenWrt, under the folder "sources".
In the foler "binaries" there are the precompiled and ready to execute binaries for le MIPS architecture.
To use this program you first need to install "libev" on your router : "opkg update && opkg install libev"
To cross compile this program for you architecture for OpenWrt :
- Get the sdk for your architecture : https://openwrt.org/docs/guide-developer/using_the_sdk
- Execute these commands, replacing the necessary parts (you can find them by exploring the sdk folder)
export STAGING_DIR=place-here-the-directory-of-the-sdk/staging_dir/
export TOOLCHAIN_DIR=$STAGING_DIR/toolchain-architecture-_gcc-place-here-the-version-of-gcc-you-find-in-the-directory_musl/
export LDCFLAGS=$TOOLCHAIN_DIR/usr/lib
export LD_LIBRARY_PATH=$TOOLCHAIN_DIR/usr/lib
export PATH=$TOOLCHAIN_DIR/bin:$PATH
export CC=$TOOLCHAIN_DIR/bin/mipsel-openwrt-linux-gcc
export LD=$TOOLCHAIN_DIR/bin/mipsel-openwrt-linux-ld 3) Go in the directory of the sources of this repository, and in the "libev-4.31" folder 4) Cross-compile the libev with these commands :
./configure --build=x86_64-linux-gnu (with architecture of your computer you can find in the list shown with "ls /usr/bin | grep gnu") --host=mipsel-openwrt-linux (replace mipsel with the architecture of your OpenWrt router, and the SDK you downloaded)
make
- Go in the ".libs" folder created and copy the files to /folder-of-the-SDK/staging_dir/toolchain-mipsel_24kc_gcc-8.3.0_musl/usr/lib
- Delete "libev.so" and rename "libev.so.4.0.0" to "libev.so"
- Go back in the sources folder of dvblast
- Compile dvblast with this command :
make
- The "dvblast" and "dvblastctl" are the binaries for your architecture