Problems with ota configuration in platformIo.ini

I have this config

[platformio]
default_envs = esp32s3

; ════════════════════════════════════════════════
; USB Flash
; ════════════════════════════════════════════════
[env:esp32s3]
platform  = espressif32
board     = esp32-s3-devkitc-1-n16r8v
framework = arduino

board_build.flash_mode          = qio
board_build.psram_type          = opi
board_build.psram               = opi
board_build.arduino.memory_type = qio_opi
board_build.f_flash             = 80000000L
board_build.f_cpu               = 240000000L
board_build.partitions          = default_16MB.csv
board_upload.flash_size         = 16MB
board_upload.usb_mode           = cdc_jtag

upload_protocol = esptool
upload_port     = COM23
upload_speed    = 460800

monitor_port    = COM16
monitor_speed   = 115200
monitor_echo    = yes
monitor_filters = esp32_exception_decoder, time, colorize

build_flags =
    -I src
    -I src/ui
    -I include
    -D LV_CONF_INCLUDE_SIMPLE
    -D ARDUINO_USB_CDC_ON_BOOT=1
    -D ARDUINO_USB_MODE=1
    -D BOARD_HAS_PSRAM
    -D CORE_DEBUG_LEVEL=0
    -D sOpenMeteoString=\"http://api.open-meteo.com/v1/forecast?latitude=50.66&longitude=7.8228&hourly=temperature_2m&timezone=Europe%%2FBerlin\"
    -D ScreenWidth=480
    -D ScreenHeight=320
    -D DRAW_BUF_SIZE=30700
    -D SCREEN_COUNT=13
    -D SDA_1=8
    -D SCL_1=9
    -D AkkuReadGPIO1=25
    -D bWokWi_WiFi=false
    -D DHTPIN=5
    -D DHTTYPE=DHT21
    -D I2CFrequenz=100000
    -D I2CBMP280Adr=0x76
    -D b2Wire=true
    -D bScanI2C=false
    -D bI2CBMP280=true
    -D bI2CSCD41=true
    -D bG2Y10Dust=false
    -D bDHT_Sensor=false
    -D bPMS5003=false
    -D MMC_DAT3=10
    -D MMC_DAT=11
    -D MMC_CLX=12
    -D MMC_DAT0=13
    -D TOUCH_SDA=4
    -D TOUCH_SCL=8
    -D bWeatherFunctionsPrint=false
    -D bWeatherApiPrint=false
    -D bWeatherApiResponsePrint=false
    -D TimeOffset=7200
    -D AXS_MAX_TOUCH_NUMBER=1
    -D RxDsoft=9
    -D TxDsoft=14
    -D bWebSocket=true
    -D bWOKWI=false
    -D bWith_Loop=true
    -D bSerialDebug=true
    -D bShowHeap=false
    -D DHT_PIN=-1
    -D PMS_EN_PIN=14
    -D PMS_TX_PIN=15
    -D PMS_RX_PIN=16
    -D BME680_SDA=17
    -D BME680_SCL=18
    -D DateOffsetSeconds=0
    -D OTA_PASSWORD='"GigisBoost"'
    -D OTA_HOSTNAME='"ESP32-Klima"'
    ## MMC JC3248W535
    #-D SD_MMC_CMD=11
    #-D SD_MMC_CLK=12
    #-D SD_MMC_D0=13
   ## MMC Freenove 
    -D SD_MMC_CMD=38  
    -D SD_MMC_CLK=39  
    -D SD_MMC_D0=40   

lib_deps =
    FS
    file://./lib/Arduino_GFX-1.5.9.zip
    file://./lib/ArduinoJson-7.4.2.zip
    file://./lib/MoonRise.zip
    file://./lib/ArduinoMoonPhase.zip
    lvgl/lvgl @ ^9.4.0
    jchristensen/Timezone@^1.2.4
    adafruit/Adafruit BusIO@^1.17.0
    https://github.com/PaulStoffregen/Time.git
    adafruit/Adafruit Unified Sensor@^1.1.15
    git@github.com:adafruit/DHT-sensor-library.git
    https://github.com/avaldebe/PMserial.git
    arduino-libraries/NTPClient@^3.2.1
    esp32async/AsyncTCP@^3.4.9
    esp32async/ESPAsyncWebServer@^3.8.1
    https://github.com/adafruit/Adafruit_BME680.git

