Thanks Ross, That is the issue : default pkg-config does not search host paths - How to edit its search paths ?
On Tue, Oct 3, 2017 at 6:28 PM, Burton, Ross <[email protected]> wrote: > Ah, so if you're inheriting native then the default pkg-config is good, > but the host paths are not searched out of the box. > > If you *really* want to link against host binaries and not building your > own native recipes for it then see qemu.inc for an example of how to steal > the host pkg-config path and use it at configure time. > > Ross > > On 3 October 2017 at 16:05, [email protected] <[email protected]> > wrote: > >> when running the recipe I get during do_configure: >> Checking for header stdlib.h : yes >> ... >> Checking for program pkg-config : /home/wzbwjj/vpm/GR_Yocto/buil >> d/tmp/sysroots/x86_64-linux/usr/bin/pkg-config >> >> How do I change that ? >> >> On Tue, Oct 3, 2017 at 6:02 PM, Burton, Ross <[email protected]> >> wrote: >> >>> You don't need to, it will search the host. >>> >>> Ross >>> >>> On 3 October 2017 at 15:54, [email protected] <[email protected]> >>> wrote: >>> >>>> Hi Ross, >>>> how to configure use of pkg-config-native ? >>>> >>>> On Tue, Oct 3, 2017 at 5:51 PM, Burton, Ross <[email protected]> >>>> wrote: >>>> >>>>> On 3 October 2017 at 15:13, [email protected] <[email protected]> >>>>> wrote: >>>>> >>>>>> Hi all, >>>>>> I am new to the Yocto project. >>>>>> Is this the Yocto forum ? >>>>>> I would like configure pkg-config search directories but, the program >>>>>> configured from the sysroots file system, so it does not see Host >>>>>> environment variables. >>>>>> i.e : there are two pkg-config apps : Host's pkg-config located at >>>>>> /usr/bin/ , and bitbake pkg-config located at ~/Yocto/build/tmp/sysroots/ >>>>>> x86_64-linux/usr/bin/ >>>>>> >>>>>> >>>>> If you want to access pkg-config files on the host, you'll need to use >>>>> the pkg-config-native binary as pkg-config uses the *target* sysroots. >>>>> >>>>> Ross >>>>> >>>> >>>> >>> >> >
-- _______________________________________________ yocto mailing list [email protected] https://lists.yoctoproject.org/listinfo/yocto
