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
1 answer

Netty + Protocol Buffers Java <-> C communication issue

I am trying to use Netty and Protocol Buffers (and encryption but this does not affect this issue). The server is written in Java using Netty and clients are supposed to be written in C and in Java. Here is the Java server side code. Application…
janas
  • 1
  • 1
0
votes
0 answers

Unresolved external symbol error while trying to compile caffemodel parser

Trying to run this code - https://github.com/Smorodov/Caffemodel-Parser Steps I followed - 1) Copy contents of protobuf 3.3 to protobuf folder 2) Copy gmock contents to protobuf folder 3) Run CMake 4) Run generate_caffe_pb_cc.bat file 5) Build…
0
votes
1 answer

Cygwin pkg-config/protobuf filepath issues

I'm trying to compile & install a C++ library using Cygwin. I've properly installed the library's dependencies. However, ./configure is throwing an error: checking for protobuf... no configure: error: Package requirements (protobuf >= 3.3) were…
tmaxthomas
  • 11
  • 1
  • 1
  • 3
0
votes
1 answer

Compile faster_rcnn_cplusplus and caffe example with correct protobuf

I Installed protobuffer 3.3.0 form a source code instead of version 2.6.1 used "make" to make caffe, tested it, and tried to compile faster_rcnn_cplusplus Unfortunately it gives ma an…
0
votes
1 answer

Deducing Protobuf Schema and Datatypes

I have a number of protobuf files but no .proto schema file! cat myfile.pbuf | protoc --decode_raw > outputfile.txt Using the above command, I was able to decode the file into a somewhat readable protobuf format (Thanks): 1: 1 2: "" 2 { 1:…
David Ferris
  • 2,215
  • 6
  • 28
  • 53
0
votes
3 answers

How to extract and print the correct value while decoding the protobuf in Python

(Pdb) p mac '\xd0\xbf\x9c\xd8\xf0\x00' p type(mac) Using Python2.7, how can I extract and print the exact MAC-address? In .proto message, mac_address is defined as "optional bytes mac".
user7375520
  • 273
  • 2
  • 15
0
votes
1 answer

Building tensorflow v1.X with SSE4.1, SSE4.2, and AVX instructions

I'm using tensorflow (without GPU support) and I'm seeing a fairly significant hit in performance compared to what's expected. So, I figured it was time to pay attention to these warnings: W tensorflow/core/platform/cpu_feature_guard.cc:45] The…
Ben
  • 6,986
  • 6
  • 44
  • 71
0
votes
0 answers

Packing repeated bytes in protobuf-c

So I'm trying to serialize a struct containing a byte array and its size: struct Msg { unsigned char* payload; size_t payload_size; }; the following code uses an instance of this struct called msg. DiagResp resp = DIAG_RESP__INIT; …
embedded_crysis
  • 193
  • 2
  • 12
0
votes
1 answer

When I tried to compile Bazel 0.1.0 with protoc 3.0.0 alpha 3 and jdk 1.8 on Jetson TK1, I met this JNI link error

When I tried to compile Bazel 0.1.0 with protoc 3.0.0 alpha 3 and jdk 1.8 on Jetson TK1, I met this JNI link error in Building Bazel tools. INFO: Blaze version info: Build label: head (@125b349) Build target:…
0
votes
1 answer

Protobuf c++ extensions use

I'm using google protobuf library version 2.61 and want to use extensions, I have the following proto files: package communication; message BaseMessage { required uint64 server_id = 1; required string uuid = 2; required uint64…
RythemOfTheDay
  • 195
  • 2
  • 9
0
votes
0 answers

Protobuf extension_count returning zero

I'm currently using protobuf for a project (C++), when I invoke field_count, it correctly returns 5 fields, for that message, but 0 for extensions. I did extend that message, on another file, something along these lines: File A: package…
Prozak
  • 1
  • 1
0
votes
1 answer

PROTOBUFF INT64 check aganist previously entered data c++

message HealthOccurrenceCount { required int64 HealthID=1; required int32 OccCount=2; optional bytes wci=3; } I would like to add data based on HealthID; If HealthID is already entered then instead of adding a new entry, the program…
Sijith
  • 3,740
  • 17
  • 61
  • 101
0
votes
2 answers

how to write proto file with bytes embedded message

I have an encoded binary as follows: 0a 16 0a 06 72 63 6e 33 31 72 12 0a 65 37 36 30 34 32 33 35 32 37 1a 00 20 01 2a 06 34 34 38 37 38 I am not sure how to write the proto file reflecting the binary. I know the message contents. 1. First two…
CodeWeed
  • 971
  • 2
  • 21
  • 40
0
votes
1 answer

Build protobuf-c, libprotobuf-c, for mbed LPC1768 arm-none-eabi-g++

I'm trying to build libprotobuf-c for the mbed platfrom but having some issues with the ./configure settings. I think I need more compile flags but am unsure what to include. Any help would be much appreciated. Thanks! ./configure arm-none-eabi…
afking
  • 11
  • 2
0
votes
1 answer

Cmake error build lib

I write simple Protobuf-C lib. While compile it to lib i Have follow error: Scanning dependencies of target ArgentumTracer-native [ 16%] Building C object…
Rinat Mukhamedgaliev
  • 5,401
  • 8
  • 41
  • 59
1 2 3
13
14