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

Joseph Andrew de la Peña jdelapena at lexmark.com
Mon Sep 22 21:59:29 PDT 2014


Good day Matt,

A simple example is publishing libxml-parser-perl in
meta/recipes-core/libxml/libxml2 into SDK.

1. Make sure libxml-parser.perl has a nativesdk for BBCLASSEXTEND in its
recipe.
2. Add nativesdk-libxml-parser-perl in RDEPENDS for
nativesdk-packagegroup-sdk-host
3. Then -c populate_sdk <image>

You can also try if the unit itself can be successfully installed in sdk
sysroot by: bitbake -C compile nativesdk-<your unit>.
This will save you more time.

Thanks,
Joseph

On Tue, Sep 23, 2014 at 12:31 PM, Matt Schuckmann <
Matt.Schuckmann at planar.com> wrote:

> Thanks for the response but I'm not sure that I understand.
> Where does this stuff go? In a Packagegroup file.
>
> I tried adding simple1-staticdev to IMAGE_INSTALL and I get an error that
> it doesn't exist.
>
> Can you point me at an example?
>
> Matt S.
> Sent from my pocket
>
> On Sep 22, 2014, at 7:52 PM, Joseph Andrew de la Peña <
> jdelapena at lexmark.com> wrote:
>
> 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/5ebca5eb/attachment.html>


More information about the yocto mailing list