@Joe-Andrieu After a long struggle, I was able to get it to compile with a mix of local compilation and cross compilation.

Basically:

Install dependencies opkg update && opkg install libusb-1.0 unzip Compile libcurl on the Omega2 from https://curl.haxx.se/download/curl-7.57.0.zip Cross-Compile libusb from https://github.com/libusb/libusb Cross-Compile cgminer using configure command below Work around some cgminer's checks by supplying custom CFLAGS and LINKER flags for it and commenting out checks (my configure file: https://pastebin.com/w53CjvWC)

For curl I had to build without SSL support since it didn't want to find OpenSSL. You might retry with mbedTLS or something.

Build command fors cURL (on Omega)

wget https://curl.haxx.se/download/curl-7.57.0.zip unzip curl-7.57.0.zip ./configure make make install

For libusb (cross-compile)

./configure --host=mipsel-openwrt-linux make -j4

Make a folder curl inside the cgminer sources, copy in all contents of your compiled libcurl (e.g. scp root@192.168.1.131:/root/curl-7.57.0/lib/.libs/* .)

Then compile cgminer (using the local paths to your libcurl + libusb include folder and lib folder)

CFLAGS="-L/home/max/cgminer-4.10.0/curl -L/home/max/curl-7.57.0/lib/.libs -I/home/max/curl-7.57.0/include -L/home/max/libusb/libusb/.libs -I/home/max/libusb/libusb" LIBUSB_CFLAGS="-O2 -L/home/max/libusb/libusb -I/home/max/libusb/libusb" LIBUSB_LIBS="-lusb-1.0" ./configure --host=mipsel-openwrt-linux --without-udev --enable-bitforce make -j4

Which gives you

max@max-VirtualBox:~/cgminer-4.10.0$ file cgminer cgminer: ELF 32-bit LSB executable, MIPS, MIPS32 rel2 version 1, dynamically linked, interpreter /lib/ld-musl-mipsel-sf.so.1, not stripped

Transfer to Omega2 via scp and execute..

root@Omega-17FD:~# ./cgminer -h cgminer 4.10.0 Built with bitforce mining support. Usage: ./cgminer [-DlmpPqUouOchnV] Options for both config file and command line: --api-allow <arg> Allow API access only to the given list of [G:]IP[/Prefix] addresses[/subnets] --api-description <arg> Description placed in the API status header, default: cgminer version ...

Obviously is not fully enabled with every possible feature (and libcurl without SSL!) but I think you can start working from there.