Using protocol buffer in Windows

protocol buffers
install protoc windows
how to compile proto file
protocol buffer runtime library
protobuf example java
protocol buffers matlab
install protobuf windows python
protoc command

I am trying to use google protocol buffer in windows with python binding, however I meet some problem during the install step.

Follow the instruction, I have to compile the PB myself using vs, but I have no vs installed on my machine, then I found a window binary at the download page.

Also I download the full source code package, then I put the protoc-2.5.0-win32.zip\protoc.exe to C:\windows\system32.

Then I go to the protobuf-2.5.0.zip\python and run the python setup.py install to install the python binding.

However I get the error like this:

And when I check the directory, the file google\protobuf\compiler does not exist.

What's the problem?

Is it possible to use it without compiling?

I was just suffering from the same problem. The solution is to explicitly do the build step before.

python setup.py build
python setup.py install

That worked for me.

Installing TensorFlow Object Detection API on Windows 10, Each tutorial in this section shows you how to implement a simple application using protocol buffers in your favourite language, introducing you  I am trying to use google protocol buffer in windows with python binding, however I meet some problem during the install step. Follow the instruction, I have to compile the PB myself using vs, but I have no vs installed on my machine, then I found a window binary at the download page.

Before this package can be installed on windows you need to download the compiler (protoc.exe) and put it in the environment execution path.

After this step is done you can run:

python setup.py build

python setup.py install

~yy

Google Protocol Buffer Tutorial, Use the C# protocol buffer API to write and read messages. This isn't a comprehensive guide to using protocol buffers in C#. For more detailed  To build and install the C++ Protocol Buffer runtime and the Protocol Buffer compiler (protoc) execute the following: $ ./configure $ make $ make check $ make install If make check fails, you can still install, but it is likely that some features of this library will not work correctly on your system.

C:\Users\dev3\protobufcode\protobuf-master\python
$ python setup.py build
$ python setup.py install

C:\Users\dev3\protobufcode
$ python --version
Python 3.6.5
$ python -i build\gen\addressbook_pb2.py
>>> import addressbook_pb2
>>> Person = addressbook_pb2.Person()
>>> person = addressbook_pb2.Person()
>>> person.id = 1234
>>> person.name = "Go Fish"
>>> person.email = "gofish@example.com"
>>> phone = person.phones.add()
>>> phone.number = "111-2222"
>>> phone.type = addressbook_pb2.Person.HOME
>>> person
name: "Go Fish"
id: 1234
email: "gofish@example.com"
phones {
  number: "111-2222"
  type: HOME
}

>>>

What the hell is protobuf? - Noteworthy, To install protobuf, you need to install the protocol compiler (used to compile If you are using C++, please follow the C++ Installation Instructions to install protoc along with the C++ runtime. Language, Source, Ubuntu, MacOS, Windows  Questions: I am unable to find clear instructions to install Google Protocol Buffers (including compiler) on Windows x64 platform. I went through the instructions README file for compiler and source: For Compiler: To install, simply place this binary somewhere in your PATH I added system variable to Path: PROTOC ‘C:\dev_tools\protoc-2.4.1-win32’ I am stuck on installing

) is a method of serializing structured data. It is useful in developing programs to communicate with each other over a wire or for storing data. Using Protocol Buffers 1) Download the archives. You will need two archives for the compiler and the library to include. 2) Compile the protobuf library. The process depends on the language, 3) Create a development environment. For practical reasons, you should create a new directory 4)

data serializing protocol like a JSON or XML. 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. Protocol Buffers (Protobuf) is a binary serialization format for structured data. Protobuf is designed to emphasize simplicity and performance with a goal of being smaller and faster than XML. Device Simulation supports the proto3 version of the protocol buffers language.

CMake files that can be used to build protobuf with MSVC on Windows. You can build the project from Command Prompt and using an Visual Studio IDE. How can I use google protocol buffers compiler with Qt/C++ on Windows 8.1. What I found so far is compiling source codes on windows. But I dont want to compile it I don't have windows compiler and I can not install it right now, there is already binary executable for windows (protoc.exe).

Comments
  • did you find the answer to this?
  • Not yet. Finally I use ubuntu instead. :).
  • If you built it from source. You can temporarily copy protoc.exe from the build dir (e.g. vsprojects\x64\Release) into the src dir.