boustrophedon / eink-esp-weather-display

code for weather display using waveshare esp32 and 7.5" epaper display
https://harrystern.net/halldisplay.html
136 stars 6 forks source link

compile error #1

Open ds2k5 opened 10 months ago

ds2k5 commented 10 months ago

Could not run / compile what did I wrong ?

here is what I did:

$ git clone https://github.com/boustrophedon/eink-esp-weather-display/ $ cd eink-esp-weather-display/esp $ . ~/export-esp.sh $ cargo run

   Compiling epd-waveshare v0.5.0 (https://github.com/caemor/epd-waveshare?rev=f22b6e2c33173#f22b6e2c)
error[E0583]: file not found for module `config`
  --> src/main.rs:27:1
   |
27 | mod config;
   | ^^^^^^^^^^^
   |
   = help: to create the module `config`, create file "src/config.rs" or "src/config/mod.rs"

error[E0432]: unresolved imports `config::IMAGE_DATA_URL`, `config::WIFI_CONFIG_DATA`
  --> src/main.rs:31:14
   |
31 | use config::{IMAGE_DATA_URL, WIFI_CONFIG_DATA};
   |              ^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^ no `WIFI_CONFIG_DATA` in `config`
   |              |
   |              no `IMAGE_DATA_URL` in `config`

warning: unused import: `wifi::WifiConfig`
  --> src/main.rs:30:5
   |
30 | use wifi::WifiConfig;
   |     ^^^^^^^^^^^^^^^^
   |
   = note: `#[warn(unused_imports)]` on by default

Some errors have detailed explanations: E0432, E0583.
For more information about an error, try `rustc --explain E0432`.
warning: `halldisplay-esp` (bin "halldisplay-esp") generated 1 warning
error: could not compile `halldisplay-esp` (bin "halldisplay-esp") due to 2 previous errors; 1 warning emitted

can not find: config.rs or mod.rs in the dir: eink-esp-weather-display

boustrophedon commented 10 months ago

I've added build instructions in both the esp and render directories' README files.

You need to add the src/config.rs file.

Let me know if you have any other issues.