Thanks. I just saw issue https://github.com/google/protobuf/issues/2365 
about this, which was created by somebody else.

On Friday, November 18, 2016 at 11:16:32 PM UTC+1, Bo Yang wrote:
>
> Could you help create an issue on github?
>
> On Fri, Nov 18, 2016 at 2:13 PM Bo Yang <[email protected] <javascript:>> 
> wrote:
>
>> Hi Veselin,
>> We will add a target in our bazel file with -DHAVE_ZLIB=1 in the copt 
>> field.
>> Then you should be able to use that.
>>
>> On Fri, Nov 18, 2016 at 7:33 AM Veselin Raychev <[email protected] 
>> <javascript:>> wrote:
>>
>>> Dear Protobuf Experts,
>>>
>>> Currently, I am using protobuf from bazel by including in my WORKSPACE:
>>>
>>> git_repository(
>>> name = "protobuf",
>>> remote = "https://github.com/google/protobuf";,
>>> commit = "337a028bb65ccca4dda768695950b5aba53ae2c9",
>>> )
>>>
>>> This, however, does not compile protobuf with zlib and I cannot use the 
>>> Gzipped streams. From what I can see, there is no mention of zlib (or 
>>> HAVE_ZLIB) in the BUILD file in protobuf so no cpp code is generated 
>>> for GzipInputStream and GzipOutputStream and linking fails. Ideally, I 
>>> would like to include zlib in my WORKSPACE and point protobuf to it, but a 
>>> variant with dynamic linking to zlib is also ok. What is the easiest (but 
>>> good) way to tell protobuf to include zlib when compiled with bazel?
>>>
>>> Thanks
>>> Veselin
>>>
>>> -- 
>>> 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 [email protected] <javascript:>.
>>> To post to this group, send email to [email protected] 
>>> <javascript:>.
>>> Visit this group at https://groups.google.com/group/protobuf.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to