[yocto] pkg-config search directories

Burton, Ross ross.burton at intel.com
Mon Oct 9 03:16:30 PDT 2017


Is this the same problem? You dont want to search the host for libraries
that you want on the target.  Just add mesa to DEPENDS and pkgconfig will
find the GL headers in the sysroot.

Are you using the glmark2 recipe from meta-oe?

Ross

On 8 October 2017 at 16:00, eliya.mir at gmail.com <eliya.mir at gmail.com> wrote:

> Hi Ross,
> I am still trying to configure pkg-config.
>
> Running bitbake glmark2 recipe results with an error :
> Checking for 'gl'                        : not found.
>
> looking into the log file :
> Checking for 'gl'
> ['/home/wzbwjj/vpm/GR_Yocto/build/tmp/sysroots/x86_64-linux/usr/bin/pkg-config',
> 'gl', '--cflags', '--libs']
> err: Package gl was not found in the pkg-config search path.
> Perhaps you should add the directory containing `gl.pc'
> to the PKG_CONFIG_PATH environment variable
> No package 'gl' found
>
> not found
> from /home/wzbwjj/vpm/GR_Yocto/build/tmp/work/corei7-64-poky-
> linux/glmark2/2014.03+AUTOINC+fa71af2dfa-r0/git: The configuration failed
>
>
> Thanks!
>
>
>
> On Tue, Oct 3, 2017 at 6:40 PM, Burton, Ross <ross.burton at intel.com>
> wrote:
>
>> On 3 October 2017 at 16:36, eliya.mir at gmail.com <eliya.mir at gmail.com>
>> wrote:
>>
>>> Thanks Ross,
>>> That is the issue : default pkg-config does not search host paths - How
>>> to edit its search paths ?
>>>
>>
>> "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
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20171009/85ee7151/attachment.html>


More information about the yocto mailing list