ProtoJS

3 views
Skip to first unread message

Torben Weis

unread,
Mar 4, 2010, 7:45:52 PM3/4/10
to qwave...@googlegroups.com
The build of QWave does now require protojs, which is in the same SVN.

After updating clean your project, run ./refreshProtocols.sh, run qmake and make. ./refreshProtocols.sh will build protojs (in /tools/protojs), and generate some files.

protojs is an extension of protoc. When invoked with --cppjson_out it generates wrappers for the protobufs that serialize and deserialize to the JSON-wire-protocol. The resulting files are called *.pbjson.* and coexist with the *.pb.* files generated by protoc. You can run protojs as follows:

protojs --cpp_out=. --cppjson_out=.

In this case it outputs the *.pb.* and the *.pbjson.* files. When using the *.pbjson.* files, you must link to libprotojs (in /tools/libprotojs)/

... one step closer to a web-based client.

Torben

Reply all
Reply to author
Forward
0 new messages