I'm trying to build for RPi from Mac,
$ rustup target add armv7-unknown-linux-gnueabihf
.cargo/config with content:
[target.armv7-unknown-linux-gnueabihf] linker = "arm-linux-gnueabihf-gcc"
And running the:
$ cargo build --target armv7-unknown-linux-gnueabihf
But I got the below error:
error: linker `arm-linux-gnueabihf-gcc` not found | = note: No such file or directory (os error 2)
Tried the below after that, but nothing worked:
$ brew install arm-linux-gnueabihf-binutils $ brew tap osx-cross/arm $ brew install arm-gcc-bin $ brew install llvm
But everytime I run:
$ which gcc-arm-linux-gnueabi
I get nothing, and keep getting the same error above.
I tried using
musleabihf as alternate
gnueabihf, but the generated binary failed to work at RPi
[target.armv7-unknown-linux-musleabihf] linker = "arm-linux-gnueabihf-ld"
I'd a look at this as well, but nothing about MacOS