Problem cross-compiling rust for RPi 1b

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/ rather than all other executables' /lib/

Does anyone here have any experience cross compiling Rust for RPi 1 that could point me in the right direction?

Maybe something like

 patchelf --set-interpreter /lib/ path/to/your/binary

could work?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.