Questions tagged [protobuf-c]

Protocol buffers are Google's language-neutral, platform-neutral, extensible mechanism for serializing structured data

in this context, protobuf-c is strong related to c because the automatically generated code is C headers and implementation.

From the official site:

Protocol buffers are Google's language-neutral, platform-neutral, extensible mechanism for serializing structured data – think XML, but smaller, faster, and simpler. You define how you want your data to be structured once, then you can use special generated source code to easily write and read your structured data to and from a variety of data streams and using a variety of languages.

205 questions
0
votes
0 answers

No rule to make target with Cmake protobuf

I am trying to get Cmake to compile my protofiles. I use the following CMakeLists.txt for that. include(FindProtobuf) find_package(Protobuf REQUIRED) # check if protobuf was found if(PROTOBUF_FOUND) message ("protobuf found") else() message…
Mike
  • 3,775
  • 8
  • 39
  • 79
0
votes
1 answer

Enconde a list of maps in protobuf?

Background I am trying to use protobuff for one of our apps, but I am having trouble understanding the protocol and I need help creating a .proto file. Data The data I need to encode is a list of maps, with the following structure: [ { …
Flame_Phoenix
  • 16,489
  • 37
  • 131
  • 266
0
votes
0 answers

Multiple definition with Protobuffer 3.7.1 generated files

I try to compile some protocol-buffer files and I am getting the following errors. [ 99%] Building CXX object CMakeFiles/lattice_planner.dir/modules/control/proto/lat_controller_conf.pb.cc.o [100%] Linking CXX executable…
j35t3r
  • 1,254
  • 2
  • 19
  • 53
0
votes
1 answer

flutter + protobuf + (some encryption algorithm), is this OK?

flutter + protobuf + (some encryption algorithm), is this OK? do i need to add (some encryption algorithm) for my app while using protobuf? is it able to use protobuf with flutter?
gpu
  • 129
  • 10
0
votes
2 answers

Errors running Sagemaker Batch Transformation with LDA model

I've successfully trained a LDA model with sagemaker, I've been able to set up an Inference API but it has a limit of how many records I can query at a time. I need to get predictions for a large file and have been trying to use Batch…
D_usv
  • 433
  • 7
  • 21
0
votes
0 answers

How to compile Protobuf library for customised version of Eclipse on Windows 7?

I want to compile Protobuf library for C++ on Windows 7 the only constraint I am facing is my application with which i want to bind the static lib of Protobuf, uses .a extension of lib(the linux extension for static lib) , i am confused how to…
0
votes
1 answer

C++ terminate called after throwing an instance of 'std::system_error'

Recently I have started working on Grpc. On Grpc C++ compilation I get below error, not sure what is caused the issue. I am not from C++ background, any help will be much useful for me. [HOSTLD] Linking…
Murali Perumal
  • 309
  • 1
  • 5
  • 13
0
votes
0 answers

run protobuf example on Mac OS with error

I successfully install protobuf on MacOS, but when running the examples in the git repository, I receive some errors but only one is shown below. make cpp pkg-config --cflags protobuf # fails if protobuf is not installed -pthread…
zmwang
  • 519
  • 1
  • 7
  • 13
0
votes
2 answers

How can I stop printing the error message "Can't parse message of type because it is missing required fields" with protobuf3

I just want to parse an instance from a string when logging something, and don't care the result. But when I update protobuf to 3.5.0, the annoying message is always printing to the terminal (stderr): “Can't parse message of type because it is…
Z. Chi
  • 11
0
votes
2 answers

Telling omake to use static version of a c library

I'm using omake to build a native binary executable. After it links and i try to run it, it fails to run giving the following error: error while loading shared libraries: libprotobuf-c.so.1: cannot open shared object file: No such file or…
0
votes
1 answer

C++ Converting protobuf in json

I'am trying to connect some data from protobuf to json. This are the relevants parts of my code: Message* m; std::string json; std::string binary_s; ...fill the message... m->serializeToString(&binary_s); MessageToJsonString(*m, &json); The…
Franconet
  • 41
  • 1
  • 10
0
votes
0 answers

Compiling of Protouf file in aix getting failed

I am trying to compile protobuf in Aix machine, during make giving me given below error /usr/bin/as -u -mpwr4 -many -o ../src/VistaraAgent/build/Debug/AIX/net/AgentProtoBufData.pb.o /tmp//ccsfEtju.s Assembler: /tmp//ccsfEtju.s: line 4122: 1252-142…
Shivam
  • 211
  • 1
  • 13
0
votes
2 answers

ld.so.1: protoc: fatal: libstdc++.so.6: version 'GLIBCXX_3.4.20' not found in Solaris 11

I Installed protobuffer in my solaris 11, Now to generate the addressbook.pb.h and addressbook.pb.cc file i gave given below command protoc -I=$SRC_DIR --cpp_out=$DST_DIR $SRC_DIR/addressbook.proto but instead of getting desired file i got given…
Shivam
  • 211
  • 1
  • 13
0
votes
1 answer

How to link protobufs in iOS

I've been struggling trying to get protobufs 3 to compile/run for iOS. Everything compiles, but at runtime I get: dyld: Library not loaded: /usr/local/lib/libprotobuf.15.dylib Referenced from: /path/to/TheApp.app/TheApp Reason: no suitable image…
fionbio
  • 3,368
  • 2
  • 23
  • 38
0
votes
1 answer

Including multiple proto files on to one project causes protobuf_AssignDescriptorsOnce() already has a body

I have got multiple proto files from the server created under the same package. When I add more than one of those proto files on to a project, each proto file is generating its own .pb.cc and .h files and each generated file has the below two…
Abilash
  • 155
  • 1
  • 1
  • 9