creativcoder / rust-arduino-blink

How to run Rust on Arduino Uno
https://creativcoder.dev/rust-on-arduino-uno
MIT License
56 stars 5 forks source link

Doesn't build #3

Open nerium1918 opened 2 years ago

nerium1918 commented 2 years ago

Hi, I'm trying to build this repo but I get all sorts of compilation issues, mostly things like this:

error[E0463]: can't find crate for `core`
  |
  = note: the `avr-atmega328p-14594304710873606362` target may not be installed

And if I try rustup target add avr-atmega328p-14594304710873606362, I get:

error: toolchain '1.52.1-x86_64-unknown-linux-gnu' does not contain component 'rust-std' for target 'avr-atmega328p-14594304710873606362'
note: not all platforms have the standard library pre-compiled: https://doc.rust-lang.org/nightly/rustc/platform-support.html

Any help would be appreciated!

archenemy1996 commented 2 years ago

try "sudo apt-get install gcc-avr"