Project

General

Profile

Protobuf installation instruction » History » Version 6

Anchi Cheng, 04/23/2014 12:19 PM

1 2 Anchi Cheng
h2. Portobuf installation instruction
2 1 Anchi Cheng
3 3 Anchi Cheng
Google Protobuf is an open source communication library DE use between client and server. For C++ programs, it is built into the program, so no external library installation is needed. However, for Python/Leginon only, the library will need to be added.  A simple way to install this for python use on DE camera computer (Windows) follows:
4 1 Anchi Cheng
5 3 Anchi Cheng
# Download 2.3.0 source zip file as well as the win32.zip binary file
6 5 Anchi Cheng
# Unzip both packages.
7
# Copy the binary file protoc-2.3.0-win32/proc.exe into protobuf-2.3.0\protobuf-2.3.0\src folder
8 6 Anchi Cheng
# Go into protobuf\python and run "python setup.py install".
9 4 Anchi Cheng
10
Note: If it attempts to install 0.6c9 version of setuptools and failed to obtain the file, download the ez_setup.py file from setuptools for Windows 7 at https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py  You can then replace the one in your protobuf-2.3.0/python folder.