Skip to content

Commit

Permalink
proper command reference
Browse files Browse the repository at this point in the history
  • Loading branch information
indygreg committed Mar 27, 2011
1 parent 321ddb1 commit e0c9992
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Assuming you have a working protoc compiler on your system and have the existing

The command should produce no output if successful. Additionally, the file */path/to/output/directory/google/protobuf/compiler/plugin_pb2.py* should have been created.

Next, find the location of the installed protocol buffer Python package. If you have *locate*, try finding it via *`find descriptor_pb2.py`*. A common location is something like */usr/lib/python2.6/site-packages/protobuf-2.3.0-py2.6.egg/google/protobuf/*. Navigate to this directory and:
Next, find the location of the installed protocol buffer Python package. If you have *locate*, try finding it via *`locate descriptor_pb2.py`*. A common location is something like */usr/lib/python2.6/site-packages/protobuf-2.3.0-py2.6.egg/google/protobuf/*. Navigate to this directory and:

$ mkdir compiler
$ touch compiler/__init__.py
Expand All @@ -63,4 +63,4 @@ The produced C++ code contains _extern "C" { }_ blocks around all code that util

Windows requires an identifier for symbols to be exported from shared libraries. If compiling the lua-protobuf output to a shared library, you'll need to use a preprocessor define:

#define LUA_PROTOBUF_EXPORT __declspec(dllexport)
#define LUA_PROTOBUF_EXPORT __declspec(dllexport)

0 comments on commit e0c9992

Please sign in to comment.