lvgl example project unable to build in espidf 4.4 eclipse

sirOwlBeak
Posts: 2
Joined: Mon May 09, 2022 9:13 am

lvgl example project unable to build in espidf 4.4 eclipse

Postby sirOwlBeak » Mon May 09, 2022 9:33 am

Hi,

I had succesful builds and uploads with various example projects (ie, the provision examples and tcp stack demo) but the example project for lvgl is unable to build for me, this leads me to the following output

[Codebox]
Building in: C:\Users\User\Documents\ESP32\Workspaces\Display\lvgl\build
Configuring in: C:\Users\User\Documents\ESP32\Workspaces\Display\lvgl\build
cmake -G Ninja -DCMAKE_TOOLCHAIN_FILE=C:\Users\User\esp\esp-idf\tools\cmake\toolchain-esp32.cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCCACHE_ENABLE=1 -DIDF_TARGET=esp32 C:\Users\User\Documents\ESP32\Workspaces\Display\lvgl
-- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.30.0.windows.2")
CMake Error at C:/Users/User/esp/esp-idf/tools/cmake/component.cmake:369 (__component_get_property):
__component_get_property Function invoked with incorrect arguments for
function named: __component_get_property
Call Stack (most recent call first):
CMakeLists.txt:8 (idf_component_get_property)


CMake Error at CMakeLists.txt:9 (target_compile_options):
Cannot specify compile options for target "PRIVATE" which is not built by
this project.


-- ccache will be used for faster recompilation
-- The C compiler identification is GNU 8.4.0
-- The CXX compiler identification is GNU 8.4.0
-- The ASM compiler identification is GNU
-- Found assembler: C:/Users/User/.espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Users/User/.espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Users/User/.espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Project is not inside a git repository, or git repository has no commits; will not use 'git describe' to determine PROJECT_VER.
-- Building ESP-IDF components for target esp32
-- Checking Python dependencies...
Python requirements from C:\Users\User\esp\esp-idf\requirements.txt are satisfied.
CMake Warning at C:/Users/User/esp/esp-idf/tools/cmake/build.cmake:482 (message):
"idf_component.yml" file was found for components:

C:/Users/User/Documents/ESP32/Workspaces/Display/lvgl/main

However, the component manager is not enabled.
Call Stack (most recent call first):
C:/Users/User/esp/esp-idf/tools/cmake/project.cmake:378 (idf_build_process)
CMakeLists.txt:11 (project)


