[yocto] Function failed: do_package_qa

Burton, Ross ross.burton at intel.com
Mon Mar 12 06:44:44 PDT 2018


On 12 March 2018 at 13:35, Outback Dingo <outbackdingo at gmail.com> wrote:

> Well heres the dltwrapper bb file it appears to build fine
> #
> # This file was derived from the 'Hello World!' example recipe in the
> # Yocto Project Development Manual.
> #
>
> DESCRIPTION = "DLT Wrapper"
> SECTION = "examples"
> DEPENDS = "boost libusb1 dlt-daemon"
> LICENSE = "COMPANY_COMMON_LICENSES"
> LIC_FILES_CHKSUM =
> "file://${COMPANY_COMMON_LICENSES}/LICENSE;md5=
> 18f1f6bf24836561f3a65cef19477d20"
>
> TARGET_CFLAGS += "-std=gnu++14"
>
> Just use CFLAGS


> # This tells bitbake where to find the files we're providing on the
> local filesystem
> FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
>

Redundant, remove this


> FILES_${PN} += "${includedir}/*"
>

Wrong, includedir goes into PN-dev.  This is the default, so remove this.


> inherit autotools gettext cmake
>

Does DLT wrapper use autotools or cmake? It can't use both.  Does it need
to inherit gettext?


> do_install() {
> install -d ${D}${libdir}
> install -d ${D}${includedir}
> install -m 0755 ${WORKDIR}/build/libDLTWrapper.so ${D}${libdir}
> install -m 0755 ${WORKDIR}/DLTWrapper/include/* ${D}${includedir}
> }
>

Presumably you're doing this because the autotools or cmake files in your
tarball doesn't have an install target?

Anyway, that's the problem.  You're installing an unversioned .so file
which will be put into PN-dev by default.  Unversioned libraries are
frowned upon but if you can't change it then the wiki has a guide:

https://wiki.yoctoproject.org/wiki/TipsAndTricks/Packaging_Prebuilt_Libraries#Non-versioned_Libraries

Ross
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20180312/0ef071a4/attachment.html>


More information about the yocto mailing list