关于官方lvgl样例生成失败的疑惑

misaka_
Posts: 2
Joined: Sat Jul 23, 2022 12:59 pm

关于官方lvgl样例生成失败的疑惑

Postby misaka_ » Sat Jul 23, 2022 1:16 pm

无论是vscode环境还是espressif都重装了很多遍,但是始终会在生成的时候出现以下问题:

CMake Error at C:/Users/CHUAN/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 "CONFIG_IDF_CMAKE" which is not
built by this project.

同时,执行 idf.py reconfigure命令时,也会有:

CMake Error at CMakeLists.txt:5 (message):
Current directory 'C:/Espressif/frameworks/esp-idf-v4.4.1' is not
buildable. Change directories to one of the example projects in
'C:/Espressif/frameworks/esp-idf-v4.4.1/examples' and try again.

的问题,新手入门,求大佬们教教qwq

ESP_Gargamel
Posts: 786
Joined: Wed Nov 14, 2018 8:45 am

Re: 关于官方lvgl样例生成失败的疑惑

Postby ESP_Gargamel » Mon Jul 25, 2022 1:11 am

请详述你的过程,当前只看到错误 log,没有看到你是如何操作的。
“官方lvgl样例”具体是指哪个?
错误 log 中有:

Code: Select all

Current directory 'C:/Espressif/frameworks/esp-idf-v4.4.1' is not
buildable.
不能在 idf 目录下用 idf.py reconfigure,log 也告诉该如何操作:

Code: Select all

Change directories to one of the example projects in
'C:/Espressif/frameworks/esp-idf-v4.4.1/examples' and try again.
请到具体示例下去使用 idf.py xxxx

misaka_
Posts: 2
Joined: Sat Jul 23, 2022 12:59 pm

Re: 关于官方lvgl样例生成失败的疑惑

Postby misaka_ » Mon Jul 25, 2022 3:41 am

具体的创建过程即F1打开示例项目,选择lcd下lvgl然后不做任何更改直接build(vscode),这样其他示例如blink都可行,但lvgl就会出现上述错误

ESP_Gargamel
Posts: 786
Joined: Wed Nov 14, 2018 8:45 am

Re: 关于官方lvgl样例生成失败的疑惑

Postby ESP_Gargamel » Mon Jul 25, 2022 11:19 am

[ctrl + ,] 调出 设置,idf.enableIdfComponentManager 勾选上。

你的 log 没有给全,前面应该是有 “However, the component manager is not enabled.” 这样的信息。

Who is online

Users browsing this forum: No registered users and 47 guests