jeroen / protolite

Fast and Simple Object Serialization to Protocol Buffers
Other
48 stars 9 forks source link

failed to compile with R version 4.1.2 #20

Closed elfayoumi closed 3 years ago

elfayoumi commented 3 years ago

Hi I tried to install the latest version from source code, but it fails because of missing include file: R version 4.1.2 (2021-11-01) Bird Hippie

I am not sure where is this file, I could not see geobuf.pb.h file anywhere..

Regards Ibrahim

jeroen commented 3 years ago

The geobuf.pb.h file gets autogenerated by protoc. The problem is this line from your output:

Warning: protoc version libprotoc 3.16.0 might not match libproto version 3.6.1.

I'm guessing you have mixed up versions of protocol buffers from anaconda and your OS. If you use anaconda you should probably install this package through anaconda: https://anaconda.org/conda-forge/r-protolite