[protobuf] RProtoBuf: protocol buffers from/for/with R

2010-02-03 Thread francoisromain
Hello, We have release the first version of our R/protobuf binding to the central R repository: http://cran.r-project.org/web/packages/RProtoBuf/index.html The package uses protobuf reflection to dynamically load proto files and generate messages. As an example, here is how the quick example

Re: [protobuf] Error in compiling protobuf example

2010-02-03 Thread hap 497
Kenton, Thank you. It prints 'libprotoc 2.3.0'. And I have setup my LD_LIBRARY_PATH, PATH, PKG_CONFIG_PATH on my ubuntu env accordingly. $ protoc --version libprotoc 2.3.0 /media/EXTDIV/src/protobuf-2.3.0/examples:1014:14$ make cpp pkg-config --cflags protobuf # fails if protobuf is not

[protobuf] how to define a one-way rpc message?

2010-02-03 Thread phelyks
Hi all! I am currently playing around with protocol buffers and now was looking closer at the rpc code that can be generated by it. But I am a bit confused. I did not find a way how to create rpc messages that do not define a reply. is there a way to create one-way rpc calls in protocol

Re: [protobuf] how to define a one-way rpc message?

2010-02-03 Thread Adam Vartanian
the only workaround that i can think of would be creating a Void message that is declared as the answer and the rpc implementation to then ignore those. like this: message Void { } service myService { rpc OneWayWithoutResponse(FirmwareEvent) returns (Void); } is there a way how i

Re: [protobuf] Error in compiling protobuf example

2010-02-03 Thread Kenton Varda
Did you previously compile the examples with an older protoc? You need to make clean before trying to compile with a newer protoc. On Wed, Feb 3, 2010 at 9:18 AM, hap 497 hap...@gmail.com wrote: Kenton, Thank you. It prints 'libprotoc 2.3.0'. And I have setup my LD_LIBRARY_PATH, PATH,

Re: [protobuf] Error in compiling protobuf example

2010-02-03 Thread hap 497
Thanks. No, I have not installed any other version of protoc. But I have installed not in my '/usr/etc' directory, I instead in /meda/EXTDIV/bin', I am not sure if that is a problem. And I am using ubuntu 9.10 which has gcc 4.4. On Wed, Feb 3, 2010 at 10:35 AM, Kenton Varda ken...@google.com

Re: [protobuf] Error in compiling protobuf example

2010-02-03 Thread Kenton Varda
The .pb.h file compares the version of protoc that generated it against GOOGLE_PROTOBUF_MIN_PROTOC_VERSION, which is #defined in google/protobuf/stubs/common.h. We have never released a version in which this value was more than 2003000, which corresponds to protoc 2.3.0, so I can't imagine why

Re: [protobuf] Error in compiling protobuf example

2010-02-03 Thread hap 497
Thank you Kenton. I am able to resolve my problem. I basically did a 'make clean', but install it in the default directory (/usr/local/). Things work afterward. Thank you again. On Wed, Feb 3, 2010 at 11:32 AM, Kenton Varda ken...@google.com wrote: The .pb.h file compares the version of