采用espressif/esp_lvgl_port v2.3.1下examples中的rgb_lcd创建项目:
1、使用idf工具创建:idf.py create-project-from-example "espressif/esp_lvgl_port^2.3.1:rgb_lcd"
2、idf.py set-target esp32s3时出错。提示:Unknown CMake command "lvgl_port_create_c_image",第1步项目创建后,本地没做任何改动,无解中....!具体部分输出如下:
...
Processing 5 dependencies:
[1/5] espressif/esp_lcd_touch (1.1.2)
[2/5] espressif/esp_lcd_touch_gt1151 (1.0.5~2)
[3/5] espressif/esp_lvgl_port (1.4.0) from file:///D:/Espressif/registry
[4/5] idf (5.2.2)
[5/5] lvgl/lvgl (8.4.0) from file:///D:/Espressif/registry
-- Project sdkconfig file D:/esp_proj/ruixing_ev_board/examples/rgb_lcd/sdkconfig
Loading defaults file D:/esp_proj/ruixing_ev_board/examples/rgb_lcd/sdkconfig.defaults...
-- Compiler supported targets: xtensa-esp-elf
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of time_t
-- Check size of time_t - done
-- Found Python3: D:/Espressif/python_env/idf5.2_py3.11_env/Scripts/python.exe (found version "3.11.2") found components: Interpreter
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS
-- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS - Success
-- App "rgb_lcd" version: 1
-- Adding linker script D:/esp_proj/ruixing_ev_board/examples/rgb_lcd/build/esp-idf/esp_system/ld/memory.ld
-- Adding linker script D:/esp_proj/ruixing_ev_board/examples/rgb_lcd/build/esp-idf/esp_system/ld/sections.ld.in
-- Adding linker script D:/Espressif/frameworks/esp-idf-v5.2.2/components/esp_rom/esp32s3/ld/esp32s3.rom.ld
-- Adding linker script D:/Espressif/frameworks/esp-idf-v5.2.2/components/esp_rom/esp32s3/ld/esp32s3.rom.api.ld
-- Adding linker script D:/Espressif/frameworks/esp-idf-v5.2.2/components/esp_rom/esp32s3/ld/esp32s3.rom.libgcc.ld
-- Adding linker script D:/Espressif/frameworks/esp-idf-v5.2.2/components/esp_rom/esp32s3/ld/esp32s3.rom.newlib.ld
-- Adding linker script D:/Espressif/frameworks/esp-idf-v5.2.2/components/esp_rom/esp32s3/ld/esp32s3.rom.version.ld
-- Adding linker script D:/Espressif/frameworks/esp-idf-v5.2.2/components/soc/esp32s3/ld/esp32s3.peripherals.ld
CMake Error at main/CMakeLists.txt:4 (lvgl_port_create_c_image):
Unknown CMake command "lvgl_port_create_c_image".
-- Configuring incomplete, errors occurred!
有碰到此问题的朋友吗?
通过官方examples创建RGB_LCD项目出错,求救!
-
- Posts: 20
- Joined: Mon Nov 07, 2022 8:22 am
Re: 通过官方examples创建RGB_LCD项目出错,求救!
可依赖的lvgl版本太低?换成lvgl9.2的版本,cmake就能正常处理lvgl_port_create_c_image函数.将PNG图片生成C数组图像。
Who is online
Users browsing this forum: No registered users and 136 guests