[yocto] Yocto and Google Protocol Buffers

Giovanni Foiani fnognn at unife.it
Wed Jul 25 07:55:09 PDT 2012


Using EXTRA_OECONF = "--with-protoc=protoc" it builds properly..

My final .bb file is:

*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"*
*
*
*EXTRA_OECONF = "--with-protoc=protoc"*
*
*
*inherit autotools*
*
*
*
*
*
*
I also built the C binding of Google Protocol Buffer and this is the
recipe.. (I disabled protoc_c creation)

*SUMMARY = "C bindings for Google's Protocol Buffers"*
*DESCRIPTION = "This package provides a code generator and runtime
libraries to use Protocol Buffers from pure C (not C++)."*
*SECTION = "libs"*
*
*
*DEPENDS = "protobuf-c-native"*
*DEPENDS_virtclass-native = ""*
*BBCLASSEXTEND = "native"*
*
*
*DEPENDS += "protobuf"*
*
*
*LICENSE = "LGPLv2.1"*
*LIC_FILES_CHKSUM =
"file://${COMMON_LICENSE_DIR}/LGPL-2.1;md5=1a6d268fd218675ffea8be556788b780"
*
*
*
*PR = "r0"*
*
*
*SRC_URI = "http://protobuf-c.googlecode.com/files/protobuf-c-0.15.tar.gz"*
*
*
*SRC_URI[md5sum] = "73ff0c8df50d2eee75269ad8f8c07dc8"*
*SRC_URI[sha256sum] =
"8fcb538e13a5431c46168fc8f2e6ad2574e2db9b684c0c72b066e24f010a0036"*
*
*
*EXTRA_OECONF = "--disable-protoc"*
*
*
*inherit autotools*
*
*
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 12:08 PM, Burton, Ross <ross.burton at intel.com>wrote:

> On 25 July 2012 11:04, Giovanni Foiani <fnognn at unife.it> wrote:
> > Can I do this overriding do_configure task? Like this:
> >
> > do_configure() {
> >     ./configure --with-protoc=/path/to/sysroot/i686-linux/usr/bin/protoc
> > }
> >
> > I tried this way but I got a "permission denied" error..
> >
> > /bin/bash: line 8: ../-libtool: Permission denied
> > | make[3]: *** [install-libLTLIBRARIES] Error 126
>
> By explicitly calling configure you've thrown away all the special
> options that are required to cross-compile.  Delete  your
> do_configure() block and just set EXTRA_OECONF = "
> --with-protoc=protoc" (as the sysroot is in your PATH, and you can't
> predict where sysroot is).
>
> Ross
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20120725/d0d871ee/attachment.html>


More information about the yocto mailing list