Discussion:
[yocto] Headers missing in generated SDK
Syed Moosvi
2014-11-25 20:57:29 UTC
Permalink
Hi All,

I am working on danny branch and having an issue with respect to
adding headers in the generated SDK toolchain.

I am generating the SDK using

$ bitbake -c populate_sdk image_name

When I generate the SDK, the openssl and alsa headers were missing from
/opt/poky/1.3/sysroots/image-poky-linux-gnueabi/usr/include

Adding the following did add the ALSA headers but the openssl headers are
still missing

TOOLCHAIN_TARGET_TASK_append = " openssl-dev"

TOOLCHAIN_TARGET_TASK_append = " alsa-dev"

Therefore can anyone please let me know the following

1) What headers ar populated in /opt/poky/1.3/sysroots/image
-poky-linux-gnueabi/usr/include.

2) How do I make the openssl headers appear in /opt/poky/1.3/sysroots/image
-poky-linux-gnueabi/usr/include

3) I though all the headers for all the libs used in target will be
populated in the SDK. Is this not true?

4) Also noticed the headers are present in but not in generated SDK.
/tmp/sysroots/image/usr/include/openssl/


Thanks,
Syed
Matt Schuckmann
2014-11-26 18:07:20 UTC
Permalink
Syed,

Your problem sounds similar to a problem I had getting my own headers and static library included in the SDK.
Check out this thread to see if it helps.

https://lists.yoctoproject.org/pipermail/yocto/2014-September/021678.html

Matt S.

--
Syed Moosvi
2014-12-02 19:45:06 UTC
Permalink
Hi Matt,

I added the following but still not getting headers in the
generated SDK.

*RDEPENDS_${PN}-dev = ""* # added to openssl bb file

TOOLCHAIN_TARGET_TASK_append = " openssl-dev" # added to local.conf file

Also, I don't get any errors when I don't add RDEPENDS_ but I think
you were getting some errors.
Any clues as to what I may be missing?

Thanks,

Syed
Post by Matt Schuckmann
Syed,
Your problem sounds similar to a problem I had getting my own headers and
static library included in the SDK.
Check out this thread to see if it helps.
https://lists.yoctoproject.org/pipermail/yocto/2014-September/021678.html
Matt S.
Urs Fässler
2014-12-03 13:20:52 UTC
Permalink
Hi,
I added
TOOLCHAIN_TARGET_TASK += "my-super-package"
in the image recipe.

When I then populate the SDK against this image, I have my-super-package
in the SDK sysroot.

Regards
Urs
Post by Syed Moosvi
Hi Matt,
I added the following but still not getting headers in the
generated SDK.
*RDEPENDS_${PN}-dev = ""* # added to openssl bb file
TOOLCHAIN_TARGET_TASK_append = " openssl-dev" # added to local.conf file
Also, I don't get any errors when I don't add RDEPENDS_ but I think
you were getting some errors.
Any clues as to what I may be missing?
Thanks,
Syed
Post by Matt Schuckmann
Syed,
Your problem sounds similar to a problem I had getting my own headers and
static library included in the SDK.
Check out this thread to see if it helps.
https://lists.yoctoproject.org/pipermail/yocto/2014-September/021678.html
Matt S.
--
--
bytes at work
Technoparkstrasse 7
CH-8406 Winterthur
Switzerland

phone: +41 52 213 79 79
Loading...