[protobuf] Re: What is the relation between length of data block and file length in varint?

2018-05-24 Thread Ruman Ahmed Rizvi

The original file is attached. Please help as soon as possible. Thank You

On Thursday, 24 May 2018 09:29:42 UTC+5:30, Ruman Ahmed Rizvi wrote:
>
> When working with protocol buffers and encoding and decoding of these 
> there is one issue occurred. In proto stream when decoding the file size 
> and data block length in varint, the data block length is bigger than the 
> file size? I am getting data block length greater than file length.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.


Slide.iwa
Description: Binary data


[protobuf] Protobuf can't be found via cmake - Installation problem via cmake

2018-05-24 Thread marmae1951
Hi everyone
I am trying to install a software which uses grpc, and which in turn needs 
protobuf.
Everything is installed via cmake.
cmake version 3.11.2
Protobuf version 3.5.1

I am receiving the following error when trying to install it:

CMake Error at cmake/protobuf.cmake:55 (find_package):
  Could not find a package configuration file provided by "Protobuf" with 
any
  of the following names:

ProtobufConfig.cmake
protobuf-config.cmake

  Add the installation prefix of "Protobuf" to CMAKE_PREFIX_PATH or set
  "Protobuf_DIR" to a directory containing one of the above files.  If
  "Protobuf" provides a separate development package or SDK, be sure it has
  been installed.
Call Stack (most recent call first):
  CMakeLists.txt:116 (include)

-- Configuring incomplete, errors occurred!

Has anyone seen this error already?
Any suggestions on how to solve it?

Many many thanks in advance!

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.


Re: [protobuf] What is the relation between length of data block and file length in varint?

2018-05-24 Thread Marc Gravell
I added a much longer version of this here:
https://stackoverflow.com/questions/50500626/what-is-the-relation-between-length-of-data-block-and-file-length-in-varint/50503626#50503626

On Thu, 24 May 2018 at 08:33, Marc Gravell  wrote:

> I wonder if you're decoding it incorrectly. Maybe if you could post the
> bytes that you're decoding to reach this contradictory result, we can
> advise you.
>
> On Thu, 24 May 2018 at 04:59, Ruman Ahmed Rizvi <
> ruman.ahmed.rizvi@gmail.com> wrote:
>
>> When working with protocol buffers and encoding and decoding of these
>> there is one issue occurred. In proto stream when decoding the file size
>> and data block length in varint, the data block length is bigger than the
>> file size? I am getting data block length greater than file length.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Protocol Buffers" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to protobuf+unsubscr...@googlegroups.com.
>> To post to this group, send email to protobuf@googlegroups.com.
>> Visit this group at https://groups.google.com/group/protobuf.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
> --
> Regards,
>
> Marc
>


-- 
Regards,

Marc

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.


Re: [protobuf] What is the relation between length of data block and file length in varint?

2018-05-24 Thread Marc Gravell
I wonder if you're decoding it incorrectly. Maybe if you could post the
bytes that you're decoding to reach this contradictory result, we can
advise you.

On Thu, 24 May 2018 at 04:59, Ruman Ahmed Rizvi <
ruman.ahmed.rizvi@gmail.com> wrote:

> When working with protocol buffers and encoding and decoding of these
> there is one issue occurred. In proto stream when decoding the file size
> and data block length in varint, the data block length is bigger than the
> file size? I am getting data block length greater than file length.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Protocol Buffers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to protobuf+unsubscr...@googlegroups.com.
> To post to this group, send email to protobuf@googlegroups.com.
> Visit this group at https://groups.google.com/group/protobuf.
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Regards,

Marc

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.