<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi Berthold,<div><br></div><div>Welcome to the Yocto Project.</div><div><br></div><div>This line is the problem with your recipe:</div><div><br></div><div>PACKAGES = "${PN}"<br></div><div><br></div><div>This tells the build system to only create one package, the default package. Because this line FILES_${PN} = "${bindir}" tells the build system to include everything in ${bindir} into that package the package also includes the .debug directory which is then flagged by the QA checker. To fix this:</div><div><br></div><div>PACKAGES = "${PN}-dbg ${PN}"<br></div><div><br></div><div>You have to specify the debug package before the default package as the variable is processed from left to right and whatever is consumed by a package will not be packaged anymore. However, even simpler is to remove the PACKAGES line altogether as the default already does it correctly.</div><div><br></div><div>Best regards,</div><div>:rjs</div><div><br></div><div><br></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Nov 7, 2019 at 12:04 PM Berthold Höllmann <<a href="mailto:berthold-yocto@h%C3%B6llmanns.de">berthold-yocto@höllmanns.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
Hello,<br>
<br>
I'm trying my way around yocto. I thought I try adding a small project<br>
of mine to a Raspberry Pi image as a first try in writing recipes. At<br>
least I managed to get the project compiling, but the generation of the<br>
packages is failing:<br>
<br>
$ bitbake qtlissajous<br>
...<br>
ERROR: qtlissajous-git-r0 do_package_qa: QA Issue: non debug package contains .debug directory: qtlissajous path /work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/qtlissajous/git-r0/packages-split/qtlissajous/usr/bin/.debug/lissajous_explorer [debug-files]<br>
ERROR: qtlissajous-git-r0 do_package_qa: QA run found fatal errors. Please consider fixing them.<br>
ERROR: qtlissajous-git-r0 do_package_qa: <br>
ERROR: qtlissajous-git-r0 do_package_qa: Function failed: do_package_qa<br>
ERROR: Logfile of failure stored in: /home/build/shared/rpi/rpi2-build/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/qtlissajous/git-r0/temp/log.do_package_qa.4823<br>
ERROR: Task (/home/build/shared/rpi/meta-qtlissajous/recipes-qtlissajous/qtlissajous/qtlissajous_git.bb:do_package_qa) failed with exit code '1'<br>
...<br>
<br>
$ (cd /home/build/shared/rpi/rpi2-build/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/qtlissajous/git-r0/packages-split/;find -type f)<br>
./qtlissajous-src/usr/src/debug/qtlissajous/git-r0/build/moc_doubleslider.cpp<br>
./qtlissajous-src/usr/src/debug/qtlissajous/git-r0/build/moc_phaselabel.cpp<br>
./qtlissajous-src/usr/src/debug/qtlissajous/git-r0/git/doubleslider.cpp<br>
./qtlissajous-src/usr/src/debug/qtlissajous/git-r0/git/doubleslider.h<br>
./qtlissajous-src/usr/src/debug/qtlissajous/git-r0/git/lissajous_explorer.cpp<br>
./qtlissajous-src/usr/src/debug/qtlissajous/git-r0/git/lissajous_explorer.h<br>
./qtlissajous-src/usr/src/debug/qtlissajous/git-r0/git/lissajous_grid.cpp<br>
./qtlissajous-src/usr/src/debug/qtlissajous/git-r0/git/lissajous_grid.h<br>
./qtlissajous-src/usr/src/debug/qtlissajous/git-r0/git/main.cpp<br>
./qtlissajous-src/usr/src/debug/qtlissajous/git-r0/git/phaselabel.cpp<br>
./qtlissajous-src/usr/src/debug/qtlissajous/git-r0/git/phaselabel.h<br>
./qtlissajous-tools/usr/bin/lissajous_explorer<br>
./qtlissajous/usr/bin/.debug/lissajous_explorer<br>
./qtlissajous-tools.shlibdeps<br>
<br>
My <a href="http://qtlissajous_git.gg" rel="noreferrer" target="_blank">qtlissajous_git.gg</a> file is:<br>
<br>
-------------------------------------------------------<br>
DESCRIPTION = "Explore Lissajous figures for Raspberry Pi"<br>
SECTION = "games"<br>
DEPENDS += "qtbase"<br>
<br>
PACKAGES = "${PN}"<br>
<br>
LICENSE = "MIT"<br>
LIC_FILES_CHKSUM = "file://LICENSE;md5=7e26fc87b2c255632232dc535ed2700b;sha256=c8ea5a5ce0ef734ec1d0be3e214bed71673f1ffc628fe86bbd055d61abd52cc8"<br>
<br>
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}:"<br>
<br>
SRCREV = "${AUTOREV}"<br>
SRC_URI = "git://<a href="http://gitlab.com/bhoel/qlissajousexplorer.git;protocol=https" rel="noreferrer" target="_blank">gitlab.com/bhoel/qlissajousexplorer.git;protocol=https</a>"<br>
<br>
S = "${WORKDIR}/git"<br>
<br>
require recipes-qt/qt5/qt5.inc<br>
<br>
FILES_${PN} = "${bindir}"<br>
FILES_${PN}-dbg += "${bindir}/.debug"<br>
<br>
do_install() {<br>
   install -d ${D}/usr/bin<br>
   install -m 0755 lissajous_explorer ${D}/usr/bin<br>
}<br>
<br>
RDEPENDS_${PN} = "qtbase-plugins"<br>
-------------------------------------------------------<br>
<br>
Why is the release executable ending up in the tools tree?<br>
Why is the debug executable ending up in the release tree?<br>
Is this the right place to ask this kind of questions?<br>
<br>
Thank you<br>
Berthold<br>
-- <br>
_______________________________________________<br>
yocto mailing list<br>
<a href="mailto:yocto@yoctoproject.org" target="_blank">yocto@yoctoproject.org</a><br>
<a href="https://lists.yoctoproject.org/listinfo/yocto" rel="noreferrer" target="_blank">https://lists.yoctoproject.org/listinfo/yocto</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr">Rudolf J Streif<div>CEO/CTO</div><div>ibeeto, Streif Enterprises Inc.</div></div></div>