bitbake在do_package_qa错误时失败了吗?

时间:2014-01-22 22:57:55

标签: embedded-linux bitbake gumstix

我正在尝试编写自己的自定义配方。我正在使用Yocto Project和Bitbake。

给定bitbake apriltags命令时,以下包执行以下操作并在do_package

处抛出错误

它成功完成了以下任务:

do_fetch
unpack
do_compile

然后在do_package

失败

在我的/yocto/build/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/apriltags/0.1-r4/git/build/lib中,有pkgconfig.pclibapriltags.a导致错误。

我的包裹食谱:

DESCRIPTION = "Apriltags application" 
SECTION = "examples" 
LICENSE = "CLOSED" 
PR = "r3" 

DEPENDS = "opencv"

SRC_URI = "git://github.com/zafrullahsyed/apriltags.git;protocol=https;tag=v0.1"

S = "${WORKDIR}/git"

inherit pkgconfig autotools

do_install() {
    install -d ${D}${bindir}
    install -m 0755 ${WORKDIR}/git/build/bin/apriltags_demo ${D}${bindir}
}

我的错误如下:

ERROR: QA Issue: package apriltags contains bad RPATH /home/zaif/yocto/build/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/apriltags/0.1-r3/git/build/lib in file /home/zaif/yocto/build/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/apriltags/0.1-r3/packages-split/apriltags/usr/bin/apriltags_demo
ERROR: QA run found fatal errors. Please consider fixing them.
ERROR: Function failed: do_package_qa
ERROR: Logfile of failure stored in: /home/zaif/yocto/build/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/apriltags/0.1-r3/temp/log.do_package.21621
ERROR: Task 10 (/home/zaif/yocto/poky/meta-bebot/recipes-bebot/apriltags/apriltags_0.1.bb, do_package) failed with exit code '1'

2 个答案:

答案 0 :(得分:1)

Apriltags具有依赖关系,需要根据您正在处理的计算机进行修改。

您需要相应地拥有requiresLibsCflags的值。同时验证您是否需要python pod packages

答案 1 :(得分:0)

我的软件包Apriltags在AprilTags / cmake / pods.cmake中具有不良依赖性,例如Eigen3(默认),而OE eigen3软件包是libeigen。硬编码了需求,Libs和Cflags,还删除了不需要的python pod包。


pods.cmake:

"Name: ${pc_name}\n"
        "Description: ${pc_description}\n"
        "Requires: ${libeigen}\n"
 #       "Version: ${pc_version}\n"
        "Libs: -L\${bindir} ${pc_libs}\n"
        "Cflags: -I\${bindir} ${pc_cflags}\n")

我的食谱如下:

DESCRIPTION = "Apriltags application" 
SECTION = "examples" 
LICENSE = "CLOSED" 
PR = "r5" 

DEPENDS = "opencv"

SRC_URI = "git://github.com/zafrullahsyed/apriltags.git;protocol=https;tag=v0.3"

S = "${WORKDIR}/git"

inherit pkgconfig autotools

do_install() {
    install -d ${D}${bindir}
    install -m 0755 ${WORKDIR}/git/build/bin/apriltags_demo ${D}${bindir}
}