Questions tagged [protoc]

protoc is the compiler for .proto files. It generates language bindings for the messages and/or RPC services from .proto files. protoc is a native executable, the scripts under this directory build and publish a protoc executable (a.k.a. artifact) to Maven repositories. The artifact can be used by build automation tools so that users would not need to compile and install protoc for their systems.

taken from google documentation

387 questions
0
votes
1 answer

Scons: how to specify file dependency for 3rd party compile result?

It seem to me that scons targets are being generated not in declaration sequence. My problem is, I need to generate some code first, I'm using protoc to process a my.proto file into .h and .cc file, I need some pseudo code like this(what should the…
Troskyvs
  • 7,537
  • 7
  • 47
  • 115
0
votes
1 answer

protoc command not working with go generate

I have the following .proto file: $GOPATH/src/github.com/path/to/package/myPkg.proto with the following first few lines: syntax="proto3"; package myPkg; option go_package = "github.com/path/to/package"; Then I am creating a .go file with the…
JackyJohnson
  • 3,106
  • 3
  • 28
  • 35
0
votes
0 answers

Not getting method name or class name in native java from proto

I have created a proto file syntax = "proto3"; package example; message HelloRequest { string name = 1; } message HelloResponse { string greeting = 1; } // 4. service, unary request/response service GreetingService { rpc…
user2449952
  • 581
  • 1
  • 7
  • 21
0
votes
2 answers

gRPC the protoc compiler creates not the expected

i start whith gRPC bulding an easy Java Chat Programm. protc --version prints libprotoc 3.5.1 the -proto File: syntax = "proto3"; option java_multiple_files = true; option java_package = "grpc"; // whihout this Option i get no service option…
susanne
  • 21
  • 2
0
votes
1 answer

Hadoop 3.1 build fail at `protoc --version`

I am trying to compile Hadoop 3.1 from its source code. Once inside docker container i am building it with maven following included instructions in BUILDING.txt inside Hadoop's source code files. While Apache Hadoop Common…
Sarriman
  • 382
  • 5
  • 22
0
votes
1 answer

protoc executable unable to find object detection .protos file in tensorflow models

I am trying to work with the object detection api by tensorflow but was unable to install that properly. I looked up every solution in the internet and everything was in vain. Below is the error message I am getting: “C:\Program…
0
votes
0 answers

usage syntax for protoc to compile java

I am trying to communicate my Server with another Cloud service which speaks through a specific protocol that was developed based on Google Protocol Buffer. I wrote a Java program in Netbeans which is able to read messages from this Cloud service,…
Vinraj
  • 141
  • 1
  • 2
  • 9
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
0
votes
1 answer

protoc-gen-java code use Inline object prompt syntax error

describe I want to use java to call golang grpc.I used the old golang's consumer_proto.proto to gen java code process protoc --java_out=/home/xxx/src/main/java custom_proto.proto protoc…
Anteoy
  • 31
  • 4
0
votes
1 answer

Protocol buffers - only generating OuterClasses

I am trying to generate java source files from several proto files. Im using Ubuntu 17.04. I use the following shell script to do this: for i in ./src/main/proto/my-protos; do [ -f "$i" ] || break protoc -I= ./src/main/proto/my-protos/…
Magick
  • 4,603
  • 22
  • 66
  • 103
0
votes
1 answer

Building caffe, error linking google::protobuf, Debian 9.1

I have this problem, I am trying to build caffe on debian machine, I will build everything but at the end at linking I get multiple undefined references to google::protobuf::... I am attaching file with build log, containing error messages…
MrAzgra
  • 3
  • 2
  • 3
0
votes
0 answers

GCP Docker error: File does not reside within any path specified using --proto_path (or -I)

we are trying to host tensorflow object-detection model on GCP. we have maintain below directory structure before running "gcloud app deploy". For you convenient I am attaching the configuration files with the question. Wer are getting deployment…
Aniruddha
  • 26
  • 5
0
votes
0 answers

32-bit docker image - compiled binary appears as 64bit

Im trying to create a 32bit docker image, that has Googles gRPC on it. I have created the Dockerfile extending from: FROM i386/ubuntu:17.04 I am able to compile both gRPC and Proto Buffers, however, when I try to use protoc I get bash:…
Magick
  • 4,603
  • 22
  • 66
  • 103
0
votes
1 answer

PROTOBUF_GENERATE_CPP binary path

How does PROTOBUF_GENERATE_CPP know where to pick up the protoc binary from? I have compiled protobuf locally and would like to point my CMakeLists.txt to the installed binary ( myfolder/protobuf-install/bin/protoc ) and not the system binary (…
infoclogged
  • 3,641
  • 5
  • 32
  • 53
0
votes
1 answer

protobuf java runtime installation

I'm trying to build the Java runtime library for Protocol Buffers on Windows. I have downloaded and installed the binary distribution of protoc: protoc-3.3.0-win32 . I have downloaded the protobuf-master from https://github.com/google/protobuf. and…
1 2 3
25
26