【发布时间】:2015-03-01 10:40:34
【问题描述】:
我正在使用 Yocto,我只想在我的项目中集成一个新库。
我创建了一个新的配方名称“libxerces”,其中包含一个文件“libxerces-3.1.1.bb”。 bb 文件非常简单,因为它是基于 autotools 的:
DESCRIPTION = "Xerces-c is a validating xml parser written in C++"
HOMEPAGE = "http://xerces.apache.org/xerces-c/"
PRIORITY = "optional"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
PR = "r1"
SRC_URI = "http://mirror.bit.edu.cn/apache//xerces/c/3/sources/xerces-c-${PV}.tar.gz"
s="${WORKDIR}/xerces-c-${PV}"
inherit autotools pkgconfig
SRC_URI[md5sum] = "6a8ec45d83c8cfb1584c5a5345cb51ae"
SRC_URI[sha256sum] = "a42785f71e0b91d5fd273831c87410ce60a73ccfdd207de1b805d26d44968736"
PACKAGES =+ "${PN}-utils"
FILES_${PN} = "${libdir}/*.so"
FILES_${PN}-utils = "${bindir}/*"
FILES_${PN}-staticdev = "${libdir}/*.a"*
BBCLASSEXTEND += "native"
我使用 IMAGE_INSTALL += "libxerces" 将 "libxerces" 添加到我的 bb 图像中。然后,我尝试通过 bitbake my-image-test 构建我的图像,并且一切都正确完成,但 libxerces 返回错误,因为它无法安装。但是,我注意到 libxerces-dbg、libxerces-utils、libxerces-samples 在 /tmp/work/deploy/ipk 下可见。我知道 libxml2 默认集成到 poky 层中,但我必须使用 xerces ..
【问题讨论】:
标签: linux autotools xerces-c recipe yocto