Yocto Project Boost库:更改位烘焙食谱中使用的默认软件包版本 [英] Yocto Project Boost library : Change default package version used in bitbake recipe
问题描述
我正在使用 Yocto Project 开发 Linux映像操作系统.
I am developing a Linux image operating system using Yocto Project.
我正在使用 SUMO 分支( Yocto Project 2.5 ).
为了在Linux映像中安装 boost库,我将此行添加到了 local.conf 文件中:
In order to install the boost library in my Linux image, I added this line to the local.conf file :
IMAGE_INSTALL_append = " boost"
但是我发现安装的默认版本是 Boost 1.66.0 .
But I discover that the default version installed is Boost 1.66.0.
在 meta/recipes-support/boost 目录下,我可以找到三个文件:
Under meta/recipes-support/boost directory I can find three files :
-
recipes-support/boost/boost_1.66.0.bb
recipes-support/boost/boost_1.66.0.bb
recipes-support/boost/boost-1.66.0.inc
recipes-support/boost/boost-1.66.0.inc
recipes-support/boost/boost.inc
recipes-support/boost/boost.inc
我认为这些是该库的食谱.
I think that those are the recipes for this library.
我需要使用 1.70.0版,因为我有一个使用此版本编码的应用程序.
I need to use version 1.70.0 because I have an application coded using this version.
我不知道如何修改这些配方以具有所需的版本,还是有另一种使用方法?我在互联网上找不到任何有用的提示.你能帮我吗 ?
I don't know how to modify these recipes in order to have the desired version, or is there another method to use ? I don't find any helpful tips on the internet. Can you help me please ?
谢谢!
推荐答案
看一下开放式嵌入层索引.在那里,您将找到提升1.72的秘诀.如果此食谱不依赖于系统的任何其他组件(例如gcc版本),则可以在之后,通过添加 PREFERED_VERSION_boost ="1.72来设置用于Boost的首选版本.0"
到文件,然后重新运行bitbake.
take a look at the openembedded layer index. There you'll find the recipe for boost 1.72. If this recipe doesn't depend on any other components of your system (like gcc version), you'll be able to add this recipe in your own layer. Then, in your build/local.conf
, after IMAGE_INSTALL_append = "<YOUR_OTHER_PGS> boost"
set the preferred version for boost by adding PREFERED_VERSION_boost="1.72.0"
to the file and rerun bitbake.
我希望这会有所帮助.
这篇关于Yocto Project Boost库:更改位烘焙食谱中使用的默认软件包版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!