Build MM2 for Pi4 – WIP

This guide will teach you how to build mm2 for Pi4.

Table of Contents

Please Note

AtomicDEX-API produces a binary called mm2.

This guide is cross-compiling mm2 binary on one machine, to allow for copying to pi4.

Instructions

  1. Open the Terminal.

  2. Install Rustup:

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

  1. Install the Standard library for Pi4:

rustup target add armv7-unknown-linux-gnueabihf

  1. Install latest nightly toolchain:

rustup install nightly

  1. Make it the default:

rustup default nightly

  1. Install cross:

cargo install cross

  1. Build the Docker image for cross compilation:

docker build -f Dockerfile.armv7-unknown-linux-gnueabihf -t mm2-armv7-unknown-linux-gnueabihf

  1. 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, run it, and start trading.