CMake Error at G:~/cmake/build.cmake:552 (message): ERROR: The “path“ field in the manifest file

一、环境

VScode、ESP-idf组件

二、完整报错展示

在使用SDK配置编辑器时发生如下错误

---------------------------ERROR--------------------------

CMake Error at G:/app/esp-idf/531/Espressif/frameworks/esp-idf-v5.3.1/tools/cmake/build.cmake:552 (message):

  ERROR: The "path" field in the manifest file

  "G:\app\esp-idf\Espressif\frameworks\esp-idf-v5.3.1\examples\common_components\protocol_examples_common\idf_component.yml"

  does not point to a directory.  You can safely remove this field from the

  manifest if this project is an example copied from a component repository.

  The dependency will be downloaded from the ESP component registry.

  Documentation:

  https://docs.espressif.com/projects/idf-component-manager/en/latest/reference/manifest_file.html#override-path

Call Stack (most recent call first):

-----------------------END OF ERROR-----------------------

---------------------------ERROR--------------------------

  G:/app/esp-idf/531/Espressif/frameworks/esp-idf-v5.3.1/tools/cmake/project.cmake:710 (idf_build_process)

  CMakeLists.txt:6 (project)

-----------------------END OF ERROR-----------------------

三、原因分析

错误发生在“idf_component.yml”文件中的 “protocol_examples_tapif_io”和“protocol_examples_common” 组件的路径跟实际idf安装位置不一致。因为项目需要从idf安装文件里获取组件,由于我idf安装位置发生了变化,导致路径失效,CMake无法找到目录。

四、操作

将“idf_component.yml”文件中的地址修改即可。

修改前:

修改后:

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值