Build problems

23 views
Skip to first unread message

seas

unread,
Sep 3, 2010, 4:30:58 AM9/3/10
to protobuf-gwt
Is it possible to build protobuf-gwt? I have problems - a lot of
classes cannot be found, like JavaHelpers. Are there any dependencies
requirements?

Regards,
Andrey

Thomas Broyer

unread,
Sep 3, 2010, 6:12:38 AM9/3/10
to protobuf-gwt
See http://groups.google.com/group/protobuf-gwt/browse_thread/thread/3890298a66c220de

You have to:
1. patch protobuf (with the patch referenced on the other thread)
2. use protoc on protobuf's plugin.proto (patched above)
3. build the protoc-gen-gwt project
4. build the protobuf-gwt project

Alternatively, instead of patching protobuf, you can put the classes
from the patch in your working copy of protoc-gen-gwt. You'll still
have to patch plugin.proto though, or protoc won't generate the
classes that protoc-gen-gwt expects.

If you face errors when compiling, first check the Ant properties you
can/should tweak (they're all at the top of each build.xml), then do
not hesitate to come back here.

Disclaimer: the project is far from finished, and probably not yet
usable. I stopped development as we're finally not going to use
protobuf on our project at work, but I was thinking recently about
reviving it to at least make it usable (if not optimized).

Note that if you use optimize_for=SPEED (the default), the GWT
compiler won't prune the message descriptors, even if you don't use
them. You can try this patch to enhance the GWT compiler so it prunes
much more things that it currently does (hopefully not too much ;-) ):
http://gwt-code-reviews.appspot.com/609801
Reply all
Reply to author
Forward
0 new messages