meshtastic / rust

A Rust library for connecting to and configuring Meshtastic radios.
https://meshtastic.org/
GNU General Public License v3.0
29 stars 12 forks source link

Error Building on Raspberry Pi W 2 #21

Open jettblu opened 1 week ago

jettblu commented 1 week ago

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" }

lukipuki commented 2 days ago

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.