This guide will teach you how to build mm2 for Pi4.
AtomicDEX-API produces a binary called mm2
.
This guide is cross-compiling mm2
binary on one machine, to allow for copying to pi4.
-
Open the Terminal.
-
Install Rustup:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
-
Install the Standard library for Pi4:
rustup target add armv7-unknown-linux-gnueabihf
-
Install latest nightly toolchain:
rustup install nightly
-
Make it the default:
rustup default nightly
-
Install cross:
cargo install cross
-
Build the Docker image for cross compilation:
docker build -f Dockerfile.armv7-unknown-linux-gnueabihf -t mm2-armv7-unknown-linux-gnueabihf
-
Build mm2:
cross build --features native --target armv7-unknown-linux-gnueabihf --release
You now have mm2 built.
The binary will be located at: target/armv7-unknown-linux-gnueabihf/release/mm2
You can copy it to your Pi and setup mm2.