[yocto] Error: QA issue package contains bad RPATH and do_package fails

Zafrullah Syed zafrullahmehdi at gmail.com
Thu Jan 16 12:55:22 PST 2014


Hello,

I am trying to build a custom recipe but running into problems with build.

my bitbake custom recipe is as follows:

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

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 as follows:

ERROR: QA Issue: package apriltags contains bad RPATH
/home/siguser/yocto-28-11/build/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/apriltags/0.1-r12/git/build/lib
in file
/home/siguser/yocto-28-11/build/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/apriltags/0.1-r12/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/siguser/yocto-28-11/build/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/apriltags/0.1-r12/temp/log.do_package.27014
ERROR: Task 736
(/home/siguser/yocto-28-11/poky/meta-bebot/recipes-bebot/apriltags/
apriltags_0.1.bb, do_package) failed with exit code '1'
NOTE: Tasks Summary: Attempted 5449 tasks of which 5440 didn't need to be
rerun and 1 failed.
No currently running tasks (5449 of 5455)

Summary: 1 task failed:
  /home/siguser/yocto-28-11/poky/meta-bebot/recipes-bebot/apriltags/
apriltags_0.1.bb, do_package


Bitbake error points to this rpath(line 319):

https://github.com/zafrullahsyed/apriltags/blob/master/cmake/pods.cmake

# abuse RPATH
        if(${CMAKE_INSTALL_RPATH})
            set(CMAKE_INSTALL_RPATH
${LIBRARY_INSTALL_PATH}:${CMAKE_INSTALL_RPATH})
        else(${CMAKE_INSTALL_RPATH})
            set(CMAKE_INSTALL_RPATH ${LIBRARY_INSTALL_PATH})
        endif(${CMAKE_INSTALL_RPATH})

        # for osx, which uses "install name" path rather than rpath
        #set(CMAKE_INSTALL_NAME_DIR ${LIBRARY_OUTPUT_PATH})

        set(CMAKE_INSTALL_NAME_DIR ${CMAKE_INSTALL_RPATH}


Any ideas where I am doing wrong?

-- 
Regards,
Zafrullah Syed
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20140116/866b0da0/attachment.html>


More information about the yocto mailing list