* Problems creating recipe, "no package provides"
@ 2014-06-17 12:30 Henric Eriksson
2014-06-17 13:46 ` Søren Holm
0 siblings, 1 reply; 3+ messages in thread
From: Henric Eriksson @ 2014-06-17 12:30 UTC (permalink / raw)
To: yocto@yoctoproject.org
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@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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Problems creating recipe, "no package provides"
2014-06-17 12:30 Problems creating recipe, "no package provides" Henric Eriksson
@ 2014-06-17 13:46 ` Søren Holm
2014-06-17 14:03 ` Henric Eriksson
0 siblings, 1 reply; 3+ messages in thread
From: Søren Holm @ 2014-06-17 13:46 UTC (permalink / raw)
To: yocto
Hi
I guess the file should be named libmongoose_5.3.bb and not
libmongoose-5.3.bb
Tirsdag den 17. juni 2014 12:30:36 skrev Henric Eriksson:
> 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@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
--
Søren Holm
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Problems creating recipe, "no package provides"
2014-06-17 13:46 ` Søren Holm
@ 2014-06-17 14:03 ` Henric Eriksson
0 siblings, 0 replies; 3+ messages in thread
From: Henric Eriksson @ 2014-06-17 14:03 UTC (permalink / raw)
To: yocto@yoctoproject.org
Søren Holm skrev:
> Hi
>
> I guess the file should be named libmongoose_5.3.bb and not
> libmongoose-5.3.bb
My bad. Typo in the email, the actual file is called libmongoose_5.3.bb.
>
> Tirsdag den 17. juni 2014 12:30:36 skrev Henric Eriksson:
>> 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@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
>
/Henric
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-06-17 14:04 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-17 12:30 Problems creating recipe, "no package provides" Henric Eriksson
2014-06-17 13:46 ` Søren Holm
2014-06-17 14:03 ` Henric Eriksson
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.