Re: [yocto] How to add libudev.h

2016-11-03 Thread Fred Ollinger
I belive this goes in your .bb file:

DEPENDS = " \
udev \
"

RDEPENDS_${PN} = " \
udev \
"

Also, you probably need the right flags for libudev.

Here are docs on that:

https://www.freedesktop.org/software/systemd/man/libudev.html

Of course, you need to tailor your build system to use these and incorporate 
this into your project.

I like automake so here's how to use pkgconfig with automake:

https://autotools.io/pkgconfig/pkg_check_modules.html

NOTE: systemd also provides libudev so if you have systemd, it's likely getting 
installed there and conflicts with udev, but I'm not sure, so you want to look 
into this as well. When I installed source for my debian jessie, I got systemd, 
and not udev sources. YMMV.

Frederick


From: yocto-boun...@yoctoproject.org  on behalf 
of mickael 
Sent: Thursday, November 3, 2016 4:55 AM
To: yocto@yoctoproject.org
Subject: [yocto]  How to add libudev.h

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 ?
--
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] How to add libudev.h

2016-11-03 Thread mickael

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 ?
--
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] How to add libudev.h

2016-11-03 Thread idealsim
Ok, i will try to add dev-pkgs to my recipe here  
https://github.com/modjo756/meta-udoo-modjo/blob/krogoth-modjo/qt5-layer/recipes-qt/images/udoo-image-qt5.bb  
and add udev to my local.conf.

I let you know if it's work...
Mickael

Le Thu, 03 Nov 2016 14:03:04 +0100, Burton, Ross  a  
écrit:




On 3 November 2016 at 12: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
Regards,


If you want to do compiling inside the image, the easy way is to just  
add dev-pkgs to IMAGE_FEATURES for the image recipe.  This gives you all  
of the >headers for everything installed, which will include the udev  
headers assuming that your image has udev.


Ross




--
Utilisant le logiciel de courrier d'Opera : http://www.opera.com/mail/-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] How to add libudev.h

2016-11-03 Thread Gary Thomas

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  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

--
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] How to add libudev.h

2016-11-03 Thread Burton, Ross
On 3 November 2016 at 12: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
> Regards,
>

If you want to do compiling inside the image, the easy way is to just add
dev-pkgs to IMAGE_FEATURES for the image recipe.  This gives you all of the
headers for everything installed, which will include the udev headers
assuming that your image has udev.

Ross
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] How to add libudev.h

2016-11-03 Thread idealsim

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
Regards,


Le Thu, 03 Nov 2016 13:29:57 +0100, Gary Thomas  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)




--
Utilisant le logiciel de courrier d'Opera : http://www.opera.com/mail/
--
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] How to add libudev.h

2016-11-03 Thread Gary Thomas

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

--
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] How to add libudev.h

2016-11-03 Thread idealsim

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 ?
--
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto