pioarduino / platform-espressif32

Espressif 32: pioarduino community platform for PlatformIO
https://github.com/espressif/arduino-esp32
Apache License 2.0
148 stars 18 forks source link

fatal error: esp_eth_driver.h: No such file or directory #10

Closed plystdr closed 3 months ago

plystdr commented 3 months ago

Throws an error during build.

In file included from C:/Users/xxx/.platformio/packages/framework-arduinoespressif32/libraries/WiFi/src/WiFiSTA.h:29,
                 from C:/Users/xxx/.platformio/packages/framework-arduinoespressif32/libraries/WiFi/src/WiFi.h:33,
                 from src/main.cpp:14:
C:/Users/xxx/.platformio/packages/framework-arduinoespressif32/libraries/WiFi/src/WiFiGeneric.h:35:10: fatal error: esp_eth_driver.h: No such file or directory

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

   35 | #include "esp_eth_driver.h"
      |          ^~~~~~~~~~~~~~~~~~
compilation terminated.
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\lgfx_fonts.cpp.o
*** [.pio\build\xxx\src\main.cpp.o] Error 1

Here is the platformio.ini below

[common]
lib_deps = 
    https://github.com/joltwallet/esp_littlefs.git
    ayushsharma82/ElegantOTA@^3.1.3

[env:xxx]
platform = https://github.com/pioarduino/platform-espressif32/releases/download/51.03.03/platform-espressif32.zip
framework = espidf, arduino
board = xxx
board_build.mcu = esp32s3
upload_protocol = esptool
monitor_speed = 115200
board_build.f_cpu = 240000000L
board_build.f_flash = 80000000L
board_build.flash_mode = qio
board_build.partitions = partition_scheme.csv
board_build.filesystem = littlefs
board_upload.offset_address = xxx
lib_deps = 
    ${common.lib_deps}
extra_scripts = 
    tasks.py
build_flags = 
    -DCORE_DEBUG_LEVEL=5
    -DBOARD_HAS_PSRAM
    -DARDUINO_ESP32S3_DEV
    -DCONFIG_SPIRAM_USE
    -mfix-esp32-psram-cache-issue
    -w
    -Wno-unused-variable
    -Wno-unused-function
    -DELEGANTOTA_USE_ASYNC_WEBSERVER=1
mathieucarbou commented 3 months ago

I think this is a change related to Arduino 3.0.3, not pioarduino. I had also myself to include additional headers when switching to Arduino 3.0.3

I see you are using ayushsharma82/ElegantOTA@^3.1.3: make sure to use:

  mathieucarbou/AsyncTCP @ 3.2.3
  mathieucarbou/ESPAsyncWebServer @ 3.1.1
  ayushsharma82/ElegantOTA @ 3.1.3

It works for me.

Jason2866 commented 3 months ago

Remove this lib. It is already there :-) Adding can do harm. https://github.com/joltwallet/esp_littlefs.git and this since it is ONLY needed for some esp32 boards. NEVER for S2 and S3 mfix-esp32-psram-cache-issue Using the matching board makes all entrys to board flash size, speed etc. unnecessary and the setup is much cleaner.

Jason2866 commented 3 months ago

Closing issue since it is NOT an framework problem.

plystdr commented 3 months ago

No change. PlatformIO can grab those 2 libraries even without putting them there. Not sure what is going on. If I use older platformio libraries, it compiles fine.

Here is the full output with updated platformio.ini. i cleaned everything in packages folder and downloaded everything from scratch

; PlatformIO Project Configuration File
;
;   Build options: build flags, source filter
;   Upload options: custom upload port, speed and extra flags
;   Library options: dependencies, extra library storages
;   Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html

[common]
lib_deps = 
    mathieucarbou/AsyncTCP @ 3.2.3
    mathieucarbou/ESPAsyncWebServer @ 3.1.1
    ayushsharma82/ElegantOTA@^3.1.3

[env:polystruder-grpro-r31-recover]
platform = https://github.com/pioarduino/platform-espressif32/releases/download/51.03.03/platform-espressif32.zip
framework = espidf, arduino
board = polystruder-grcircuit
board_build.mcu = esp32s3
upload_protocol = esptool
monitor_speed = 115200
board_build.f_cpu = 240000000L
board_build.f_flash = 80000000L
board_build.flash_mode = qio
board_build.partitions = partition_scheme.csv
board_build.filesystem = littlefs
board_upload.offset_address = 0x670000
lib_deps = 
    ${common.lib_deps}
extra_scripts = 
    tasks.py
build_flags = 
    -DCORE_DEBUG_LEVEL=5
    -DBOARD_HAS_PSRAM
    -DARDUINO_ESP32S3_DEV
    -DCONFIG_SPIRAM_USE
    -w
    -Wno-unused-variable
    -Wno-unused-function
    -DELEGANTOTA_USE_ASYNC_WEBSERVER=1
Executing task: C:\Users\xxx\.platformio\penv\Scripts\platformio.exe run --environment xxx 

Processing xxx (platform: https://github.com/pioarduino/platform-espressif32/releases/download/51.03.03/platform-espressif32.zip; framework: espidf, arduino; board: xxx)
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/xxx.html
PLATFORM: Espressif 32 (51.3.3) > Espressif ESP32-S3-N8-R2 (8 MB QD, 2MB PSRAM)
HARDWARE: ESP32S3 240MHz, 320KB RAM, 8MB Flash
DEBUG: Current (esp-builtin) On-board (esp-builtin) 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.0.3 
 - framework-arduinoespressif32-libs @ 5.1.0+sha.dc859c1e67 
 - framework-espidf @ 3.50104.0 (5.1.4) 
 - tool-cmake @ 3.21.3 
 - tool-esptoolpy @ 4.7.5 
 - tool-idf @ 1.0.1 
 - tool-mconf @ 1.4060000.20190628 (406.0.0) 
 - tool-mklittlefs @ 3.2.0 
 - tool-ninja @ 1.9.0
 - tool-openocd-esp32 @ 2.1100.20220706 (11.0)
 - tool-riscv32-esp-elf-gdb @ 11.2.0+20220823
 - tool-xtensa-esp-elf-gdb @ 11.2.0+20230208
 - toolchain-esp32ulp @ 1.23500.220830 (2.35.0)
 - toolchain-riscv32-esp @ 12.2.0+20230208
 - toolchain-xtensa-esp32s3 @ 12.2.0+20230208
Warning! Arduino framework as an ESP-IDF component doesn't handle the `variant` field! The default `esp32` variant will be used.
Reading CMake configuration...
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 45 compatible libraries
Scanning dependencies...
Dependency Graph
|-- AsyncTCP @ 3.2.3
|-- ESPAsyncWebServer @ 3.1.1
|-- ElegantOTA @ 3.1.3
|-- HTTPClient @ 3.0.3
|-- Update @ 3.0.3
|-- WiFi @ 3.0.3
|-- ui
|-- LovyanGFX @ 1.1.12
|-- lvgl @ 8.3.11
Building in release mode
Compiling .pio\build\xxx\src\main.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\misc\DividedFrameBuffer.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\misc\SpriteBuffer.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\misc\common_function.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\misc\pixelcopy.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\panel\Panel_Device.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\panel\Panel_FlexibleFrameBuffer.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\panel\Panel_FrameBufferBase.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\panel\Panel_GDEW0154M09.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\panel\Panel_HUB75.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\panel\Panel_HasBuffer.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\panel\Panel_ILI9225.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\panel\Panel_IT8951.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\panel\Panel_LCD.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\panel\Panel_M5HDMI.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\panel\Panel_M5UnitGLASS.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\panel\Panel_M5UnitLCD.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\panel\Panel_NT35510.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\panel\Panel_RA8875.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\panel\Panel_RM68120.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\panel\Panel_SSD1306.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\panel\Panel_SSD1327.cpp.o
In file included from C:/Users/xxx/.platformio/packages/framework-arduinoespressif32/libraries/WiFi/src/WiFiSTA.h:29,
                 from C:/Users/xxx/.platformio/packages/framework-arduinoespressif32/libraries/WiFi/src/WiFi.h:33,
                 from src/main.cpp:14:
C:/Users/xxx/.platformio/packages/framework-arduinoespressif32/libraries/WiFi/src/WiFiGeneric.h:35:10: fatal error: esp_eth_driver.h: No such file or directory

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

   35 | #include "esp_eth_driver.h"
      |          ^~~~~~~~~~~~~~~~~~
compilation terminated.
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\panel\Panel_SSD1331.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\panel\Panel_SSD1351.cpp.o
*** [.pio\build\xxx\src\main.cpp.o] Error 1
======================================================================== [FAILED] Took 12.90 seconds ========================================================================

 *  The terminal process "C:\Users\xxx\.platformio\penv\Scripts\platformio.exe 'run', '--environment', 'xxx'" terminated with exit code: 1. 
 *  Terminal will be reused by tasks, press any key to close it. 
plystdr commented 3 months ago

found the problem. adding esp-idf framework is causing the issue itself. however it does not solve the issue, since i need both arduino and espidf frameworks at the same time.

framework = espidf, arduino

this time i got different errors, but these are due to no espidf framework is present.

Executing task: C:\Users\xxx\.platformio\penv\Scripts\platformio.exe run --environment xxx 

Processing xxx (platform: https://github.com/pioarduino/platform-espressif32/releases/download/51.03.03/platform-espressif32.zip; framework: arduino; board: xxx)
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/xxx.html
PLATFORM: Espressif 32 (51.3.3) > Espressif ESP32-S3-N8-R2 (8 MB QD, 2MB PSRAM)
HARDWARE: ESP32S3 240MHz, 320KB RAM, 8MB Flash
DEBUG: Current (esp-builtin) On-board (esp-builtin) 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.0.3
 - framework-arduinoespressif32-libs @ 5.1.0+sha.dc859c1e67
 - tool-esptoolpy @ 4.7.5
 - tool-mklittlefs @ 3.2.0
 - tool-openocd-esp32 @ 2.1100.20220706 (11.0)
 - tool-riscv32-esp-elf-gdb @ 11.2.0+20220823 
 - tool-xtensa-esp-elf-gdb @ 11.2.0+20230208
 - toolchain-riscv32-esp @ 12.2.0+20230208
 - toolchain-xtensa-esp32s3 @ 12.2.0+20230208
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 45 compatible libraries
Scanning dependencies...
Dependency Graph
|-- AsyncTCP @ 3.2.3
|-- ESPAsyncWebServer @ 3.1.1
|-- ElegantOTA @ 3.1.3
|-- HTTPClient @ 3.0.3
|-- Update @ 3.0.3
|-- WiFi @ 3.0.3
|-- ui
|-- LovyanGFX @ 1.1.12
|-- lvgl @ 8.3.11
Building in release mode
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\Fonts\IPA\lgfx_font_japan.c.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\Fonts\efont\lgfx_efont_cn.c.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\Fonts\efont\lgfx_efont_ja.c.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\Fonts\efont\lgfx_efont_kr.c.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\Fonts\efont\lgfx_efont_tw.c.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\utility\lgfx_pngle.c.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\utility\lgfx_qoi.c.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\utility\lgfx_qrcode.c.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\utility\lgfx_tjpgd.c.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\utility\miniz.c.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v0\LGFXBase.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v0\lgfx_fonts.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v0\panel\Panel_GDEW0154M09.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v0\panel\Panel_IT8951.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v0\platforms\esp32_common.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v0\platforms\samd51_common.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v0\touch\Touch_FT5x06.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v0\touch\Touch_GT911.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v0\touch\Touch_STMPE610.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v0\touch\Touch_XPT2046.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\LGFXBase.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\LGFX_Button.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\LGFX_Sprite.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\lgfx_fonts.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\misc\DividedFrameBuffer.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\misc\SpriteBuffer.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\misc\common_function.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\misc\pixelcopy.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\panel\Panel_Device.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\panel\Panel_FlexibleFrameBuffer.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\panel\Panel_FrameBufferBase.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\panel\Panel_GDEW0154M09.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\panel\Panel_HUB75.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\panel\Panel_HasBuffer.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\panel\Panel_ILI9225.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\panel\Panel_IT8951.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\panel\Panel_LCD.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\panel\Panel_M5HDMI.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\panel\Panel_M5UnitGLASS.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\panel\Panel_M5UnitLCD.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\panel\Panel_NT35510.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\panel\Panel_RA8875.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\panel\Panel_RM68120.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\panel\Panel_SSD1306.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\panel\Panel_SSD1327.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\panel\Panel_SSD1331.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\panel\Panel_SSD1351.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\panel\Panel_SSD1963.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\platforms\arduino_default\Bus_SPI.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\platforms\arduino_default\Bus_Stream.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\platforms\arduino_default\common.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\platforms\esp32\Bus_HUB75.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\platforms\esp32\Bus_I2C.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\platforms\esp32\Bus_Parallel8.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\platforms\esp32\Bus_SPI.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\platforms\esp32\Light_PWM.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\platforms\esp32\Panel_CVBS.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\platforms\esp32\common.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\platforms\esp32c3\Bus_Parallel8.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\platforms\esp32s2\Bus_Parallel16.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\platforms\esp32s2\Bus_Parallel8.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\platforms\esp32s3\Bus_Parallel16.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\platforms\esp32s3\Bus_Parallel8.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\platforms\esp32s3\Bus_RGB.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\platforms\esp32s3\Panel_RGB.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\platforms\esp8266\Bus_I2C.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\platforms\esp8266\Bus_SPI.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\platforms\esp8266\common.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\platforms\framebuffer\Panel_fb.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\platforms\framebuffer\common.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\platforms\opencv\Panel_OpenCV.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\platforms\opencv\common.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\platforms\rp2040\Bus_I2C.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\platforms\rp2040\Bus_SPI.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\platforms\rp2040\Light_PWM.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\platforms\rp2040\common.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\platforms\samd21\Bus_I2C.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\platforms\samd21\Bus_SPI.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\platforms\samd21\common.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\platforms\samd51\Bus_I2C.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\platforms\samd51\Bus_SPI.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\platforms\samd51\common.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\platforms\sdl\Panel_sdl.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\platforms\sdl\common.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\platforms\spresense\Bus_SPI.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\platforms\spresense\common.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\platforms\stm32\Bus_SPI.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\platforms\stm32\common.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\touch\Touch_CST816S.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\touch\Touch_FT5x06.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\touch\Touch_GSLx680.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\touch\Touch_GT911.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\touch\Touch_NS2009.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\touch\Touch_STMPE610.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\touch\Touch_TT21xxx.cpp.o
Compiling .pio\build\xxx\libbdc\LovyanGFX-1.1.12\lgfx\v1\touch\Touch_XPT2046.cpp.o
Compiling .pio\build\xxx\src\main.cpp.o
Building .pio\build\xxx\bootloader.bin
Generating partitions .pio\build\xxx\partitions.bin
esptool.py v4.7.5
Creating esp32s3 image...
Merged 1 ELF section
Successfully created esp32s3 image.
Compiling .pio\build\xxx\lib66c\Network\NetworkClient.cpp.o
Compiling .pio\build\xxx\lib66c\Network\NetworkEvents.cpp.o
Compiling .pio\build\xxx\lib66c\Network\NetworkInterface.cpp.o
Compiling .pio\build\xxx\lib66c\Network\NetworkManager.cpp.o
Compiling .pio\build\xxx\lib66c\Network\NetworkServer.cpp.o
Compiling .pio\build\xxx\lib66c\Network\NetworkUdp.cpp.o
Compiling .pio\build\xxx\lib1d9\AsyncTCP\AsyncTCP.cpp.o
Compiling .pio\build\xxx\libf2b\FS\FS.cpp.o
Compiling .pio\build\xxx\libf2b\FS\vfs_api.cpp.o
Compiling .pio\build\xxx\lib467\WebServer\Parsing.cpp.o
Compiling .pio\build\xxx\lib467\WebServer\WebServer.cpp.o
Compiling .pio\build\xxx\lib467\WebServer\detail\mimetable.cpp.o
Compiling .pio\build\xxx\lib3bb\WiFi\AP.cpp.o
Compiling .pio\build\xxx\lib3bb\WiFi\STA.cpp.o
Compiling .pio\build\xxx\lib3bb\WiFi\WiFi.cpp.o
Compiling .pio\build\xxx\lib3bb\WiFi\WiFiAP.cpp.o
Compiling .pio\build\xxx\lib3bb\WiFi\WiFiGeneric.cpp.o
Compiling .pio\build\xxx\lib3bb\WiFi\WiFiMulti.cpp.o
Compiling .pio\build\xxx\lib3bb\WiFi\WiFiSTA.cpp.o
Compiling .pio\build\xxx\lib3bb\WiFi\WiFiScan.cpp.o
Compiling .pio\build\xxx\lib47c\ESPAsyncWebServer\AsyncEventSource.cpp.o
Compiling .pio\build\xxx\lib47c\ESPAsyncWebServer\AsyncWebSocket.cpp.o
Compiling .pio\build\xxx\lib47c\ESPAsyncWebServer\WebAuthentication.cpp.o
Compiling .pio\build\xxx\lib47c\ESPAsyncWebServer\WebHandlers.cpp.o
Compiling .pio\build\xxx\lib47c\ESPAsyncWebServer\WebRequest.cpp.o
Compiling .pio\build\xxx\lib47c\ESPAsyncWebServer\WebResponses.cpp.o
Compiling .pio\build\xxx\lib47c\ESPAsyncWebServer\WebServer.cpp.o
Compiling .pio\build\xxx\lib47c\ESPAsyncWebServer\port\SHA1Builder.cpp.o
Archiving .pio\build\xxx\lib1d9\libAsyncTCP.a
In file included from src/main.cpp:13:
include/functions.h: In function 'String getMacAddressNoColon()':
include/functions.h:31:25: error: 'ESP_MAC_WIFI_STA' was not declared in this scope
   31 |   esp_read_mac(baseMac, ESP_MAC_WIFI_STA);
      |                         ^~~~~~~~~~~~~~~~
include/functions.h:31:3: error: 'esp_read_mac' was not declared in this scope
   31 |   esp_read_mac(baseMac, ESP_MAC_WIFI_STA);
      |   ^~~~~~~~~~~~
Indexing .pio\build\xxx\lib1d9\libAsyncTCP.a
Compiling .pio\build\xxx\lib9fc\LittleFS\LittleFS.cpp.o
Archiving .pio\build\xxx\lib66c\libNetwork.a
Indexing .pio\build\xxx\lib66c\libNetwork.a
In file included from src/main.cpp:16:
include/wifiConnect.h: In function 'void wiFiEvent(arduino_event_id_t)':
include/wifiConnect.h:78:10: error: 'SYSTEM_EVENT_WIFI_READY' was not declared in this scope; did you mean 'WIFI_EVENT_WIFI_READY'?
   78 |     case SYSTEM_EVENT_WIFI_READY:
      |          ^~~~~~~~~~~~~~~~~~~~~~~
      |          WIFI_EVENT_WIFI_READY
include/wifiConnect.h:80:10: error: 'SYSTEM_EVENT_STA_START' was not declared in this scope; did you mean 'WIFI_EVENT_STA_START'?
   80 |     case SYSTEM_EVENT_STA_START:
      |          ^~~~~~~~~~~~~~~~~~~~~~
      |          WIFI_EVENT_STA_START
include/wifiConnect.h:82:10: error: 'SYSTEM_EVENT_STA_STOP' was not declared in this scope; did you mean 'WIFI_EVENT_STA_STOP'?
   82 |     case SYSTEM_EVENT_STA_STOP:
      |          ^~~~~~~~~~~~~~~~~~~~~
      |          WIFI_EVENT_STA_STOP
Compiling .pio\build\xxx\libc75\Update\HttpsOTAUpdate.cpp.o
include/wifiConnect.h:84:10: error: 'SYSTEM_EVENT_STA_GOT_IP' was not declared in this scope; did you mean 'IP_EVENT_STA_GOT_IP'?
   84 |     case SYSTEM_EVENT_STA_GOT_IP:
      |          ^~~~~~~~~~~~~~~~~~~~~~~
      |          IP_EVENT_STA_GOT_IP
include/wifiConnect.h:91:10: error: 'SYSTEM_EVENT_STA_LOST_IP' was not declared in this scope; did you mean 'IP_EVENT_STA_LOST_IP'?
   91 |     case SYSTEM_EVENT_STA_LOST_IP:
      |          ^~~~~~~~~~~~~~~~~~~~~~~~
      |          IP_EVENT_STA_LOST_IP
Compiling .pio\build\xxx\libc75\Update\Updater.cpp.o
include/wifiConnect.h:97:10: error: 'SYSTEM_EVENT_STA_DISCONNECTED' was not declared in this scope; did you mean 'WIFI_EVENT_STA_DISCONNECTED'?
   97 |     case SYSTEM_EVENT_STA_DISCONNECTED:
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |          WIFI_EVENT_STA_DISCONNECTED
include/wifiConnect.h:107:10: error: 'SYSTEM_EVENT_STA_CONNECTED' was not declared in this scope; did you mean 'WIFI_EVENT_STA_CONNECTED'?
  107 |     case SYSTEM_EVENT_STA_CONNECTED:
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~
      |          WIFI_EVENT_STA_CONNECTED
Compiling .pio\build\xxx\libf83\ElegantOTA\ElegantOTA.cpp.o
Archiving .pio\build\xxx\libf2b\libFS.a
Indexing .pio\build\xxx\libf2b\libFS.a
Compiling .pio\build\xxx\libf83\ElegantOTA\elop.cpp.o
*** [.pio\build\xxx\src\main.cpp.o] Error 1
======================================================================== [FAILED] Took 24.29 seconds ========================================================================

 *  The terminal process "C:\Users\xxx\.platformio\penv\Scripts\platformio.exe 'run', '--environment', 'xxx'" terminated with exit code: 1. 
 *  Terminal will be reused by tasks, press any key to close it. 
Jason2866 commented 3 months ago

It is a code issue. The CI does compile successfully all examples. Arduino, espidf and Arduino as an component of IDF. May you look at the example folders, in this repo.