[yocto] Could not find glib.h

Andreas Müller schnitzeltony at gmail.com
Wed May 1 05:05:35 PDT 2019


On Wed, May 1, 2019 at 12:35 PM JH <jupiter.hce at gmail.com> wrote:
>
> Thanks Richard, where to run pkg-config? If I run pkg-config in the
> host, it pointed to host Ubuntu package which is different to the
> cross compiler.
>
> On 5/1/19, Richard Purdie <richard.purdie at linuxfoundation.org> wrote:
> > On Wed, 2019-05-01 at 10:43 +1000, JH wrote:
> >> Hi,
> >>
> >> I added glib-2.0 to DEPENDS but it still could find the glib.h, what
> >> I
> >> could be missing here?
> >>
> >> fatal error: glib.h: No such file or directory
> >> >  #include <glib.h>
> >> >           ^~~~~~~~
> >> > compilation terminated.
> >
> > You probably need to use pkg-config to find out which CFLAGS to use for
> > glib-2.0...
> >
Maybe I missed something but there is not much information about what
you are trying to build. Starts with build system: autotools / cmake /
meson / qmake / waf?

Is there a place to look into the recipe? That might make support easier.

Andreas


More information about the yocto mailing list