[yocto] Trying to make PylonGPS build with DEPENDS, does not find includes

Khem Raj raj.khem at gmail.com
Tue Jan 23 21:43:39 PST 2018


On 12/19/17 2:28 PM, ccSmart wrote:
> Greetings.
> 
> I'm trying to set up a poky layer at
> https://github.com/navdata-net/meta-navdatanet/tree/rocko
> 
> Compiling PylonGPS from https://github.com/charlesrwest/pylonGPS
> requires, amongst others Google protobuf.
> 
> I include this as
> 
> DEPENDS += "protobuf-native"

I think you need to depend on protobuf for target. Then ensure that the
expectation of path where the headers should exist is correct with
respect to target sysroot.


> 
> During build i get
> 
> fatal error: google/protobuf/stubs/common.h: No such file or directory
> #include <google/protobuf/stubs/common.h>
> 
> However, this file can be found at
> 
> /workdir/dev/rpi3/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/pylongps/0.1.0-r0/recipe-sysroot-native/usr/include/google/protobuf/stubs/common.h
> 
> 
> So i assume it is a problem with visibility / build environment setup.
> 

thats not how it works, you cant include native headers while building a
target recipe.

> For running the build, i'm using the crops/poky docker image.
> 
> Where should i look for finding the correct solution ?
> 
> Thanks for your input.
> 
> 




More information about the yocto mailing list