Trying to make PylonGPS build with DEPENDS, does not find includes
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"
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.
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.
Quoted 11 lines · ccSmart
Greetings.
I'm trying to set up a poky layer at
https://github.com/navdata-net/meta-navdatanet/tree/rockoCompiling 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.
Quoted 6 lines
During build i get
fatal error:
google/protobuf/stubs/common.h: No such file or directory #include <google/protobuf/stubs/common.h>
Quoted 7 lines
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.
Quoted 7 lines
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.