rust icon indicating copy to clipboard operation
rust copied to clipboard

Error Building on Raspberry Pi W 2

Open jettblu opened this issue 1 year ago • 1 comments

Hi Thanks for the great project! While installing the rust based software, I encountered the following error. For context, I am running a headless version of raspberry pi os, on the raspberry pi w 2. The error is thrown on line 8 of build.rs. Do you know what may be causing the issue?

called Result::unwrap() on an Err value: Error { os: "linux", arch: "arm" }

jettblu avatar Sep 24 '24 10:09 jettblu

I believe I fixed it here , precisely because I wanted to build on a Raspberry Pi (I think it was Zero).

Please do apt install protobuf-compiler and then export PROTOC=protoc.

The crate has not been released since then, so you might need meshtastic = { git = "https://github.com/meshtastic/rust.git", branch = "main" } in Cargo.toml.

This should go into the docs.

lukipuki avatar Oct 01 '24 07:10 lukipuki

Closed due to inactivity, it's also probably fixed by the changes to build.rs in the last year.

lukipuki avatar Jul 17 '25 15:07 lukipuki