Page 1 of 1

LVGL例程编译报错

Posted: Fri Apr 08, 2022 12:15 pm
by ivorlin
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.

Re: LVGL例程编译报错

Posted: Mon Apr 11, 2022 6:07 am
by ESP_morris
报错信息已经提示 However, the component manager is not enabled.

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

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

Re: LVGL例程编译报错

Posted: Mon Apr 18, 2022 1:58 am
by ivorlin
现在已通过idf.py的命令行解决,感谢!