-- Project sdkconfig file C:/Users/User/Documents/ESP32/Workspaces/Display/lvgl/sdkconfig
Loading defaults file C:/Users/User/Documents/ESP32/Workspaces/Display/lvgl/sdkconfig.defaults...
-- Found Python3: C:/Users/User/.espressif/python_env/idf4.4_py3.9_env/Scripts/python.exe (found version "3.9.12") found components: Interpreter
-- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS
-- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS - Success
-- App "lvgl" version: 1
-- Adding linker script C:/Users/User/Documents/ESP32/Workspaces/Display/lvgl/build/esp-idf/esp_system/ld/memory.ld
-- Adding linker script C:/Users/User/esp/esp-idf/components/esp_system/ld/esp32/sections.ld.in
-- Adding linker script C:/Users/User/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.ld
-- Adding linker script C:/Users/User/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.api.ld
-- Adding linker script C:/Users/User/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.libgcc.ld
-- Adding linker script C:/Users/User/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-data.ld
-- Adding linker script C:/Users/User/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.syscalls.ld
-- Adding linker script C:/Users/User/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-funcs.ld
-- Adding linker script C:/Users/User/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-time.ld
-- Adding linker script C:/Users/User/esp/esp-idf/components/soc/esp32/ld/esp32.peripherals.ld
-- Components: app_trace app_update asio bootloader bootloader_support bt cbor cmock coap console cxx driver efuse esp-tls esp32 esp_adc_cal esp_common esp_eth esp_event esp_gdbstub esp_hid esp_http_client esp_http_server esp_https_ota esp_https_server esp_hw_support esp_ipc esp_lcd esp_local_ctrl esp_netif esp_phy esp_pm esp_ringbuf esp_rom esp_serial_slave_link esp_system esp_timer esp_websocket_client esp_wifi espcoredump esptool_py expat fatfs freemodbus freertos hal heap idf_test ieee802154 jsmn json libsodium log lwip main mbedtls mdns mqtt newlib nghttp nvs_flash openssl openthread partition_table perfmon protobuf-c protocomm pthread sdmmc soc spi_flash spiffs tcp_transport tcpip_adapter tinyusb ulp unity usb vfs wear_levelling wifi_provisioning wpa_supplicant xtensa
-- Component paths: C:/Users/User/esp/esp-idf/components/app_trace C:/Users/User/esp/esp-idf/components/app_update C:/Users/User/esp/esp-idf/components/asio C:/Users/User/esp/esp-idf/components/bootloader C:/Users/User/esp/esp-idf/components/bootloader_support C:/Users/User/esp/esp-idf/components/bt C:/Users/User/esp/esp-idf/components/cbor C:/Users/User/esp/esp-idf/components/cmock C:/Users/User/esp/esp-idf/components/coap C:/Users/User/esp/esp-idf/components/console C:/Users/User/esp/esp-idf/components/cxx C:/Users/User/esp/esp-idf/components/driver C:/Users/User/esp/esp-idf/components/efuse C:/Users/User/esp/esp-idf/components/esp-tls C:/Users/User/esp/esp-idf/components/esp32 C:/Users/User/esp/esp-idf/components/esp_adc_cal C:/Users/User/esp/esp-idf/components/esp_common C:/Users/User/esp/esp-idf/components/esp_eth C:/Users/User/esp/esp-idf/components/esp_event C:/Users/User/esp/esp-idf/components/esp_gdbstub C:/Users/User/esp/esp-idf/components/esp_hid C:/Users/User/esp/esp-idf/components/esp_http_client C:/Users/User/esp/esp-idf/components/esp_http_server C:/Users/User/esp/esp-idf/components/esp_https_ota C:/Users/User/esp/esp-idf/components/esp_https_server C:/Users/User/esp/esp-idf/components/esp_hw_support C:/Users/User/esp/esp-idf/components/esp_ipc C:/Users/User/esp/esp-idf/components/esp_lcd C:/Users/User/esp/esp-idf/components/esp_local_ctrl C:/Users/User/esp/esp-idf/components/esp_netif C:/Users/User/esp/esp-idf/components/esp_phy C:/Users/User/esp/esp-idf/components/esp_pm C:/Users/User/esp/esp-idf/components/esp_ringbuf C:/Users/User/esp/esp-idf/components/esp_rom C:/Users/User/esp/esp-idf/components/esp_serial_slave_link C:/Users/User/esp/esp-idf/components/esp_system C:/Users/User/esp/esp-idf/components/esp_timer C:/Users/User/esp/esp-idf/components/esp_websocket_client C:/Users/User/esp/esp-idf/components/esp_wifi C:/Users/User/esp/esp-idf/components/espcoredump C:/Users/User/esp/esp-idf/components/esptool_py C:/Users/User/esp/esp-idf/components/expat C:/Users/User/esp/esp-idf/components/fatfs C:/Users/User/esp/esp-idf/components/freemodbus C:/Users/User/esp/esp-idf/components/freertos C:/Users/User/esp/esp-idf/components/hal C:/Users/User/esp/esp-idf/components/heap C:/Users/User/esp/esp-idf/components/idf_test C:/Users/User/esp/esp-idf/components/ieee802154 C:/Users/User/esp/esp-idf/components/jsmn C:/Users/User/esp/esp-idf/components/json C:/Users/User/esp/esp-idf/components/libsodium C:/Users/User/esp/esp-idf/components/log C:/Users/User/esp/esp-idf/components/lwip C:/Users/User/Documents/ESP32/Workspaces/Display/lvgl/main C:/Users/User/esp/esp-idf/components/mbedtls C:/Users/User/esp/esp-idf/components/mdns C:/Users/User/esp/esp-idf/components/mqtt C:/Users/User/esp/esp-idf/components/newlib C:/Users/User/esp/esp-idf/components/nghttp C:/Users/User/esp/esp-idf/components/nvs_flash C:/Users/User/esp/esp-idf/components/openssl C:/Users/User/esp/esp-idf/components/openthread C:/Users/User/esp/esp-idf/components/partition_table C:/Users/User/esp/esp-idf/components/perfmon C:/Users/User/esp/esp-idf/components/protobuf-c C:/Users/User/esp/esp-idf/components/protocomm C:/Users/User/esp/esp-idf/components/pthread C:/Users/User/esp/esp-idf/components/sdmmc C:/Users/User/esp/esp-idf/components/soc C:/Users/User/esp/esp-idf/components/spi_flash C:/Users/User/esp/esp-idf/components/spiffs C:/Users/User/esp/esp-idf/components/tcp_transport C:/Users/User/esp/esp-idf/components/tcpip_adapter C:/Users/User/esp/esp-idf/components/tinyusb C:/Users/User/esp/esp-idf/components/ulp C:/Users/User/esp/esp-idf/components/unity C:/Users/User/esp/esp-idf/components/usb C:/Users/User/esp/esp-idf/components/vfs C:/Users/User/esp/esp-idf/components/wear_levelling C:/Users/User/esp/esp-idf/components/wifi_provisioning C:/Users/User/esp/esp-idf/components/wpa_supplicant C:/Users/User/esp/esp-idf/components/xtensa
-- Configuring incomplete, errors occurred!
See also "C:/Users/User/Documents/ESP32/Workspaces/Display/lvgl/build/CMakeFiles/CMakeOutput.log".
cmake --build . -- -v
ninja: error: loading 'build.ninja': Het systeem kan het opgegeven bestand niet vinden.


