Ok, I'm having problems compiling the ogre generated code using these
steps:
http://wiki.python-ogre.org/index.php/OSXBuild10.6
I get all the way to step 4 and the build fails. I had to fall back to
using SDK 10.5 since I couldn't get the Ogre framework to build using
the 10.6 SDK.
I can generate (-g) the ogre and ois code, but ogre won't compile (-
c).
I'm doing:
python python-ogre/BuildModule.py -c ogre
Many files compile, but the last g++ line in log.out is:
g++ -o build_dir_2.6/ogre_1.6.1/UserDefinedObject.pypp.os -c -I./ -O3 -
dynamic -fPIC -DBOOST_PYTHON_NO_PY_SIGNATURES -
DBOOST_PYTHON_MAX_ARITY=19 -ftemplate-depth-128 -finline-functions -
Wno-inline -Wall -no-cpp-precomp -gdwarf-2 -DNDEBUG -include strings.h
-include Carbon/Carbon.h -I/Users/alfred/Downloads/development/python-
ogre/generated/ogre_1.6.1 -arch i386 -D__ASSERTMACROS__ -F/Users/
alfred/Library/Frameworks -fPIC -I/Users/alfred/Downloads/development/
root/usr/include -I/Users/alfred/Downloads/development/ogre/OgreMain/
include -I/System/Library/Frameworks/Python.framework/Versions/2.6/
include/python2.6 -I/System/Library/Frameworks/Python.framework/
Versions/2.6/include/python2.6 -Ibuild_dir_2.6/ogre_1.6.1/None -
Igenerated/ogre_1.6.1/None generated/ogre_1.6.1/
UserDefinedObject.pypp.cpp
I got this error:
/System/Library/Frameworks/Python.framework/Versions/2.6/include/
python2.6/pyconfig.h:561:1: warning: this is the location of the
previous definition
generated/ogre_1.6.1/UTFString.pypp.cpp: In function ‘void
register_UTFString_class()’:
generated/ogre_1.6.1/UTFString.pypp.cpp:1453: error: address of
overloaded function with no contextual type information
generated/ogre_1.6.1/UTFString.pypp.cpp:2698: error: address of
overloaded function with no contextual type information
generated/ogre_1.6.1/UTFString.pypp.cpp:3057: error: address of
overloaded function with no contextual type information
generated/ogre_1.6.1/UTFString.pypp.cpp:3701: error: address of
overloaded function with no contextual type information
and in many places (about 23 errors) similar to this:
/Users/alfred/Downloads/development/root/usr/include/boost/python/
operators.hpp:212: error: ambiguous overload for ‘operator+’ in ‘l +
r’
/Users/alfred/Downloads/development/root/usr/include/boost/python/
operators.hpp:301: error: ambiguous overload for ‘operator+=’ in ‘l.
boost::python::back_reference<T>::get [with T =
Ogre::UTFString::_const_fwd_iterator&]() += r’
and about 500 warnings of the same kind:
/Users/alfred/Downloads/development/ogre/OgreMain/include/config.h:
27:1: warning: "HAVE_SNPRINTF" redefined
Any ideas how to move forward?
-alfred