[yocto] How to include libraries?

Gary Thomas gary at mlbassoc.com
Wed May 24 20:33:12 PDT 2017


On 2017-05-24 15:49, Gary Thomas wrote:
> On 2017-05-24 15:26, Burton, Ross wrote:
>>
>> On 24 May 2017 at 13:20, Gary Thomas <gary at mlbassoc.com <mailto:gary at mlbassoc.com>> wrote:
>>
>>     I have an image which needs to include the libcups2 package from
>>     the cups recipe.  If I try adding this to my image recipe
>>        CORE_IMAGE_EXTRA_INSTALL_append = " libcups2"
>>     I get this error:
>>        ERROR: Required build target 'my-demo-image' has no buildable providers.
>>        Missing or unbuildable dependency chain was: ['my-demo-image', 'libcups2']
>>
>>     However, I can get it to build with this
>>        MACHINE_EXTRA_RRECOMMENDS_append = " libcups2"
>>
>>     What's the difference between these two approaches and why doesn't the first
>>     one work at all?
>>
>>
>> Does the latter actually work?  Recommends won't fail if the package doesn't exist, or is getting pulled in via 
>> another route.
>>
>> I've a feeling that you actually want the pre-renaming name here so try cups-lib.
> 
> Thanks, I'm rebuilding the image (after a Poky/master pull) and will let you know.
> 
> BTW, that would be awfully confusing to require cups-lib when building but my package
> manager (opkg) only knows about the [renamed] package libcups2.
> 

You were correct, using MACHINE_EXTRA_RRECOMMENDS didn't work, but explicitly
including cups-lib did.  Not very intuitive :-(

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------



More information about the yocto mailing list