[protobuf] Re: Issue 281 in protobuf: python c++ implementation build fails with mingw32

2014-10-09 Thread protobuf

Updates:
Status: WontFix
Owner: xiaof...@google.com

Comment #3 on issue 281 by xiaof...@google.com: python c++ implementation  
build fails with mingw32

https://code.google.com/p/protobuf/issues/detail?id=281

(No comment was entered for this change.)

--
You received this message because this project is configured to send all  
issue notifications to this address.

You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
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 http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.


[protobuf] Re: Issue 281 in protobuf: python c++ implementation build fails with mingw32

2011-04-28 Thread protobuf


Comment #2 on issue 281 by redaread...@gmail.com: python c++ implementation  
build fails with mingw32

http://code.google.com/p/protobuf/issues/detail?id=281

hi, you are right,
sysconfig.get_config_var(CC) return None
but i can build other c extension as pyproj etc. with the same  
configuration.


even if i change CC with the real absolut path of c++ compiler, it alway  
fails to compile.

compiler = os.path.basename(sysconfig.get_config_var(CC))
#compiler = os.path.basename(r'D:\Program Files\pythonxy\mingw\bin\g++.exe')

message:
E:\ed\protobuf\pythonpython setup.py build --compiler=mingw32
Using EXPERIMENTAL C++ Implmenetation.
running build
running build_py
package init file 'google\protobuf\compiler\__init__.py' not found (or not  
a reg

ular file)
running build_ext
building 'google.protobuf.internal._net_proto2___python' extension
d:\Program Files\pythonxy\mingw\bin\gcc.exe -mno-cygwin -mdll -O -Wall  
-I../src
-I. -Ic:\Python26\include -Ic:\Python26\PC -c  
google/protobuf/pyext/python_descr
iptor.cc -o  
build\temp.win32-2.6\Release\google\protobuf\pyext\python_descriptor

.o
google/protobuf/pyext/python_descriptor.cc:91:1: warning: deprecated  
conversion

from string constant to 'char*'
google/protobuf/pyext/python_descriptor.cc:91:1: warning: deprecated  
conversion

from string constant to 'char*'
google/protobuf/pyext/python_descriptor.cc:91:1: warning: deprecated  
conversion

from string constant to 'char*'
google/protobuf/pyext/python_descriptor.cc:91:1: warning: deprecated  
conversion

from string constant to 'char*'
google/protobuf/pyext/python_descriptor.cc:91:1: warning: deprecated  
conversion

from string constant to 'char*'
d:\Program Files\pythonxy\mingw\bin\gcc.exe -mno-cygwin -mdll -O -Wall  
-I../src
-I. -Ic:\Python26\include -Ic:\Python26\PC -c  
google/protobuf/pyext/python_proto
buf.cc -o  
build\temp.win32-2.6\Release\google\protobuf\pyext\python_protobuf.o
d:\Program Files\pythonxy\mingw\bin\gcc.exe -mno-cygwin -mdll -O -Wall  
-I../src
-I. -Ic:\Python26\include -Ic:\Python26\PC -c  
google/protobuf/pyext/python-proto

2.cc -o build\temp.win32-2.6\Release\google\protobuf\pyext\python-proto2.o
google/protobuf/pyext/python-proto2.cc: In function 'void  
google::protobuf::pyth

on::AddConstants(PyObject*)':
google/protobuf/pyext/python-proto2.cc:132:3: warning: deprecated  
conversion fro

m string constant to 'char*'
google/protobuf/pyext/python-proto2.cc:132:3: warning: deprecated  
conversion fro

m string constant to 'char*'
google/protobuf/pyext/python-proto2.cc:132:3: warning: deprecated  
conversion fro

m string constant to 'char*'
google/protobuf/pyext/python-proto2.cc:132:3: warning: deprecated  
conversion fro

m string constant to 'char*'
google/protobuf/pyext/python-proto2.cc:132:3: warning: deprecated  
conversion fro

m string constant to 'char*'
google/protobuf/pyext/python-proto2.cc: At global scope:
google/protobuf/pyext/python-proto2.cc:268:1: warning: deprecated  
conversion fro

m string constant to 'char*'
google/protobuf/pyext/python-proto2.cc: In function 'bool  
google::protobuf::pyth

on::CheckAndGetDouble(PyObject*, double*)':
google/protobuf/pyext/python-proto2.cc:365:44: warning: deprecated  
conversion fr

om string constant to 'char*'
google/protobuf/pyext/python-proto2.cc: In function 'bool  
google::protobuf::pyth

on::CheckAndGetBool(PyObject*, bool*)':
google/protobuf/pyext/python-proto2.cc:383:43: warning: deprecated  
conversion fr

om string constant to 'char*'
google/protobuf/pyext/python-proto2.cc: In function 'bool  
google::protobuf::pyth
on::CheckAndSetString(PyObject*, google::protobuf::Message*, const  
google::proto

buf::FieldDescriptor*, const google::protobuf::Reflection*, bool, int)':
google/protobuf/pyext/python-proto2.cc:411:42: warning: deprecated  
conversion fr

om string constant to 'char*'
google/protobuf/pyext/python-proto2.cc:431:31: warning: deprecated  
conversion fr

om string constant to 'char*'
google/protobuf/pyext/python-proto2.cc: In function 'bool  
google::protobuf::pyth
on::CheckAndGetInteger(PyObject*, T*, PyObject*, PyObject*) [with T = int,  
PyObj

ect = _object]':
google/protobuf/pyext/python-proto2.cc:626:7:   instantiated from here
google/protobuf/pyext/python-proto2.cc:338:5: warning: deprecated  
conversion fro

m string constant to 'char*'
google/protobuf/pyext/python-proto2.cc: In function 'bool  
google::protobuf::pyth
on::CheckAndGetInteger(PyObject*, T*, PyObject*, PyObject*) [with T = long  
long

int, PyObject = _object]':
google/protobuf/pyext/python-proto2.cc:631:7:   instantiated from here
google/protobuf/pyext/python-proto2.cc:338:5: warning: deprecated  
conversion fro

m string constant to 'char*'
google/protobuf/pyext/python-proto2.cc: In function 'bool  
google::protobuf::pyth
on::CheckAndGetInteger(PyObject*, T*, PyObject*, PyObject*) [with T =  
unsigned i

nt, PyObject = _object]':
google/protobuf/pyext/python-proto2.cc:636:7:   instantiated from here

[protobuf] Re: Issue 281 in protobuf: python c++ implementation build fails with mingw32

2011-04-27 Thread protobuf


Comment #1 on issue 281 by liuj...@google.com: python c++ implementation  
build fails with mingw32

http://code.google.com/p/protobuf/issues/detail?id=281

Looks like you don't have a valid C compiler in your mingw32. Could you  
please run

sysconfig.get_config_var(CC) in python to see what it returns?

--
You received this message because you are subscribed to the Google Groups Protocol 
Buffers group.
To post to this group, send email to protobuf@googlegroups.com.
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.