conduit/CROSS_COMPILE.md

12 lines
309 B
Markdown
Raw Normal View History

2020-10-17 23:48:31 -07:00
Install docker:
2021-04-02 15:11:14 -07:00
```
2020-10-17 23:48:31 -07:00
$ sudo apt install docker
$ sudo usermod -aG docker $USER
2021-04-02 15:11:14 -07:00
$ exec sudo su -l $USER
2020-10-17 23:48:31 -07:00
$ sudo systemctl start docker
$ cargo install cross
$ cross build --release --target armv7-unknown-linux-musleabihf
2021-04-02 15:11:14 -07:00
```
2020-10-17 23:48:31 -07:00
The cross-compiled binary is at target/armv7-unknown-linux-musleabihf/release/conduit