我正在尝试 运行 这个命令 "bitbake-layers show-recipes"

I'm trying to run this command "bitbake-layers show-recipes"

我正在尝试在我的 linux 系统中设置 Yocto 项目。我添加了两层,指向 Yocto poky 文件夹之外。

我正在按照此处的构建步骤进行操作:

https://www.yoctoproject.org/docs/2.7/brief-yoctoprojectqs/brief-yoctoprojectqs.html

我正在尝试运行以下命令“bitbake-layers show-recipes 'ara-'*

我遇到了这个错误

错误:解析时发生扩展错误 /home/XXX/YYYYY/codebase/apd-source/meta-openembedded/meta-oe/recipes-support/syslog-ng/syslog-ng_3.6.4.bb

但我期待这样的输出:

***解析食谱..完成.

=== 匹配食谱:===

ara-com-示例:

元 ara 1.0.0

ara-com-fusion-示例:

元 ara 1.0.0

ara-com-gen:***

。 . . . .

此错误表明 bitabake 未能解析配方,可能是由于配方中的语法错误。但是即使我的食谱没有任何错误,我也遇到过这个问题。老实说,他们不知道为什么会这样,这可能是构建环境的一些问题。不确定。

这种情况,你可以试试

1. Remove the build directory and also ssttate cache directory.
2. Execute the setup environment script and rebuild 

尝试执行上述步骤并检查问题是否已解决。在此之前,请确保 syslog_ng 配方中没有任何语法错误,检查您的图层或任何其他图层中是否有 syslog_ng 的任何 bbappend recieps 并且它们没有任何语法错误。