[yocto] How to include libstdc++ in an image?

maniacbug maniacbug at ymail.com
Thu Jun 28 11:50:49 PDT 2012


>> Can anyone advise the appropriate way to inject libsdtc++ (and its
>> dependencies) into a poky image?  Please note that I do not need to
>> compile/link apps on the target, only run them.

> Adding libstdc++ to IMAGE_INSTALL should work - in fact I just tried it and it 
> worked here (although I used the alternative of adding it to 
> CORE_IMAGE_EXTRA_INSTALL in local.conf, but the result should be the same). 

Thanks!
 
Turns out this was user error.  libstdc++/libgcc were in fact included in the image, so it is correct that  task-core-standalone-sdk-target did the job.  I just had to remove the -dev packages to avoid balooning my image, so now I have a minimal image with ssh and libstdc++ < 10M.  Happiness.
 
Also handy to know that it works to just add package recipes directly to IMAGE_INSTALL.  Still learning bitbake, so it's not clear what goes there versus IMAGE_FEATURES, etc.



More information about the yocto mailing list