Next time please execute the “Clean” project task so that the
.pio folder build files are removed – the project can be 28.8MB, not 155MB.
The observed error
In file included from components\lvgl_esp32_drivers\lvgl_helpers.c:10:
components\lvgl_esp32_drivers\lvgl_helpers.c: In function 'lvgl_driver_init':
components\lvgl_esp32_drivers\lvgl_helpers.h:57:25: error: 'LV_HOR_RES_MAX' undeclared (first use in this function); did you mean 'LV_HOR_RES'?
#define DISP_BUF_SIZE (LV_HOR_RES_MAX * 40)
which is known at
Or rather, you are using LVGL v8 without the code being compatible with LVGL v8. This is also evident by the
components\lvgl\library.json file in your project which says
"version": "8.1.0-dev". You cannot use LVGLv8 with the ESP32 port. It looks to me as if you just copied both the latest LVGL and LVGL_esp32 into your project without taking care of version compatibilities between the two.
When I follow the original steps outlined in
aka I build their example project with the exact LVGL versions as they specify (https://github.com/lvgl/lv_port_esp32/tree/master/components) from 7 months ago, it builds prefectly fine.
RAM: [= ] 14.7% (used 48264 bytes from 327680 bytes)
Flash: [==== ] 39.1% (used 410377 bytes from 1048576 bytes)
Merged 1 ELF section
===================== [SUCCESS] Took 70.91 seconds =====================
see reference project at https://github.com/maxgerhardt/pio-esp32-espidf-lvgl-example