[yocto] Could not find glib.h

Burton, Ross ross.burton at intel.com
Wed May 1 16:06:30 PDT 2019


On Wed, 1 May 2019 at 23:33, JH <jupiter.hce at gmail.com> wrote:
> It was my program, it has been compiled for weeks without any issues
> until I added an #include <glib.h>, despite the glib-2.0 was defined
> in the recipe, the do_compile() stopped at following errors, I can see
> glib-2.0 was built in build and image directory, I can see glib.h was
> in build and image directory, is it a basic principle if a package
> library was defined in DEPENDS, the bitback should automatically find
> the header files and library links? Why it still complained no such
> file?

Because that's not how glib works.

https://developer.gnome.org/glib/stable/glib-compiling.html

Ross


More information about the yocto mailing list