LVGL例程编译报错

ivorlin
Posts: 4
Joined: Fri Apr 08, 2022 11:30 am

LVGL例程编译报错

Postby ivorlin » Fri Apr 08, 2022 12:15 pm

ESP-IDF v4.4的LCD外设lvgl例程直接build会报错(其他例程能够正常编译和烧录)
使用的是ESP32S2和VScode集成IDE,报错主要内容如下:

CMake Warning at E:/Softwares/ESP/Container/esp-idf/tools/cmake/build.cmake:482 (message):
"idf_component.yml" file was found for components:

E:/ESP32_Projects/S2_demo/lvgl/main

However, the component manager is not enabled.
Call Stack (most recent call first):
E:/Softwares/ESP/Container/esp-idf/tools/cmake/project.cmake:378 (idf_build_process)
CMakeLists.txt:4 (project)

-- Could NOT find Perl (missing: PERL_EXECUTABLE)

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

ESP_morris
Posts: 290
Joined: Wed Sep 05, 2018 6:23 am

Re: LVGL例程编译报错

Postby ESP_morris » Mon Apr 11, 2022 6:07 am

报错信息已经提示 However, the component manager is not enabled.

这个是 vscode 插件默认没有使能component manager导致的,插件未来会升级,默认会打开这个选项。

暂且你可以 在 .vscode/setting.json 中加上这行: idf.enableIdfComponentManager: true

ivorlin
Posts: 4
Joined: Fri Apr 08, 2022 11:30 am

Re: LVGL例程编译报错

Postby ivorlin » Mon Apr 18, 2022 1:58 am

现在已通过idf.py的命令行解决,感谢!

Who is online

Users browsing this forum: No registered users and 45 guests