[yocto] Yocto and Google Protocol Buffers

Giovanni Foiani fnognn at unife.it
Wed Jul 25 02:47:02 PDT 2012


Thanks Burton,

I forgot to say that I'm building for an iMX53QSB.
I edited my recipe in this way:

*SUMMARY = "Protocol Buffers - Google's data interchange format"*
*DESCRIPTION = "Protocol Buffers are a way of encoding structured data in
an efficient yet extensible format"*
*SECTION = "libs"*
*
*
*DEPENDS = "protobuf-native"*
*DEPENDS_virtclass-native = ""*
*BBCLASSEXTEND = "native"*
*
*
*LICENSE = "LGPLv2.1"*
*#LIC_FILES_CHKSUM =
"file://../protobuf-2.4.1/COPYING.txt;md5=af6809583bfde9a31595a58bb4a24514"*
*LIC_FILES_CHKSUM =
"file://${COMMON_LICENSE_DIR}/LGPL-2.1;md5=1a6d268fd218675ffea8be556788b780"
*
*
*
*PR = "r0"*
*
*
*SRC_URI = "http://protobuf.googlecode.com/files/protobuf-2.4.1.tar.gz"*
*
*
*SRC_URI[md5sum] = "dc84e9912ea768baa1976cb7bbcea7b5"*
*SRC_URI[sha256sum] =
"eac6969b617f397247e805267da2b0db3ff9e5a9163b123503a192fbb5776567"*
*
*
*inherit autotools*
*
*
The native library builds properly but it populates the wrong sysroot..I
can find protoc executable into tmp/sysroots/i686-linux but not into
imx53qsb sysroot, hence rebuilding the protobuf library it can't find the
executable..

Which configuration do I have to use to populate the  imx53qsb sysroot?

Thanks

Giovanni

--

Dott. Ing. Giovanni Foiani

Cell:        +39-349-3577515
Phone:    +39-0532-97-4106
mail:        giovanni.foiani at unife.it
CenTec - Corso Guercino, 47 - 44042 Cento (FE)



On Wed, Jul 25, 2012 at 10:41 AM, Burton, Ross <ross.burton at intel.com>wrote:

> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20120725/e7bf7401/attachment.html>


More information about the yocto mailing list