Build complete (0 errors, 0 warnings): C:\Users\User\Documents\ESP32\Workspaces\Display\lvgl\build
C:\Users\User\.espressif\python_env\idf4.4_py3.9_env\Scripts\python.exe C:\Users\User\esp\esp-idf\tools\idf_size.py C:/Users/User/Documents/ESP32/Workspaces/Display/lvgl/build/lvgl.map
C:\Users\User\.espressif\python_env\idf4.4_py3.9_env\Scripts\python.exe C:\Users\User\esp\esp-idf/components/partition_table/gen_esp32part.py C:/Users/User/Documents/ESP32/Workspaces/Display/lvgl/build/partition_table/partition-table.bin
Total time taken to build the project: 9.977 ms
[/Codebox]

I understand that first symptom of this bug originates in the CMakeLists.txt file and more specifically, the documented fix. However, I understand very little so far from the actual building system to comfortably know how to present correct arguments to CMake.

Is anyone more knowledgeable than me able to shed light on this, if a quick fix exists could you point me in right direction. This is an exploration for a display technology for a production run. Hope I can get this to work with the esp stack

thank you very much

ESP_Sprite
Posts: 8884
Joined: Thu Nov 26, 2015 4:08 am

Re: lvgl example project unable to build in espidf 4.4 eclipse

Postby ESP_Sprite » Tue May 10, 2022 3:53 am

I think this gives a hint:
CMake Warning at C:/Users/User/esp/esp-idf/tools/cmake/build.cmake:482 (message):
"idf_component.yml" file was found for components:

C:/Users/User/Documents/ESP32/Workspaces/Display/lvgl/main

However, the component manager is not enabled.
I don't have enough experience with IDEs to fix this, but perhaps this can help?

(Altijd grappig om Nederlandse foutcodes te zien in een berg Engelse tekst, trouwens)

sirOwlBeak
Posts: 2
Joined: Mon May 09, 2022 9:13 am

Re: lvgl example project unable to build in espidf 4.4 eclipse

Postby sirOwlBeak » Tue May 24, 2022 1:30 pm

a bit of a late reply on my side,

For now, i did not bother with the lvgl sample. After a bit of looking around, I found some example code to specifically drive the lcd i had in mind of targetting. Which now works pretty decent for the time being. However, i am sure that the link to the build system explanation will come in handy later. So thanks for that resource.

thank you for the trouble of replying, and yes, i am from Belgium :)

Who is online

Users browsing this forum: No registered users and 14 guests