[yocto] How to include static library and headers in sdk

Joseph Andrew de la Peña jdelapena at lexmark.com
Mon Sep 22 19:52:43 PDT 2014


Good day Matt,

You need to explicitly RDEPENDS your-unit-staticdev and your-unit in your
image's packagegroup. Assuming, your FILES_${PN}-staticdev is your .a and
FILES_${PN} contains your headers.

Thanks,
Joseph

On Tue, Sep 23, 2014 at 9:57 AM, Matt Schuckmann <Matt.Schuckmann at planar.com
> wrote:

> I've got a custom image and 2 custom recipes both very simple libraries
> that use cmake.
> I included the libraries into my image by adding
> EXTRA_IMAGEDEPENDS += "simple1"
> EXTRA_IMAGEDEPENDS += "simple2"
> To my image recipe.
>
> When I build my image (i.e. bitbake custom-image ) I can see that the
> library header files and .a files are placed in the correct place in the
> sysroot directory.
>
> However when I try to create an sdk (i.e. bitbake custom-image -c
> populate_sdk) and then install the SDK the headers and .a files are nowhere
> to be found in the installed sysroot.
>
> What am I missing?
>
> Thanks,
> Matt S.
>
> --
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20140923/f9435d4b/attachment.html>


More information about the yocto mailing list