[protobuf] Re: help! win7+cygwin make check failed
status update: I occasionally installed pkg-config later. Now all test passed. Problem solved. -Xiao Li On Aug 22, 11:29 pm, Xiao Li xiao.k...@googlemail.com wrote: Hi I am new here and was trying to install protobuf in win7 with cygwin, but have got following error after make check. Could anyone help to figure out what should I do to pass the check? (full log is attached) Thanks! -Xiao [--] Global test environment tear-down [==] 37 tests from 3 test cases ran. (4055 ms total) [ PASSED ] 37 tests. PASS: protobuf-lazy-descriptor-test.exe FAIL: protobuf-lite-test.exe Testing output to zip... Testing output to jar... ./google/protobuf/compiler/zip_output_unittest.sh: line 76: jar: command not found Warning: 'jar' command not available. Skipping test. PASS PASS: google/protobuf/compiler/zip_output_unittest.sh == 1 of 4 tests failed Please report to protobuf@googlegroups.com == make[3]: *** [check-TESTS] Error 1 make[3]: Leaving directory `/cygdrive/e/workspace/protobuf-2.4.1/src' make[2]: *** [check-am] Error 2 make[2]: Leaving directory `/cygdrive/e/workspace/protobuf-2.4.1/src' make[1]: *** [check] Error 2 make[1]: Leaving directory `/cygdrive/e/workspace/protobuf-2.4.1/src' make: *** [check-recursive] Error 1 log.txt 147KViewDownload -- 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.
Re: [protobuf] C++0x enum class
You can always modify the compiler with a plugin. --Chris On Tue, Aug 23, 2011 at 12:36 AM, Christopher Head hea...@gmail.com wrote: Hi, Does anyone know if Protobuf's C++ output is ever going to support enum classes? I'd like to be able to define the elements of my enum in just one place (i.e. in the message definition file) and then use that definition throughout my program, but I'd like it to be defined as an enum class rather than an old-style non-type-safe enum. Chris -- 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. -- Chris -- 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 326 in protobuf: protobuf shared library works well in android 2.3(NDK), but can not work on Android 2.1(NDK) and 2.2NDK
Comment #1 on issue 326 by bigtallb...@gmail.com: protobuf shared library works well in android 2.3(NDK), but can not work on Android 2.1(NDK) and 2.2NDK http://code.google.com/p/protobuf/issues/detail?id=326 *me.too -- 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] Dynamic protocol buffer generation in Java
I'd like to use dynamically generate/use protocol buffer objects in a running Java application. This would be running in a production environment (jre, not jdk) where protoc is not available. Has anyone written a utility in Java to parse a protocol buffer definition and dynamically build Java classes at runtime using something like asm? Mick -- 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.
Re: [protobuf] python equivalent of DynamicMessage
The python implementation is effectively all built around DynamicMessage. The GeneratedProtocolMessageType in reflection.py metaclass allows you to define message classes from descriptors. The problem is that it's difficult to convert *DescriptorProtos to the Descriptor objects that you need. There's been some work internally to address that. On Mon, Aug 22, 2011 at 1:46 PM, Jamie McCrindle jamiemccrin...@gmail.comwrote: Hi, We've been writing out 'self-describing' binary logs using protocol buffers by adding a serialised file descriptor set and descriptor in the header of binary logs. We can then read out the logs using Java's DynamicMessage. One of our partners uses python. Is there a python equivalent of DynamicMessage? regards, Jamie. -- 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. -- 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.
Re: [protobuf] Dynamic protocol buffer generation in Java
I'd like to use dynamically generate/use protocol buffer objects in a running Java application. This would be running in a production environment (jre, not jdk) where protoc is not available. Has anyone written a utility in Java to parse a protocol buffer definition and dynamically build Java classes at runtime using something like asm? No need for asm or anything like that, the protobuffer libraries already contain enough to do what you want to do. To create a new message definition, you can use DescriptorProto to create the message, put it in a FileDescriptorProto, and use FileDescriptor.buildFrom() to build it. Now you can get the descriptors out with FileDescriptor.getMessageTypes(). Once you have a message's Descriptor, you can parse messages using DynamicMessage.parseFrom(), and you can create new messages using DynamicMessage.Builder. - Adam -- 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] Issue 327 in protobuf: Support for C++0x enum class
Status: New Owner: liuj...@google.com Labels: Type-Defect Priority-Medium New issue 327 by hea...@gmail.com: Support for C++0x enum class http://code.google.com/p/protobuf/issues/detail?id=327 I would like the ability for Protobuf to generate C++ output in which some of the enums defined in the .proto files are turned into enum classes in the output for better type safety. Ideally one could specify on a per-enum basis whether to produce a regular enum or an enum class. -- 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 327 in protobuf: Support for C++0x enum class
Comment #1 on issue 327 by hea...@gmail.com: Support for C++0x enum class http://code.google.com/p/protobuf/issues/detail?id=327 (This is not a defect but an enhancement; the submission form permitted no way to change this AFAICT) -- 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.