简体   繁体   English

yocto构建上的libva版本错误

[英]libva version error on yocto build

I was trying to build a Yocto Image for intel processor. 我试图为英特尔处理器构建Yocto映像。

I downloaded the latest source code of poky and then clone the meta-intel branch and added it to bblayers.conf file. 我下载了poky的最新源代码,然后克隆了meta-intel分支并将其添加到bblayers.conf文件中。

git clone git://git.yoctoproject.org/meta-intel

MACHINE = "intel-core2-32"

I started build with the following command 我开始使用以下命令进行构建

bitbake core-image-sato

And got the following error: 并得到以下错误:

configure: error: Package requirements (libva >= 1.1.0) were not met:
| 
| Requested 'libva >= 1.1.0' but version of libva is 0.40.0
| 
| Consider adjusting the PKG_CONFIG_PATH environment variable if you
| installed software in a non-standard prefix.
| 

I have the following recipe in this folder meta/recipes-graphics/libva/libva_1.8.3.bb 我在此文件夹中有以下配方meta / recipes-graphics / libva / libva_1.8.3.bb

It means the version should be 1.8.3 instead of 0.4.0 这意味着版本应为1.8.3而不是0.4.0

The version of libva that configure is looking for (in some recipe you didn't name) is the API version. 配置要查找的libva版本(在某些您没有命名的配方中)是API版本。 This is not necessarily the same as the package version. 这不一定与软件包版本相同。 libva is one of the examples where package/recipe version and API version are not too related. libva是其中包/食谱版本与API版本不太相关的示例之一。

libva 1.x provides API version 0.y . libva 1.x提供API版本0.y。 Yes, it's weird. 是的,很奇怪。

Your real problem is here: 您的真正问题在这里:

I downloaded the latest source code of poky and then clone the meta-intel branch 我下载了poky的最新源代码,然后克隆了meta-intel分支

meta-intel is not a branch, it's a layer and git repo. meta-intel不是分支,而是层和git repo。 If you did not specifically change the branch of that git repo, you are using master. 如果您没有专门更改该git repo的分支,则您使用的是master。 This is typically not compatible with release versions of poky. 这通常与poky的发行版本不兼容。

If you want to keep using the poky release you've downloaded, you must checkout the matching release branch/tag in meta-intel. 如果您想继续使用已下载的发布版本,则必须在meta-intel中签出匹配的发布分支/标签。

This is not required to fix your issue but I would suggest using git to get all of your layers, poky included. 这不是解决您的问题所必需的,但是我建议您使用git来获取所有包含poky的图层。 That way it's easy to pick the branches you want (and the method to do that is the same for all layers) and also easier to upgrade when eg there's a bug fix release to poky... 这样,很容易选择想要的分支(所有层的实现方法都是相同的),并且当有错误修复版本发布时,也更容易升级。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM