[yocto] [EXTERNAL] Re: Missing dependencies in recipe-sysroot

Burton, Ross ross.burton at intel.com
Tue Dec 4 07:43:55 PST 2018


No, you just need to write your makefile correctly.  libgpiod has a
pkg-config file, so instead of hard-coding paths like /usr/lib
(because you don't know that's where it is installed) just use
pkg-config to get the flag:

gcc $(pkg-config --cflags --libs libgpiod) ...

Ross
On Tue, 4 Dec 2018 at 15:14, Georgi Georgiev
<Georgi.Georgiev at woodward.com> wrote:
>
> OK but. I can use SDKTARGETSYSROOT in my makefile but then it will fail in yocto...So I can't have one makefile for yocto and command line build...I found one tread for similar issue and I will take a look in poky/meta/conf/bitbake.conf tomorrow.
>
> Georgi
>
> -----Original Message-----
> From: Burton, Ross [mailto:ross.burton at intel.com]
> Sent: Tuesday, December 04, 2018 4:13 PM
> To: Georgi Georgiev <Georgi.Georgiev at woodward.com>
> Cc: Yocto-mailing-list <yocto at yoctoproject.org>
> Subject: Re: [EXTERNAL] Re: [yocto] Missing dependencies in recipe-sysroot
>
> On Tue, 4 Dec 2018 at 14:02, Georgi Georgiev <Georgi.Georgiev at woodward.com> wrote:
> > LIB := -L/usr/lib
>
> ^ don't do that.  That's not where the libraries are.
>
> Ross


More information about the yocto mailing list