; ════════════════════════════════════════════════
; OTA Upload über WLAN
; ════════════════════════════════════════════════
[env:esp32s3_ota]
platform  = espressif32
board     = esp32-s3-devkitc-1-n16r8v
framework = arduino

board_build.flash_mode          = qio
board_build.psram_type          = opi
board_build.psram               = opi
board_build.arduino.memory_type = qio_opi
board_build.f_flash             = 80000000L
board_build.f_cpu               = 240000000L
board_build.partitions          = default_16MB.csv
board_upload.flash_size         = 16MB
board_upload.usb_mode           = cdc_jtag

monitor_port    = COM16
monitor_speed   = 115200
monitor_echo    = yes
monitor_filters = esp32_exception_decoder, time, colorize

; ── IDENTISCHE build_flags wie esp32s3 ──────────
build_flags =
    -I src
    -I src/ui
    -I include
    -D LV_CONF_INCLUDE_SIMPLE
    -D ARDUINO_USB_CDC_ON_BOOT=1
    -D ARDUINO_USB_MODE=1
    -D BOARD_HAS_PSRAM
    -D CORE_DEBUG_LEVEL=0
    -D sOpenMeteoString=\"http://api.open-meteo.com/v1/forecast?latitude=50.66&longitude=7.8228&hourly=temperature_2m&timezone=Europe%%2FBerlin\"
    -D ScreenWidth=480
    -D ScreenHeight=320
    -D DRAW_BUF_SIZE=30700
    -D SCREEN_COUNT=13
    -D SDA_1=8
    -D SCL_1=9
    -D AkkuReadGPIO1=25
    -D bWokWi_WiFi=false
    -D DHTPIN=5
    -D DHTTYPE=DHT21
    -D I2CFrequenz=100000
    -D I2CBMP280Adr=0x76
    -D b2Wire=true
    -D bScanI2C=false
    -D bI2CBMP280=true
    -D bI2CSCD41=true
    -D bG2Y10Dust=false
    -D bDHT_Sensor=false
    -D bPMS5003=false
    -D MMC_DAT3=10
    -D MMC_DAT=11
    -D MMC_CLX=12
    -D MMC_DAT0=13
    -D TOUCH_SDA=4
    -D TOUCH_SCL=8
    -D bWeatherFunctionsPrint=false
    -D bWeatherApiPrint=false
    -D bWeatherApiResponsePrint=false
    -D TimeOffset=7200
    -D AXS_MAX_TOUCH_NUMBER=1
    -D RxDsoft=9
    -D TxDsoft=14
    -D bWebSocket=true
    -D bWOKWI=false
    -D bWith_Loop=true
    -D bSerialDebug=true
    -D bShowHeap=false
    -D DHT_PIN=-1
    -D PMS_EN_PIN=14
    -D PMS_TX_PIN=15
    -D PMS_RX_PIN=16
    -D BME680_SDA=17
    -D BME680_SCL=18
    -D OTA_PASSWORD='"GigisBoost"'
    -D OTA_HOSTNAME='"ESP32-Klima"'
    ## MMC JC3248W535
    #-D SD_MMC_CMD=11
    #-D SD_MMC_CLK=12
    #-D SD_MMC_D0=13
   ## MMC Freenove 
    -D SD_MMC_CMD=38  
    -D SD_MMC_CLK=39  
    -D SD_MMC_D0=40   

lib_deps =
    FS
    file://./lib/Arduino_GFX-1.5.9.zip
    file://./lib/ArduinoJson-7.4.2.zip
    file://./lib/MoonRise.zip
    file://./lib/ArduinoMoonPhase.zip
    lvgl/lvgl @ ^9.4.0
    jchristensen/Timezone@^1.2.4
    adafruit/Adafruit BusIO@^1.17.0
    https://github.com/PaulStoffregen/Time.git
    adafruit/Adafruit Unified Sensor@^1.1.15
    git@github.com:adafruit/DHT-sensor-library.git
    https://github.com/avaldebe/PMserial.git
    arduino-libraries/NTPClient@^3.2.1
    esp32async/AsyncTCP@^3.4.9
    esp32async/ESPAsyncWebServer@^3.8.1
    https://github.com/adafruit/Adafruit_BME680.git

