[yocto] Yocto and Google Protocol Buffers

Burton, Ross ross.burton at intel.com
Wed Jul 25 01:41:36 PDT 2012


On 25 July 2012 09:35, Giovanni Foiani <fnognn at unife.it> wrote:
> does anyone have configured a recipe for make Google Protocol Buffers
> working?

> do_configure() {
> ./configure --host=arm
> }

Don't do that, because what if you want to build gpc for another architecture?

> bin/bash:
> /home/gfoiani/yocto/fsl-community-bsp/build/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/protobuf-2.4.1-r0/protobuf-2.4.1/src/protoc:
> cannot execute binary file
> make[2]: *** [unittest_proto_middleman] Error 126

That's because you're (presumably) running on x86 hardware, but are
trying to execute an ARM binary.  You'll need to build a
protobuf-native first that installs protoc into the sysroot first.
Numerous packages have this requirement, such as gtk+.

Ross



More information about the yocto mailing list