I'm trying to cross compile from mac OSX to a RPi 1b running raspbian and struggling to get it to run.
I'm using the arm-unknown-linux-gnueabihf
target to allow dynamic linking of the libraries on the RPi, but a simple "hello world" binary fails to run with a No such file or directory
error, which appears to be because the interpreter for the binary is set to a file that is not on the RPi (/usr/lib/ld.so.1
rather than all other executables' /lib/ld-linux-armhf.so.3
).
Does anyone here have any experience cross compiling Rust for RPi 1 that could point me in the right direction?