I am following the instructions for building protobuf cpp_implementation 
given on https://github.com/google/protobuf/tree/master/python but I get 
errors.

I did the following steps:

   - Downloaded protobuf-3.2.0.tar.gz from 
   https://anaconda.org/conda-forge/protobuf/files?type=
   - Extracted locally
   - Installed C++ 14.0 Runtime
   - Ran python setup.py build --cpp_implementation

I then received the following error:

The system cannot find the path specified. running build running build_py 
running build_ext building 'google.protobuf.pyext._message' extension 
Traceback (most recent call last): File "setup.py", line 260, in 
ext_modules=ext_module_list, File 
"C:\Users\cliveh\AppData\Local\Continuum\Anaconda3\lib\distutils\core.py", 
line 148, in setup dist.run_commands() File 
"C:\Users\cliveh\AppData\Local\Continuum\Anaconda3\lib\distutils\dist.py", 
line 955, in run_commands self.run_command(cmd) File 
"C:\Users\cliveh\AppData\Local\Continuum\Anaconda3\lib\distutils\dist.py", 
line 974, in run_command cmd_obj.run() File 
"C:\Users\cliveh\AppData\Local\Continuum\Anaconda3\lib\distutils\command\build.py",
 
line 135, in run self.run_command(cmd_name) File 
"C:\Users\cliveh\AppData\Local\Continuum\Anaconda3\lib\distutils\cmd.py", 
line 313, in run_command self.distribution.run_command(command) File 
"C:\Users\cliveh\AppData\Local\Continuum\Anaconda3\lib\distutils\dist.py", 
line 974, in run_command cmd_obj.run() File 
"C:\Users\cliveh\AppData\Local\Continuum\Anaconda3\lib\site-packages\setuptools-27.2.0-py3.5.egg\setuptools\command\build_ext.py",
 
line 77, in run File 
"C:\Users\cliveh\AppData\Local\Continuum\Anaconda3\lib\site-packages\Cython\Distutils\build_ext.py",
 
line 164, in run _build_ext.build_ext.run(self) File 
"C:\Users\cliveh\AppData\Local\Continuum\Anaconda3\lib\distutils\command\build_ext.py",
 
line 338, in run self.build_extensions() File 
"C:\Users\cliveh\AppData\Local\Continuum\Anaconda3\lib\site-packages\Cython\Distutils\build_ext.py",
 
line 172, in build_extensions self.build_extension(ext) File 
"C:\Users\cliveh\AppData\Local\Continuum\Anaconda3\lib\site-packages\setuptools-27.2.0-py3.5.egg\setuptools\command\build_ext.py",
 
line 198, in build_extension File 
"C:\Users\cliveh\AppData\Local\Continuum\Anaconda3\lib\distutils\command\build_ext.py",
 
line 557, in build_extension target_lang=language) File 
"C:\Users\cliveh\AppData\Local\Continuum\Anaconda3\lib\distutils\ccompiler.py", 
line 717, in link_shared_object extra_preargs, extra_postargs, build_temp, 
target_lang) File 
"C:\Users\cliveh\AppData\Local\Continuum\Anaconda3\lib\distutils_msvccompiler.py",
 
line 462, in link build_temp = os.path.dirname(objects[0]) *IndexError: 
list index out of range*


I am using Python from Anaconda3-4.2.0-Windows-x86_64.exe with Python 3.5.2.


Has anyone managed to successfully build this?


I saw 
https://groups.google.com/forum/#!searchin/protobuf/cpp_implementation|sort:relevance/protobuf/EA9R3mWwJw0/Wpi1RXQ0DwAJ
 
which states "That's not supported. We only test python C++ implementation 
for linux and its windows version is known to be broken for quite a while. 
You are welcome to send us pull requests to fix the windows build issues 
though."


Does this mean that without development I cannot use the cpp implementation 
on Windows?  It would be good to know that this is not possible at the 
moment so I con pursue other possibilities to improve speed instead.


(I want the the cpp implementation as we need to deserialize fairly large 
messages which are currently taking around 5 seconds (0.5seconds in Java))


-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to