m5stack / M5CoreS3-Esphome

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Building] board_m5cores3.h:5:10: fatal error: M5Unified.h: No such file or directory

lboue opened this issue · comments

M5CoreS3-Esphome: M5Unified lib issue

Issue

M5Unified library is not added as dependency so build fails.

Logs

INFO ESPHome 2023.12.5
INFO Reading configuration /config/esphome/m5cores3.yaml...
INFO Updating https://github.com/m5stack/M5CoreS3-Esphome@None
WARNING GPIO35 is used by the PSRAM interface on ESP32-S3R8 / ESP32-S3R8V and should be avoided on these models
INFO Generating C++ source...
INFO Compiling app...
Processing m5cores3 (board: esp32-s3-devkitc-1; framework: arduino; platform: platformio/espressif32@5.4.0)
--------------------------------------------------------------------------------
HARDWARE: ESP32S3 240MHz, 320KB RAM, 8MB Flash
 - toolchain-riscv32-esp @ 8.4.0+2021r2-patch5 
 - toolchain-xtensa-esp32s3 @ 8.4.0+2021r2-patch5
Dependency Graph
|-- AsyncTCP-esphome @ 2.0.1
|-- WiFi @ 2.0.0
|-- FS @ 2.0.0
|-- Update @ 2.0.0
|-- ESPAsyncWebServer-esphome @ 3.1.0
|-- DNSServer @ 2.0.0
|-- ESPmDNS @ 2.0.0
|-- noise-c @ 0.1.4
Compiling .pioenvs/m5cores3/src/esphome/components/board_m5cores3/board_m5cores3.cpp.o
Compiling .pioenvs/m5cores3/src/esphome/components/display/display_buffer.cpp.o
In file included from src/esphome/components/board_m5cores3/board_m5cores3.cpp:2:
src/esphome/components/board_m5cores3/board_m5cores3.h:5:10: fatal error: M5Unified.h: No such file or directory

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

 #include <M5Unified.h>
          ^~~~~~~~~~~~~
compilation terminated.
*** [.pioenvs/m5cores3/src/esphome/components/board_m5cores3/board_m5cores3.cpp.o] Error 1
========================= [FAILED] Took 28.68 seconds =========================

Full log

logs_m5cores3_compile_2024_01_06.txt

I realized that I had forgotten to declare libraries in the esphome section:

  libraries:
    - m5stack/M5GFX@^0.1.11
    - m5stack/M5Unified@^0.1.11