rs-dublinbus/readme.md

33 lines
942 B
Markdown

## Credits:
- LCD Rounded font by Jecko Development (http://www.jeckodevelopment.com)
## Install ARM toolchains:
```bash
$ rustup target add aarch64-unknown-linux-gnu
$ rustup target add arm-unknown-linux-gnueabihf
$ sudo dpkg --add-architecture arm64
$ sudo dpkg --add-architecture armhf
$ sudo apt update
$ sudo apt-get install gcc-aarch64-linux-gnu gcc-arm-linux-gnueabihf \
libc6-arm64-cross libc6-dev-arm64-cross gcc-aarch64-linux-gnu \
libc6-armhf-cross libc6-dev-armhf-cross gcc-arm-linux-gnueabihf \
libssl-dev libssl-dev:arm64 libsdl3-dev:arm64 libssl-dev:armhf libsdl3-dev:armhf
```
## Cross-compile
ARM64
```bash
$ export PKG_CONFIG_SYSROOT_DIR=/usr/aarch64-linux-gnu/
$ cargo build --target aarch64-unknown-linux-gnu --release
$ export PKG_CONFIG_SYSROOT_DIR=/usr/arm-linux-gnueabihf/
$ cargo build --target arm-unknown-linux-gnueabihf --release
```