lupyuen / pinetime-rust-mynewt

PineTime Smart Watch firmware based on Rust and Apache Mynewt OS
https://lupyuen.github.io/articles/sneak-peek-of-pinetime-smart-watch-and-why-its-perfect-for-teaching-iot
Apache License 2.0
213 stars 54 forks source link

build-app.sh is missing some libraries #15

Closed honyczek closed 4 years ago

honyczek commented 4 years ago

After running ./scripts/nrf52/build-boot.sh I executed ./scripts/build-app.sh and after some time it failed on error Undefined main, so I ran it again and it fails on this:

----- Build Rust app
+ cargo build --target thumbv7em-none-eabihf
error: failed to read `/home/pi/pinetime-rust-mynewt/rust/druid-embedded/druid/Cargo.toml`

Caused by:
  No such file or directory (os error 2)

Expected behavior: druid toolkit will be available (pre-downloaded) in the directory ~/pinetime-rust-mynewt/rust/druid-embedded.

After trying to fix it by clonning repository druid-embedded, it continues with the same error for piet-embedded, kurbo-embedded and st7735-lcd-batch-rs.

lupyuen commented 4 years ago

Hi: I think the sub-repos were missing because we didn't use the --recursive flag when running git clone pinetime-rust-mynewt. Here's how we can fix that...

cd pinetime-rust-mynewt/rust
git submodule update --init
honyczek commented 4 years ago

Ok, as you updated README.md with --recursive and I started from the scratch, this issue is solved.