[yocto] How to add libudev.h

Gary Thomas gary at mlbassoc.com
Thu Nov 3 06:08:06 PDT 2016

On 2016-11-03 13:55, idealsim wrote:
> Thanks for your answer.
> It seems that i didn't have DEPENDS = "udev".
> How i can add it ?
>     - to my local.conf
>     or
>     - to myImage.bb

I would add it to your recipe, then it should build under any circumstance.

> Le Thu, 03 Nov 2016 13:29:57 +0100, Gary Thomas <gary at mlbassoc.com> a écrit:
>> On 2016-11-03 13:19, idealsim wrote:
>>> Hi all, i need to build a lib --> openZwave (on a imx6 card) libudev.h.
>>> I have this error during the build :
>>> /home/root/openzwave-1.4.164/cpp/hidapi/linux/hid.c:44:21: fatal error: libudev.h: No such file or directory
>>> I have tried to add udev to my local.conf but this not resolve the problem.
>>> How i can add it to my build please ?
>> Did you try adding 'udev' to DEPENDS in your recipe?  That's
>> the way bitbake knows to provide such connections (i.e. how your
>> recipe can find the appropriate files during build)

Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world

More information about the yocto mailing list