Thread: [Fremantle Maemo5] Running Rust programs on N900
View Single Post
Posts: 88 | Thanked: 411 times | Joined on Mar 2010 @ southern Italy
#2
Forgot to add:

- you need to install Rustup (which allows to install both Rust compiler and the extra platforms for cross-compiling)

- adding ARM platform target:
Code:
rustup target install armv7-unknown-linux-gnueabihf
- then add these two lines to ~/.cargo/config
Code:
[target.armv7-unknown-linux-gnueabihf]
linker = "arm-linux-gnueabihf-gcc"
- then install ARM-linux; for example, in Ubuntu:
Code:
sudo apt-get install gcc-arm-linux-gnueabihf
More on my scripts directory.

To deploy executables to Jolla SailfishOS no extra steps are required. For N900 you need the glibc 2.18 thing (and LD_LIBRARY_PATH) as described above.
 

The Following 3 Users Say Thank You to alfmar For This Useful Post: