[protobuf] Re: Issue 270 in protobuf: Precompiled protoc binary for OS X
Comment #4 on issue 270 by inder123: Precompiled protoc binary for OS X http://code.google.com/p/protobuf/issues/detail?id=270 I have XCode installed on my MacBook Pro (intel chip, fairly recent) with Leopard. However, make fails on me. Please consider providing precompiled Mac OS X binaries. dhcp-172-19-58-98:protobuf-2.4.0a inder$ make make all-recursive Making all in . Making all in src /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I..-D_THREAD_SAFE -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -O2 -g -DNDEBUG -MT descriptor.lo -MD -MP -MF .deps/descriptor.Tpo -c -o descriptor.lo `test -f 'google/protobuf/descriptor.cc' || echo './'`google/protobuf/descriptor.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -D_THREAD_SAFE -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -O2 -g -DNDEBUG -MT descriptor.lo -MD -MP -MF .deps/descriptor.Tpo -c google/protobuf/descriptor.cc -o descriptor.o google/protobuf/descriptor.cc: In member function ‘virtual const google::protobuf::FieldDescriptor* google::protobuf::DescriptorBuilder::OptionInterpreter::AggregateOptionFinder::FindExtension(google::protobuf::Message*, const std::string) const’: ./google/protobuf/descriptor.h:1152: error: ‘google::protobuf::internal::Mutex* google::protobuf::DescriptorPool::mutex_’ is private google/protobuf/descriptor.cc:4341: error: within this context ./google/protobuf/descriptor.h:1152: error: ‘google::protobuf::internal::Mutex* google::protobuf::DescriptorPool::mutex_’ is private google/protobuf/descriptor.cc:4342: error: within this context make[2]: *** [descriptor.lo] Error 1 -- You received this message because you are subscribed to the Google Groups Protocol Buffers group. To post to this group, send email to protobuf@googlegroups.com. To unsubscribe from this group, send email to protobuf+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/protobuf?hl=en.
[protobuf] Error in java Main
Good evening, I have been stepping through the non maven compile of proto buffers for Java and everything seems to have compiled correctly. However when I bring the main code into Eclipse as a project I get the following error. The method getUnknownFields() of type GeneratedMessage.BuilderBuilderType must override a superclass method has anyone seen this before or know how I can resolve it? Any help you are able to give will be very much appreciated. -- You received this message because you are subscribed to the Google Groups Protocol Buffers group. To post to this group, send email to protobuf@googlegroups.com. To unsubscribe from this group, send email to protobuf+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/protobuf?hl=en.
[protobuf] Re: Issue 270 in protobuf: Precompiled protoc binary for OS X
I have OSX 10.6 and built with Xcode 3 and 4 with no problems. Did you readme.txt? -- You received this message because you are subscribed to the Google Groups Protocol Buffers group. To post to this group, send email to protobuf@googlegroups.com. To unsubscribe from this group, send email to protobuf+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/protobuf?hl=en.
[protobuf] adding submessages to higher message
New to protoco buffers so sorry if this is a simple/stupid question. I have a proto: message WrapperMessage { enum Type { PING = 1; PONG = 2; } message Header{ required Type type = 1; required string source = 2; required int64 time = 3; } required TIMIHeader header = 1; repeated Ping ping= 2; repeated Pong pong= 3; extensions 500 to max; } message Pong { optional int32 count =1; optional string message = 2; } message Ping { optional int32 count =1; optional string message = 2; } I need the wrapper so that I can send multiple other message types over a single udp datastream. I was going to make a message factory to generate the Ping and Pong messages: Pong* pong = myFactory-createPong(Hello); How can I add this Pong message now to a wrapper? I want to be able to use the factory so I can generate several Pong messages at once to pack together in a single WrapperMessage before sending. I only see that calling: WrapperMessage.add_pong() will give me a Pong* back. But then I either have to merge that will my factory message or pass it to factory to populate. Any suggestions of better way to do this (or improve my proto design)? Thanks. -Aaron -- You received this message because you are subscribed to the Google Groups Protocol Buffers group. To post to this group, send email to protobuf@googlegroups.com. To unsubscribe from this group, send email to protobuf+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/protobuf?hl=en.
[protobuf] Re: adding submessages to higher message
I found the method: AddAllocated(Element*) which I think will add the Pong* that I have already created/allocated myself. Any input if there is a better method then this to use would be appreciated. Thanks. -Aaron On Wed, Apr 20, 2011 at 4:25 PM, Aaron Rich aaron.r...@gmail.com wrote: New to protoco buffers so sorry if this is a simple/stupid question. I have a proto: message WrapperMessage { enum Type { PING = 1; PONG = 2; } message Header{ required Type type = 1; required string source = 2; required int64 time = 3; } required TIMIHeader header = 1; repeated Ping ping= 2; repeated Pong pong= 3; extensions 500 to max; } message Pong { optional int32 count =1; optional string message = 2; } message Ping { optional int32 count =1; optional string message = 2; } I need the wrapper so that I can send multiple other message types over a single udp datastream. I was going to make a message factory to generate the Ping and Pong messages: Pong* pong = myFactory-createPong(Hello); How can I add this Pong message now to a wrapper? I want to be able to use the factory so I can generate several Pong messages at once to pack together in a single WrapperMessage before sending. I only see that calling: WrapperMessage.add_pong() will give me a Pong* back. But then I either have to merge that will my factory message or pass it to factory to populate. Any suggestions of better way to do this (or improve my proto design)? Thanks. -Aaron -- You received this message because you are subscribed to the Google Groups Protocol Buffers group. To post to this group, send email to protobuf@googlegroups.com. To unsubscribe from this group, send email to protobuf+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/protobuf?hl=en.