Closed itavero closed 2 years ago
Probably because the include
folder mentioned in the error was empty, it isn't included in your git repository.
Adding the include
folder seems to resolve the issue.
Unfortunately it did not resolve the issue completely: the compilation continued, but I get different error messages now.
[1027/1090] Building C object esp-idf/lvgl/CMakeFiles/__idf_lvgl.dir/porting/lv_port_disp.c.obj
FAILED: esp-idf/lvgl/CMakeFiles/__idf_lvgl.dir/porting/lv_port_disp.c.obj
ccache C:\esp\tools-master\tools\xtensa-esp32s3-elf\esp-2021r2-patch3-8.4.0\xtensa-esp32s3-elf\bin\xtensa-esp32s3-elf-gcc.exe -IC:/gitrepo/wywy-s3-rgb/examples/lvgl_demo/build/config -IC:/gitrepo/wywy-s3-rgb/components/lvgl -IC:/gitrepo/wywy-s3-rgb/components/lvgl/src/core -IC:/gitrepo/wywy-s3-rgb/components/lvgl/src/draw -IC:/gitrepo/wywy-s3-rgb/components/lvgl/src/extra -IC:/gitrepo/wywy-s3-rgb/components/lvgl/src/font -IC:/gitrepo/wywy-s3-rgb/components/lvgl/src/gpu -IC:/gitrepo/wywy-s3-rgb/components/lvgl/src/hal -IC:/gitrepo/wywy-s3-rgb/components/lvgl/src/misc -IC:/gitrepo/wywy-s3-rgb/components/lvgl/src/widgets -IC:/gitrepo/wywy-s3-rgb/components/lvgl/src/extra/layouts -IC:/gitrepo/wywy-s3-rgb/components/lvgl/src/extra/layouts/flex -IC:/gitrepo/wywy-s3-rgb/components/lvgl/src/extra/layouts/grid -IC:/gitrepo/wywy-s3-rgb/components/lvgl/src/extra/themes -IC:/gitrepo/wywy-s3-rgb/components/lvgl/src/extra/themes/basic -IC:/gitrepo/wywy-s3-rgb/components/lvgl/src/extra/themes/default -IC:/gitrepo/wywy-s3-rgb/components/lvgl/src/extra/themes/mono -IC:/gitrepo/wywy-s3-rgb/components/lvgl/src/extra/widgets/animimg -IC:/gitrepo/wywy-s3-rgb/components/lvgl/src/extra/widgets/calendar -IC:/gitrepo/wywy-s3-rgb/components/lvgl/src/extra/widgets/chart -IC:/gitrepo/wywy-s3-rgb/components/lvgl/src/extra/widgets/colorwheel -IC:/gitrepo/wywy-s3-rgb/components/lvgl/src/extra/widgets/imgbtn -IC:/gitrepo/wywy-s3-rgb/components/lvgl/src/extra/widgets/keyboard -IC:/gitrepo/wywy-s3-rgb/components/lvgl/src/extra/widgets/led -IC:/gitrepo/wywy-s3-rgb/components/lvgl/src/extra/widgets/list -IC:/gitrepo/wywy-s3-rgb/components/lvgl/src/extra/widgets/menu -IC:/gitrepo/wywy-s3-rgb/components/lvgl/src/extra/widgets/meter -IC:/gitrepo/wywy-s3-rgb/components/lvgl/src/extra/widgets/msgbox -IC:/gitrepo/wywy-s3-rgb/components/lvgl/src/extra/widgets/span -IC:/gitrepo/wywy-s3-rgb/components/lvgl/src/extra/widgets/spinbox -IC:/gitrepo/wywy-s3-rgb/components/lvgl/src/extra/widgets/spinner -IC:/gitrepo/wywy-s3-rgb/components/lvgl/src/extra/widgets/tabview -IC:/gitrepo/wywy-s3-rgb/components/lvgl/src/extra/widgets/tileview -IC:/gitrepo/wywy-s3-rgb/components/lvgl/src/extra/widgets/win -IC:/gitrepo/wywy-s3-rgb/components/lvgl/src/draw/sw -IC:/gitrepo/wywy-s3-rgb/components/lvgl/porting -IC:/gitrepo/wywy-s3-rgb/components/lvgl/demos -IC:/gitrepo/wywy-s3-rgb/components/lvgl/demos/benchmark -IC:/gitrepo/wywy-s3-rgb/components/lvgl/demos/benchmark/assets -IC:/gitrepo/wywy-s3-rgb/components/lvgl/demos/keypad_encoder -IC:/gitrepo/wywy-s3-rgb/components/lvgl/demos/music -IC:/gitrepo/wywy-s3-rgb/components/lvgl/demos/music/assets -IC:/gitrepo/wywy-s3-rgb/components/lvgl/demos/stress -IC:/gitrepo/wywy-s3-rgb/components/lvgl/demos/stress/assets -IC:/gitrepo/wywy-s3-rgb/components/lvgl/demos/widgets -IC:/gitrepo/wywy-s3-rgb/components/lvgl/demos/widgets/assets -IC:/Espressif/frameworks/esp-idf-master/components/newlib/platform_include -IC:/Espressif/frameworks/esp-idf-master/components/freertos/FreeRTOS-Kernel/include -IC:/Espressif/frameworks/esp-idf-master/components/freertos/esp_additions/include/freertos -IC:/Espressif/frameworks/esp-idf-master/components/freertos/FreeRTOS-Kernel/portable/xtensa/include -IC:/Espressif/frameworks/esp-idf-master/components/freertos/esp_additions/include -IC:/Espressif/frameworks/esp-idf-master/components/esp_hw_support/include -IC:/Espressif/frameworks/esp-idf-master/components/esp_hw_support/include/soc -IC:/Espressif/frameworks/esp-idf-master/components/esp_hw_support/include/soc/esp32s3 -IC:/Espressif/frameworks/esp-idf-master/components/esp_hw_support/port/esp32s3/. -IC:/Espressif/frameworks/esp-idf-master/components/esp_hw_support/port/esp32s3/private_include -IC:/Espressif/frameworks/esp-idf-master/components/heap/include -IC:/Espressif/frameworks/esp-idf-master/components/log/include -IC:/Espressif/frameworks/esp-idf-master/components/soc/include -IC:/Espressif/frameworks/esp-idf-master/components/soc/esp32s3/. -IC:/Espressif/frameworks/esp-idf-master/components/soc/esp32s3/include -IC:/Espressif/frameworks/esp-idf-master/components/hal/esp32s3/include -IC:/Espressif/frameworks/esp-idf-master/components/hal/include -IC:/Espressif/frameworks/esp-idf-master/components/hal/platform_port/include -IC:/Espressif/frameworks/esp-idf-master/components/esp_rom/include -IC:/Espressif/frameworks/esp-idf-master/components/esp_rom/include/esp32s3 -IC:/Espressif/frameworks/esp-idf-master/components/esp_rom/esp32s3 -IC:/Espressif/frameworks/esp-idf-master/components/esp_common/include -IC:/Espressif/frameworks/esp-idf-master/components/esp_system/include -IC:/Espressif/frameworks/esp-idf-master/components/esp_system/port/soc -IC:/Espressif/frameworks/esp-idf-master/components/esp_system/port/include/private -IC:/Espressif/frameworks/esp-idf-master/components/xtensa/include -IC:/Espressif/frameworks/esp-idf-master/components/xtensa/esp32s3/include -IC:/Espressif/frameworks/esp-idf-master/components/lwip/include/apps -IC:/Espressif/frameworks/esp-idf-master/components/lwip/include/apps/sntp -IC:/Espressif/frameworks/esp-idf-master/components/lwip/lwip/src/include -IC:/Espressif/frameworks/esp-idf-master/components/lwip/port/esp32/include -IC:/Espressif/frameworks/esp-idf-master/components/lwip/port/esp32/include/arch -IC:/Espressif/frameworks/esp-idf-master/components/vfs/include -IC:/Espressif/frameworks/esp-idf-master/components/esp_wifi/include -IC:/Espressif/frameworks/esp-idf-master/components/esp_event/include -IC:/Espressif/frameworks/esp-idf-master/components/esp_netif/include -IC:/Espressif/frameworks/esp-idf-master/components/esp_eth/include -IC:/Espressif/frameworks/esp-idf-master/components/esp_phy/include -IC:/Espressif/frameworks/esp-idf-master/components/esp_phy/esp32s3/include -IC:/gitrepo/wywy-s3-rgb/components/bsp/include -IC:/Espressif/frameworks/esp-idf-master/components/driver/include -IC:/Espressif/frameworks/esp-idf-master/components/driver/deprecated -IC:/Espressif/frameworks/esp-idf-master/components/driver/esp32s3/include -IC:/Espressif/frameworks/esp-idf-master/components/esp_pm/include -IC:/Espressif/frameworks/esp-idf-master/components/esp_ringbuf/include -IC:/gitrepo/wywy-s3-rgb/components/i2c_bus/include -IC:/gitrepo/wywy-s3-rgb/components/i2c_devices/include -IC:/Espressif/frameworks/esp-idf-master/components/esp_lcd/include -IC:/Espressif/frameworks/esp-idf-master/components/esp_lcd/interface -IC:/gitrepo/wywy-s3-rgb/components/lcd/include -IC:/Espressif/frameworks/esp-idf-master/components/fatfs/diskio -IC:/Espressif/frameworks/esp-idf-master/components/fatfs/vfs -IC:/Espressif/frameworks/esp-idf-master/components/fatfs/src -IC:/Espressif/frameworks/esp-idf-master/components/wear_levelling/include -IC:/Espressif/frameworks/esp-idf-master/components/spi_flash/include -IC:/Espressif/frameworks/esp-idf-master/components/sdmmc/include -IC:/Espressif/frameworks/esp-idf-master/components/spiffs/include -mlongcalls -ffunction-sections -fdata-sections -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -gdwarf-4 -ggdb -Og -fmacro-prefix-map=C:/gitrepo/wywy-s3-rgb/examples/lvgl_demo=. -fmacro-prefix-map=C:/Espressif/frameworks/esp-idf-master=/IDF -fstrict-volatile-bitfields -Wno-error=unused-but-set-variable -fno-jump-tables -fno-tree-switch-conversion -DconfigENABLE_FREERTOS_DEBUG_OCDAWARE=1 -std=gnu99 -Wno-old-style-declaration -D_GNU_SOURCE -DIDF_VER=\"v5.0-dev-3290-g01d014c42d\" -DESP_PLATFORM -D_POSIX_READER_WRITER_LOCKS -MD -MT esp-idf/lvgl/CMakeFiles/__idf_lvgl.dir/porting/lv_port_disp.c.obj -MF esp-idf\lvgl\CMakeFiles\__idf_lvgl.dir\porting\lv_port_disp.c.obj.d -o esp-idf/lvgl/CMakeFiles/__idf_lvgl.dir/porting/lv_port_disp.c.obj -c C:/gitrepo/wywy-s3-rgb/components/lvgl/porting/lv_port_disp.c
C:/gitrepo/wywy-s3-rgb/components/lvgl/porting/lv_port_disp.c: In function 'lv_port_tick_init':
C:/gitrepo/wywy-s3-rgb/components/lvgl/porting/lv_port_disp.c:186:11: error: unknown type name 'esp_timer_create_args_t' const esp_timer_create_args_t periodic_timer_args = {
^~~~~~~~~~~~~~~~~~~~~~~
C:/gitrepo/wywy-s3-rgb/components/lvgl/porting/lv_port_disp.c:187:13: error: field name not in record or union initializer
.callback = lv_tick_inc_cb,
^
C:/gitrepo/wywy-s3-rgb/components/lvgl/porting/lv_port_disp.c:187:13: note: (near initialization for 'periodic_timer_args')
C:/gitrepo/wywy-s3-rgb/components/lvgl/porting/lv_port_disp.c:187:25: warning: initialization of 'int' from 'void (*)(void *)' makes integer from pointer without a cast [-Wint-conversion]
.callback = lv_tick_inc_cb,
^~~~~~~~~~~~~~
C:/gitrepo/wywy-s3-rgb/components/lvgl/porting/lv_port_disp.c:187:25: note: (near initialization for 'periodic_timer_args')
C:/gitrepo/wywy-s3-rgb/components/lvgl/porting/lv_port_disp.c:188:13: error: field name not in record or union initializer
.arg = &tick_inc_period_ms,
^
C:/gitrepo/wywy-s3-rgb/components/lvgl/porting/lv_port_disp.c:188:13: note: (near initialization for 'periodic_timer_args')
C:/gitrepo/wywy-s3-rgb/components/lvgl/porting/lv_port_disp.c:188:20: warning: excess elements in scalar initializer
.arg = &tick_inc_period_ms,
^
C:/gitrepo/wywy-s3-rgb/components/lvgl/porting/lv_port_disp.c:188:20: note: (near initialization for 'periodic_timer_args')
C:/gitrepo/wywy-s3-rgb/components/lvgl/porting/lv_port_disp.c:189:13: error: field name not in record or union initializer
.dispatch_method = ESP_TIMER_TASK,
^
C:/gitrepo/wywy-s3-rgb/components/lvgl/porting/lv_port_disp.c:189:13: note: (near initialization for 'periodic_timer_args')
C:/gitrepo/wywy-s3-rgb/components/lvgl/porting/lv_port_disp.c:189:32: error: 'ESP_TIMER_TASK' undeclared (first use in this function); did you mean 'ESP_RST_SW'?
.dispatch_method = ESP_TIMER_TASK,
^~~~~~~~~~~~~~
ESP_RST_SW
C:/gitrepo/wywy-s3-rgb/components/lvgl/porting/lv_port_disp.c:189:32: note: each undeclared identifier is reported only once for each function it appears in
C:/gitrepo/wywy-s3-rgb/components/lvgl/porting/lv_port_disp.c:189:32: warning: excess elements in scalar initializer
C:/gitrepo/wywy-s3-rgb/components/lvgl/porting/lv_port_disp.c:189:32: note: (near initialization for 'periodic_timer_args')
C:/gitrepo/wywy-s3-rgb/components/lvgl/porting/lv_port_disp.c:190:13: error: field name not in record or union initializer
.name = "", /* name is optional, but may help identify the timer when debugging */
^
C:/gitrepo/wywy-s3-rgb/components/lvgl/porting/lv_port_disp.c:190:13: note: (near initialization for 'periodic_timer_args')
C:/gitrepo/wywy-s3-rgb/components/lvgl/porting/lv_port_disp.c:190:21: warning: excess elements in scalar initializer
.name = "", /* name is optional, but may help identify the timer when debugging */
^~
C:/gitrepo/wywy-s3-rgb/components/lvgl/porting/lv_port_disp.c:190:21: note: (near initialization for 'periodic_timer_args')
C:/gitrepo/wywy-s3-rgb/components/lvgl/porting/lv_port_disp.c:191:13: error: field name not in record or union initializer
.skip_unhandled_events = true,
^
C:/gitrepo/wywy-s3-rgb/components/lvgl/porting/lv_port_disp.c:191:13: note: (near initialization for 'periodic_timer_args')
C:/gitrepo/wywy-s3-rgb/components/lvgl/porting/lv_port_disp.c:191:38: warning: excess elements in scalar initializer
.skip_unhandled_events = true,
^~~~
C:/gitrepo/wywy-s3-rgb/components/lvgl/porting/lv_port_disp.c:191:38: note: (near initialization for 'periodic_timer_args')
C:/gitrepo/wywy-s3-rgb/components/lvgl/porting/lv_port_disp.c:194:5: error: unknown type name 'esp_timer_handle_t'; did you mean 'gpio_isr_handle_t'?
esp_timer_handle_t periodic_timer;
^~~~~~~~~~~~~~~~~~
gpio_isr_handle_t
In file included from C:/gitrepo/wywy-s3-rgb/components/lvgl/porting/lv_port_disp.h:21,
from C:/gitrepo/wywy-s3-rgb/components/lvgl/porting/lv_port_disp.c:12:
C:/gitrepo/wywy-s3-rgb/components/lvgl/porting/lv_port_disp.c:195:21: error: implicit declaration of function 'esp_timer_create'; did you mean 'lv_timer_create'? [-Werror=implicit-function-declaration]
ESP_ERROR_CHECK(esp_timer_create(&periodic_timer_args, &periodic_timer));
^~~~~~~~~~~~~~~~
C:/Espressif/frameworks/esp-idf-master/components/esp_common/include/esp_err.h:116:30: note: in definition of macro 'ESP_ERROR_CHECK'
esp_err_t err_rc_ = (x); \
^
C:/gitrepo/wywy-s3-rgb/components/lvgl/porting/lv_port_disp.c:197:21: error: implicit declaration of function 'esp_timer_start_periodic'; did you mean 'lv_timer_set_period'? [-Werror=implicit-function-declaration]
ESP_ERROR_CHECK(esp_timer_start_periodic(periodic_timer, tick_inc_period_ms * 1000));
^~~~~~~~~~~~~~~~~~~~~~~~
C:/Espressif/frameworks/esp-idf-master/components/esp_common/include/esp_err.h:116:30: note: in definition of macro 'ESP_ERROR_CHECK'
esp_err_t err_rc_ = (x); \
^
cc1.exe: some warnings being treated as errors
This error may be because of your esp-idf version is different from mine. You can try to modify these two places:
This error may be because of your esp-idf version is different from mine.
The README only mentions the use the latest master
branch, which I did as mentioned in the first post above.
Which specific version did you use?
This error may be because of your esp-idf version is different from mine.
The README only mentions the use the latest
master
branch, which I did as mentioned in the first post above. Which specific version did you use?
I will update my esp-idf to the latest version later. You can try this method to solve this problem
The suggested changes did help to resolve the compile time errors. Thanks.
@itavero @W00ng HI , I am facing the same issue . Where from can I get the includes directory?
I'm on Windows 10, and I've just installed the latest
master
branch of the ESP-IDF on my system (commit hash01d014c42def8d0c19e1ce55c07de6761e092ffa
). From within an ESP-IDF 5.0 PowerShell terminal, I've cloned the repository and tried to build it using the following commands:Unfortunately this results in the following error:
How to resolve this? It seems that this repository is not working at the moment.