; ← HIER! außerhalb lib_deps, kein Einrücken!
upload_protocol = espota
upload_port     = 192.168.178.126
upload_flags    = --port=3232 --auth=GigisBoost

this compile well [platformio]

default_envs = esp32s3

this

[env:esp32s3_ota]
platform  = espressif32

Compiling .pio\build\esp32s3_ota\lib0d5\lvgl\widgets\spinner\lv_spinner.c.o
Compiling .pio\build\esp32s3_ota\lib0d5\lvgl\widgets\switch\lv_switch.c.o
In file included from .pio/libdeps/esp32s3_ota/lvgl/src/widgets/property/../spinbox/../textarea/../label/../../core/../misc/../font/../draw/../misc/lv_assert.h:18,
from .pio/libdeps/esp32s3_ota/lvgl/src/widgets/property/../spinbox/../textarea/../label/../../core/../misc/../font/../draw/../misc/lv_color.h:17,
from .pio/libdeps/esp32s3_ota/lvgl/src/widgets/property/../spinbox/../textarea/../label/../../core/../misc/../font/../draw/lv_draw_buf.h:18,
from .pio/libdeps/esp32s3_ota/lvgl/src/widgets/property/../spinbox/../textarea/../label/../../core/../misc/../font/lv_font.h:20,
from .pio/libdeps/esp32s3_ota/lvgl/src/widgets/property/../spinbox/../textarea/../label/../../core/../misc/lv_style.h:16,
from .pio/libdeps/esp32s3_ota/lvgl/src/widgets/property/../spinbox/../textarea/../label/../../core/lv_obj.h:19,
from .pio/libdeps/esp32s3_ota/lvgl/src/widgets/property/../spinbox/../textarea/../label/lv_label.h:21,
from .pio/libdeps/esp32s3_ota/lvgl/src/widgets/property/../spinbox/../textarea/lv_textarea.h:16,
from .pio/libdeps/esp32s3_ota/lvgl/src/widgets/property/../spinbox/lv_spinbox.h:16,
from .pio/libdeps/esp32s3_ota/lvgl/src/widgets/property/lv_spinbox_properties.c:7:
.pio/libdeps/esp32s3_ota/lvgl/src/widgets/property/../spinbox/../textarea/../label/../../core/../misc/../font/../draw/../misc/../stdlib/lv_mem.h:16:10: fatal error: ../lv_conf_internal.h: No such file or directory
#include “../lv_conf_internal.h”
^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Compiling .pio\build\esp32s3_ota\lib0d5\lvgl\widgets\table\lv_table.c.o
*** [.pio\build\esp32s3_ota\lib0d5\lvgl\widgets\property\lv_spinbox_properties.c.o] Error 1
========================================================================================================================================================= [FAILED] Took 108.94 seconds =========================================================================================================================================================

Environment Status Duration


esp32s3_ota FAILED 00:01:48.936
==================================================================================================================================================== 1 failed, 0 succeeded in 00:01:48.936 ====================================================================================================================================================
PS D:__Dokus\Documents\PlatformIO\ZZ_JC3248W535-Wetter-Stadion\JC3248W535_New\zzJC3248W535-LVGL-Wetter-X>

now the ai does not know what to do giving me stupid advices

I would like to get ota done I cleaned the cache

Search for the lv_conf_internal.h file within the project (especially the .pio folder). Does it exist? It’s supposed to be in the src folder of the lvgl library.

If no, then your lvgl download is broken and you need to delete the .pio folder and build again.

If yes, then the path may be so long that you are hitting a Windows path limitation and thus the existing file is not found at the specified path. Activate NTFS long paths in your Windows, reboot, and build again. Alternatively, move the entire project folder to a shorter path (e.g., C:\project).