[yocto] Problems creating recipe, "no package provides"

Henric Eriksson Henric.Eriksson at brv.se
Tue Jun 17 05:30:36 PDT 2014


Hello,

I've been working on creating a recipe for the library mongoose for use 
in a custom layer in Yocto. The library provides a .so in /usr/lib and a 
.h in /usr/include and is depended (DEPENDS="libmongoose") on in another 
recipe for a my main application. When trying to bitbake my image though 
it fails on the last stage do_rootfs.

The recipe is quite simple:

libmongoose-5.3.bb:
-------------
DESCRIPTION = "Mongoose is the most easy to use web server on the planet"
SECTION = "libs"
LICENSE = "GPLv2"
HOMEPAGE = "http://code.google.com/p/mongoose"
LIC_FILES_CHKSUM = 
"file://${COREBASE}/meta/COPYING.GPLv2;md5=751419260aa954499f7abaabaa882bbe"
PR = "r0"

SRC_URI = "git://github.com/cesanta/mongoose.git"
SRCREV = "30a79651356e28fec240e921f8cd01c9a0a21388"

S = "${WORKDIR}/git"

CFLAGS += "-W -Wall -I.. -pthread -g -pipe -fpic"

do_compile() {
     ${CC} ${CFLAGS} -c mongoose.c -o mongoose.o
     ${CC} -shared -o libmongoose.so mongoose.o
}

do_install() {
    install -d ${D}${libdir}
    install -d ${D}${includedir}
    install -m 0755 libmongoose.so ${D}${libdir}
    install -m 0755 mongoose.h ${D}${includedir}
}
-------------

Eventually though during do_rootfs, this error pops up:

error: Can't install libmongoose-dev-5.3-r0 at armv5te: no package provides 
libmongoose = 5.3-r0

I have tried to add both PACKAGES += "libmongoose" and PACKAGES += 
"libmongoose-dev" in the recipe but nothing seems to help.

Looking through Yocto I can see that it appends -dev and such based on 
what files are provided by the package. But I guess since all the files 
from the package is provided by libmongoose-dev it dumps libmongoose.

I'm at a loss of where to go from here. What have I missed in my recipe?

Regards,

Henric Eriksson



More information about the yocto mailing list