I’m new to rust but I’m planning to use it in an application of embedded linux, of which I’m also new too.
My goal is to have a conrod interface for showing the data of a few sensors and adding a few controls for motors… anyways!
I’m trying to get cross-compilation work, but I can’t build my applications with cargo, even with
in my toml file. I do
cargo build --target arm-unknown-linux-gnueabihf
and it fails with a linker error.
When I compile it with
rustc -C linker=arm-linux-gnueabihf-gcc --target arm-unknown-linux-gnueabihf main.rs
it’s fine, i get the executable.
I’m not sure if rustc would still compile if I manually tell it which files to link, mostly because I don’t know how.
Thanks for your help!