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\python>python 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
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
unsigned int, PyObject = _object]':
google/protobuf/pyext/python-proto2.cc:641:7: instantiated from here
google/protobuf/pyext/python-proto2.cc:338:5: warning: deprecated
conversion fro
m string constant to 'char*'
writing
build\temp.win32-2.6\Release\google\protobuf\pyext\_net_proto2___python.
def
d:\Program Files\pythonxy\mingw\bin\g++.exe -mno-cygwin -mdll -static
--entry _D
llMain@12 --output-lib
build\temp.win32-2.6\Release\google\protobuf\pyext\lib_ne
t_proto2___python.a --def
build\temp.win32-2.6\Release\google\protobuf\pyext\_ne
t_proto2___python.def -s
build\temp.win32-2.6\Release\google\protobuf\pyext\pyth
on_descriptor.o
build\temp.win32-2.6\Release\google\protobuf\pyext\python_protob
uf.o build\temp.win32-2.6\Release\google\protobuf\pyext\python-proto2.o
-L../src
/.libs -Lc:\Python26\libs -Lc:\Python26\PCbuild -Wl,-R../src/.libs
-lprotobuf -l
python26 -lmsvcr90 -o
build\lib.win32-2.6\google\protobuf\internal\_net_proto2__
_python.pyd
g++:
build\temp.win32-2.6\Release\google\protobuf\pyext\lib_net_proto2___python.
a: No such file or directory
error: command 'g++' failed with exit status 1
--
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.