marcotammaro / M5Paper---Modern-Weather-Dashboard

A modern weather dashboard that looks great!
13 stars 1 forks source link

Can not compile - Can not find Time.h #1

Closed tgrauss closed 10 months ago

tgrauss commented 10 months ago

Hello,

I can't compile the project in platformio as there is an error about Time.h It can't find Time.h even if it is added to the project. Executing task in folder M5Paper---Modern-Weather-Dashboard-main: platformio run

Processing m5stack-fire (platform: espressif32; board: m5stack-fire; framework: arduino)
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/m5stack-fire.html
PLATFORM: Espressif 32 (6.4.0) > M5Stack FIRE
HARDWARE: ESP32 240MHz, 4.31MB RAM, 16MB Flash
DEBUG: Current (cmsis-dap) External (cmsis-dap, esp-bridge, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES: 
 - framework-arduinoespressif32 @ 3.20011.230801 (2.0.11) 
 - tool-esptoolpy @ 1.40501.0 (4.5.1) 
 - toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch5
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 38 compatible libraries
Scanning dependencies...
Dependency Graph
|-- MoonRise @ 2.0.4
|-- ArduinoJson @ 6.21.3
|-- JsonStreamingParser @ 1.0.5
|-- M5EPD @ 0.1.5
|-- Time @ 1.6.1
|-- WiFi @ 2.0.0
|-- HTTPClient @ 2.0.0
Building in release mode
Compiling .pio/build/m5stack-fire/src/Controller/EPDController/EPDController.cpp.o
In file included from src/Controller/EPDController/EPDController.cpp:1:
src/Controller/EPDController/EPDController.h:4:10: fatal error: Time.h: No such file or directory

**************************************************************
* Looking for Time.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:Time.h"
* Web  > https://registry.platformio.org/search?q=header:Time.h
*
**************************************************************

 #include <Time.h>
          ^~~~~~~~
compilation terminated.
Compiling .pio/build/m5stack-fire/src/Controller/WeatherController/WeatherController.cpp.o
Compiling .pio/build/m5stack-fire/src/View/WeatherView.cpp.o
Compiling .pio/build/m5stack-fire/src/main.cpp.o
*** [.pio/build/m5stack-fire/src/Controller/EPDController/EPDController.cpp.o] Error 1
In file included from src/main.cpp:3:
src/Controller/EPDController/EPDController.h:4:10: fatal error: Time.h: No such file or directory

**************************************************************
* Looking for Time.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:Time.h"
* Web  > https://registry.platformio.org/search?q=header:Time.h
*
**************************************************************

 #include <Time.h>
          ^~~~~~~~
compilation terminated.
*** [.pio/build/m5stack-fire/src/main.cpp.o] Error 1
In file included from src/View/WeatherView.h:5,
                 from src/View/WeatherView.cpp:1:
src/Controller/WeatherController/WeatherController.h:7:10: fatal error: Time.h: No such file or directory

**************************************************************
* Looking for Time.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:Time.h"
* Web  > https://registry.platformio.org/search?q=header:Time.h
*
**************************************************************

 #include <Time.h>
          ^~~~~~~~
compilation terminated.
*** [.pio/build/m5stack-fire/src/View/WeatherView.cpp.o] Error 1
In file included from src/Controller/WeatherController/WeatherController.cpp:1:
src/Controller/WeatherController/WeatherController.h:7:10: fatal error: Time.h: No such file or directory

**************************************************************
* Looking for Time.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:Time.h"
* Web  > https://registry.platformio.org/search?q=header:Time.h
*
**************************************************************

 #include <Time.h>
          ^~~~~~~~
compilation terminated.
*** [.pio/build/m5stack-fire/src/Controller/WeatherController/WeatherController.cpp.o] Error 1
========================================================================== [FAILED] Took 3.04 seconds ==========================================================================

 *  The terminal process "platformio 'run'" terminated with exit code: 1. 
 *  Terminal will be reused by tasks, press any key to close it. 

Do you have an idea what might be wrong? Thank you

marcotammaro commented 10 months ago

Hi @tgrauss, could you please try to comment all the #include <Time.h> lines? there are three imports in:

Let me know if commenting the import lines solve the problem. Thank you

tgrauss commented 10 months ago

Thank you, it worked.

marcotammaro commented 10 months ago

Thank to you!