[yocto] Installing shared libraries ncurses for custom application

Marc-Antoine Martin martin.marcantoine at gmail.com
Mon Apr 24 02:02:22 PDT 2017


Hi Ross,

Thank you for your personalized reply.
I've changed my receipe with your recommandations and clean the
receipe with "bitbake -c cleanall myapp"

But I still have an issue when compiling with "bitbake myapp":

WARNING: myapp-0.1.1-r0 do_package_qa: QA Issue: /usr/bin/myApp
contained in package myapp requires
libtinfo.so.5(NCURSES_TINFO_5.0.19991023), but no providers found in
RDEPENDS_myapp? [file-rdeps]

Sometimes I also have the same issue with libncurses.so lib. I assume
the problem is common for both ncurses libs.

Hereafter is my receipe header:

SUMMARY = "myApp"
SECTION = "console/utils"

DEPENDS = "ncurses"

SRC_URI = ".../myApp/${PN}/${PV}/${PN}-${PV}.tar.gz"

do_compile () {
        oe_runmake
}

do_install () {
       install -d ${D}${bindir}
       install -m 0755 ${WORKDIR}/${PN}-${PV}/myApp ${D}${bindir}/
}

LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://gpl.txt;md5=393a5ca445f6965873eca0259a17f833"

SRC_URI[md5sum] = "97b2c3fb082241ab5c56ab728522622b"

FYI: I use the branch morty of Yocto Project. And I didn't add any
layer other than default ones. I juste want to add this app to the
qemu core minimal image for tests purpose.

Thank you for your assistance.
Sincerely.
Cordialement,
Marc-Antoine Martin
Ingénieur - Thales Services
Thales Services - Machine Software Engineer
tel: +33 7 77 38 18 65

Fiche contact / eCard contact:


2017-04-21 18:46 GMT+02:00 Burton, Ross <ross.burton at intel.com>:
>
> On 19 April 2017 at 17:55, Marc-Antoine Martin
> <martin.marcantoine at gmail.com> wrote:
>>
>> DEPENDS = "ncurses glibc"
>> RDEPENDS_${PN} = "ncurses-libform"
>
>
> glibc is a default dependency so you can remove that.  You can remove the
> explicit RDEPENDS as bitbake will automatically add library runtime
> dependencies for you.  Just have DEPENDS=ncurses, and see if that does the
> right thing.
>
> Ross



More information about the yocto mailing list