- Compile the code in your Desktop (better if it's Linux or Mac). A full compilation
cargo build --release
. We are only going to use this to get the WASM blobs. - On the RPi you should install the required dependencies:
sudo apt install -y cmake pkg-config libssl-dev git gcc build-essential git curl clang libclang-dev protobuf-compiler
curl https://sh.rustup.rs -sSf | sh
- We now need to use a environment vaiable on the RPi to indicate that we don't want to build the WASM code.
export SKIP_WASM_BUILD='true'
- Start building on the RPi to generate the target directory structure.