If you want to use a program, currently not contained in the OpenWrt repository, you probably won't find a binary compiled for your CPU. Provided that it is released as open source, you can download the code and compile it using the OpenWrt Buildroot.
Note that not every code is compilable for every CPU architecture. Also performance on embedded systems is limited compared to ordinary computers.
PATH=$PATH:(your toolchain/bin directory here)
STAGING_DIRenvironment variable to the above toolchain dir and export it:
STAGING_DIR=(your toolchain directory here)
--build=architecture-unknown-linux-gnu --host=architecture-openwrt-linux-uclibc(for example:
./configure --build=x86_64-unknown-linux-gnu –host=mips-openwrt-linux-uclibc)
./config.guessto get the
'checking whether we are cross compiling… yes' is yes.
LDenvironment variables (usually not needed if GNU configure was used)
find -iname *program*
file programto confirm cross-compiling was successful.
LDFLAGSto point to the
make menuconfig. [Advanced configuration options→Toolchain Options→Build gdb]
When compilation is finished, copy the resulting binary and related libraries to the target device to test it. It might be necessary to set
LD_LIBRARY_PATH on the target to point the binary to libraries in non-standard locations.
If the program works well enough, you maybe want to build a real package for the opkg package manager and make it easily accessible for everyone out there. See Creating your own packages and Using Dependencies for further information on that.