Evan Jones | 1 Apr 01:50 2012
Picon
Picon

Re: Protocol Buffers for IOS

On Mar 31, 2012, at 4:31 , Dhanaraj G wrote:
> I have gone through he following link..
> http://code.google.com/p/metasyntactic/wiki/ProtocolBuffers

There is no "official" support but I've used the following distribution with success, with the latest
protoc (I'm pretty sure):

https://github.com/booyah/protobuf-objc

Good luck,

Evan

--
http://evanjones.ca/

--

-- 
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To post to this group, send email to protobuf <at> googlegroups.com.
To unsubscribe from this group, send email to protobuf+unsubscribe <at> googlegroups.com.
For more options, visit this group at http://groups.google.com/group/protobuf?hl=en.

protobuf | 1 Apr 20:26 2012

Re: Issue 276 in protobuf: Windows paths should not be case sensitive for protoc command line.


Comment #1 on issue 276 by pet... <at> gmail.com: Windows paths should not be  
case sensitive for protoc command line.
http://code.google.com/p/protobuf/issues/detail?id=276

use different cases for drive letters   盘符大小写不一致就会错误,要么都是小 
写c 要么都是大写c,汗一个

--

-- 
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To post to this group, send email to protobuf <at> googlegroups.com.
To unsubscribe from this group, send email to protobuf+unsubscribe <at> googlegroups.com.
For more options, visit this group at http://groups.google.com/group/protobuf?hl=en.

protobuf | 2 Apr 16:25 2012

Re: Issue 380 in protobuf: Better project files for VS


Comment #1 on issue 380 by NN1436401 <at> gmail.com: Better project files for VS
http://code.google.com/p/protobuf/issues/detail?id=380

(No comment was entered for this change.)

Attachments:
	vsprojects.zip  13.0 KB

--

-- 
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To post to this group, send email to protobuf <at> googlegroups.com.
To unsubscribe from this group, send email to protobuf+unsubscribe <at> googlegroups.com.
For more options, visit this group at http://groups.google.com/group/protobuf?hl=en.

protobuf | 2 Apr 16:29 2012

Issue 380 in protobuf: Better project files for VS

Status: New
Owner: liuj... <at> google.com
Labels: Type-Defect Priority-Medium

New issue 380 by NN1436401 <at> gmail.com: Better project files for VS
http://code.google.com/p/protobuf/issues/detail?id=380

Added:
x64 platform
Correct name for PDB file.
Different output directories for Dynamic/Static CRT.

This allows batch build for all configurations and all platforms.

Feel free to change it as you like, but please update vcproj files.

Attachments:
	vsprojects.zip  12.6 KB

--

-- 
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To post to this group, send email to protobuf <at> googlegroups.com.
To unsubscribe from this group, send email to protobuf+unsubscribe <at> googlegroups.com.
For more options, visit this group at http://groups.google.com/group/protobuf?hl=en.

protobuf | 2 Apr 16:38 2012

Re: Issue 380 in protobuf: Better project files for VS


Comment #2 on issue 380 by NN1436401 <at> gmail.com: Better project files for VS
http://code.google.com/p/protobuf/issues/detail?id=380

(No comment was entered for this change.)

Attachments:
	vsprojects.zip  12.9 KB

--

-- 
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To post to this group, send email to protobuf <at> googlegroups.com.
To unsubscribe from this group, send email to protobuf+unsubscribe <at> googlegroups.com.
For more options, visit this group at http://groups.google.com/group/protobuf?hl=en.

protobuf | 2 Apr 16:52 2012

Re: Issue 380 in protobuf: Better project files for VS


Comment #3 on issue 380 by NN1436401 <at> gmail.com: Better project files for VS
http://code.google.com/p/protobuf/issues/detail?id=380

(No comment was entered for this change.)

Attachments:
	vsprojects.zip  12.9 KB

--

-- 
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To post to this group, send email to protobuf <at> googlegroups.com.
To unsubscribe from this group, send email to protobuf+unsubscribe <at> googlegroups.com.
For more options, visit this group at http://groups.google.com/group/protobuf?hl=en.

Dhanaraj G | 2 Apr 14:04 2012
Picon

Re: Protocol Buffers for IOS

One more option i found is in following link..

http://tinsuke.wordpress.com/2011/02/17/how-to-cross-compiling-libraries-for-ios-armv6armv7i386/

We just need to copy the following file to /protobuf-2.4.1/ folder

http://goo.gl/OuP7f

then give the command in terminal

cd protobuf-2.4.1/
bash build_dependencies.sh

You will get the universal binary in protobuf-2.4.1/outdir folder

Regards,
Dhanaraj

On Apr 1, 4:50 am, Evan Jones <ev... <at> csail.mit.edu> wrote:
> On Mar 31, 2012, at 4:31 , Dhanaraj G wrote:
>
> > I have gone through he following link..
> >http://code.google.com/p/metasyntactic/wiki/ProtocolBuffers
>
> There is no "official" support but I've used the following distribution with success, with the latest
protoc (I'm pretty sure):
>
> https://github.com/booyah/protobuf-objc
>
> Good luck,
(Continue reading)

Roman Vinogradov | 2 Apr 14:30 2012
Picon

Fast navigation in binary gzip'ed file that includes messages of variable length

Hello,

I use protobuf to store events in playback file for further replaying.
I use Coded*Stream on top of Gzip*Stream which is on top of
File*Stream. The playback file is big enough, can be up to 3 GB a day
(hundreds of millions of events).
Everything works ok - all events encoded in the file can be replayed
back just fine.
Now I need to navigate through the playback (forth and back), kind of
rewinding.
I wanted to periodically insert special key frames that include such
information as byte offset of previous key frame (to rewind back) and
similar offset of the next key frame (to rewind forth), plus some
other key data. So I would navigate through the file faster by
skipping big portions of events between such key frames.
In order to maintain key frames linked each to other I need to move
back in the output buffer, modify previous key frame with correct
value of offset field and move forward to the initial position in
order to serialize next key frame and further events and so on. If
needed key frame can be of fixed size (e.g. sfixed64 types can be
used).
Reading and partial parsing of all events until good one is found is
not an option.

How is this possible with protobuf implementation? e.g.
CodedOutputStream::Skip(int count) doesn't accept negative count as a
parameter.

Perhaps there is alternate way to reach the goal - fast navigation in
the binary gzip'ed file that includes messages of variable length.
(Continue reading)

protobuf | 3 Apr 17:00 2012

Issue 381 in protobuf: Do not use heap where stack can be used

Status: New
Owner: liuj... <at> google.com
Labels: Type-Defect Priority-Medium

New issue 381 by NN1436401 <at> gmail.com: Do not use heap where stack can be  
used
http://code.google.com/p/protobuf/issues/detail?id=381

In generated code you see following lines:

ImportMessageLite::default_instance_ = new ImportMessageLite();
Message1::default_instance_ = new Message1();
Message2::default_instance_ = new Message2();
...

Instead of heap a stack can be used with placement new trick.
Same as boost::optional does  
http://www.boost.org/doc/libs/1_49_0/libs/optional/doc/html/index.html
You can adapt this method and decrease heap fragmentation.

--

-- 
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To post to this group, send email to protobuf <at> googlegroups.com.
To unsubscribe from this group, send email to protobuf+unsubscribe <at> googlegroups.com.
For more options, visit this group at http://groups.google.com/group/protobuf?hl=en.

Nicola Ferruzzi | 3 Apr 02:34 2012
Picon

Re: Protocol Buffers for IOS


> Is there any direct support for Protocol Buffers  in iOS? (armv6,
> armv7)
>
> I have gone through he following link..http://code.google.com/p/metasyntactic/wiki/ProtocolBuffers
>
> It uses v2.2 and currently available version is v2.4

I use latest version in my app .. you don't really need objc direct
support if you are familiar with C++, there is only one point where
you have to pass from std::string to NSData and viceversa. And its
pretty simple.

To compile and test the easiest way Ive found is to just import the
whole google directory in my own project :) (the second time you can
make your own framework but for testing this procedure just works)

- download latest version
- autogen configure and make like you were just building for macosx
(you need command line tools) . This way you end up with protoc binary
and the library for macosx (which you don't need)
- open your Xcode iOS project
- add "new file" to your project and select google directory
- add the directory of google headers to your additional include
directories
- add config.h from the protobuffer src directory to your app
- from the google group remove everything that contains unitest :)
- from the google group remove compiler and java stuff;
- you should be able to compile without any linking error

(Continue reading)


Gmane