JimG
04-02-2008 14:24:59
Hi,
I followed the instructions on this page:
http://wiki.python-ogre.org/index.php/OSXBuildV2
and all proceeds very nicely until the next-to-last Terminal command (part of Step 4):
python python-ogre/BuildModule.py -g -c ois ogre
That generates the following output in the Terminal:
PythonOgre.BuildModule: INFO Building Source code for ois
PythonOgre.BuildModule: INFO Compiling Source code for ois
PythonOgre.BuildModule: INFO Building Source code for ogre
PythonOgre.BuildModule: INFO Compiling Source code for ogre
PythonOgre.BuildModule: WARNING Task Failed
Log.out seems to indicate an error with AliasTextureIterator and redefinitions. I should say that the demos in ogrenew run perfectly and that I also have the ogre SDK installed in /Library/Frameworks/.
Any ideas?
Here's log.out:
02-04 08:53 PythonOgre.BuildModule INFO Building Source code for ois
02-04 08:53 PythonOgre.BuildModule DEBUG Spawning 'python generate_code.py' in '/Users/jim/development/python-ogre/code_generators/ois'
02-04 08:53 PythonOgre.BuildModule INFO Compiling Source code for ois
02-04 08:53 PythonOgre.BuildModule DEBUG Spawning 'scons PROJECTS=ois' in '/Users/jim/development/python-ogre'
02-04 08:56 PythonOgre.BuildModule INFO Building Source code for ogre
02-04 08:56 PythonOgre.BuildModule DEBUG Spawning 'python generate_code.py' in '/Users/jim/development/python-ogre/code_generators/ogre'
02-04 08:59 PythonOgre.BuildModule INFO Compiling Source code for ogre
02-04 08:59 PythonOgre.BuildModule DEBUG Spawning 'scons PROJECTS=ogre' in '/Users/jim/development/python-ogre'
02-04 08:59 PythonOgre.BuildModule WARNING Task Failed
02-04 08:59 PythonOgre.BuildModule DEBUG scons: Reading SConscript files ...
Building ogre
scons: done reading SConscript files.
scons: Building targets ...
g++ -o build_dir_2.5/ogre_1.4/AliasTextureIterator.pypp.os -c -I -pipe -O3 -I./ -DBOOST_PYTHON_MAX_ARITY=19 -D_POSIX_C_SOURCE -DCF_OPEN_SOURCE -fPIC -I/Users/jim/development/root/usr/include/boost-1_34_1 -I/Users/jim/development/ogrenew/OgreMain/include -I/System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -I/Developer/SDKs/MacOSX10.4u.sdk/Developer/Headers/CFMCarbon -I/System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -I/Users/jim/development/root/usr/include/boost-1_34_1 generated/ogre_1.4/AliasTextureIterator.pypp.cpp
scons: building terminated because of errors.
02-04 08:59 PythonOgre.BuildModule DEBUG In file included from /Users/jim/development/root/usr/include/boost-1_34_1/boost/python/detail/wrap_python.hpp:50,
from /Users/jim/development/root/usr/include/boost-1_34_1/boost/python/detail/prefix.hpp:13,
from /Users/jim/development/root/usr/include/boost-1_34_1/boost/python/args.hpp:8,
from /Users/jim/development/root/usr/include/boost-1_34_1/boost/python.hpp:11,
from generated/ogre_1.4/python_ogre_precompiled.h:2,
from generated/ogre_1.4/AliasTextureIterator.pypp.cpp:3:
/System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/pyconfig.h:962:1: warning: "_POSIX_C_SOURCE" redefined
<command line>:1:1: warning: this is the location of the previous definition
In file included from /Users/jim/development/ogrenew/OgreMain/include/OgrePlatform.h:198,
from /Users/jim/development/ogrenew/OgreMain/include/OgrePrerequisites.h:32,
from /Users/jim/development/ogrenew/OgreMain/include/Ogre.h:32,
from generated/ogre_1.4/python_ogre_masterlist.h:7,
from generated/ogre_1.4/python_ogre_precompiled.h:4,
from generated/ogre_1.4/AliasTextureIterator.pypp.cpp:3:
/Users/jim/development/ogrenew/OgreMain/include/config.h:27:1: warning: "HAVE_SNPRINTF" redefined
In file included from /Users/jim/development/root/usr/include/boost-1_34_1/boost/python/detail/wrap_python.hpp:50,
from /Users/jim/development/root/usr/include/boost-1_34_1/boost/python/detail/prefix.hpp:13,
from /Users/jim/development/root/usr/include/boost-1_34_1/boost/python/args.hpp:8,
from /Users/jim/development/root/usr/include/boost-1_34_1/boost/python.hpp:11,
from generated/ogre_1.4/python_ogre_precompiled.h:2,
from generated/ogre_1.4/AliasTextureIterator.pypp.cpp:3:
/System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/pyconfig.h:485:1: warning: this is the location of the previous definition
/Developer/SDKs/MacOSX10.4u.sdk/Developer/Headers/CFMCarbon/mach/port.h:2: error: conflicting declaration ‘typedef int mach_port_t’
/usr/include/pthread.h:116: error: ‘mach_port_t’ has a previous declaration as ‘typedef __darwin_mach_port_t mach_port_t’
scons: *** [build_dir_2.5/ogre_1.4/AliasTextureIterator.pypp.os] Error 1
Thanks,
Jim
I followed the instructions on this page:
http://wiki.python-ogre.org/index.php/OSXBuildV2
and all proceeds very nicely until the next-to-last Terminal command (part of Step 4):
python python-ogre/BuildModule.py -g -c ois ogre
That generates the following output in the Terminal:
PythonOgre.BuildModule: INFO Building Source code for ois
PythonOgre.BuildModule: INFO Compiling Source code for ois
PythonOgre.BuildModule: INFO Building Source code for ogre
PythonOgre.BuildModule: INFO Compiling Source code for ogre
PythonOgre.BuildModule: WARNING Task Failed
Log.out seems to indicate an error with AliasTextureIterator and redefinitions. I should say that the demos in ogrenew run perfectly and that I also have the ogre SDK installed in /Library/Frameworks/.
Any ideas?
Here's log.out:
02-04 08:53 PythonOgre.BuildModule INFO Building Source code for ois
02-04 08:53 PythonOgre.BuildModule DEBUG Spawning 'python generate_code.py' in '/Users/jim/development/python-ogre/code_generators/ois'
02-04 08:53 PythonOgre.BuildModule INFO Compiling Source code for ois
02-04 08:53 PythonOgre.BuildModule DEBUG Spawning 'scons PROJECTS=ois' in '/Users/jim/development/python-ogre'
02-04 08:56 PythonOgre.BuildModule INFO Building Source code for ogre
02-04 08:56 PythonOgre.BuildModule DEBUG Spawning 'python generate_code.py' in '/Users/jim/development/python-ogre/code_generators/ogre'
02-04 08:59 PythonOgre.BuildModule INFO Compiling Source code for ogre
02-04 08:59 PythonOgre.BuildModule DEBUG Spawning 'scons PROJECTS=ogre' in '/Users/jim/development/python-ogre'
02-04 08:59 PythonOgre.BuildModule WARNING Task Failed
02-04 08:59 PythonOgre.BuildModule DEBUG scons: Reading SConscript files ...
Building ogre
scons: done reading SConscript files.
scons: Building targets ...
g++ -o build_dir_2.5/ogre_1.4/AliasTextureIterator.pypp.os -c -I -pipe -O3 -I./ -DBOOST_PYTHON_MAX_ARITY=19 -D_POSIX_C_SOURCE -DCF_OPEN_SOURCE -fPIC -I/Users/jim/development/root/usr/include/boost-1_34_1 -I/Users/jim/development/ogrenew/OgreMain/include -I/System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -I/Developer/SDKs/MacOSX10.4u.sdk/Developer/Headers/CFMCarbon -I/System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -I/Users/jim/development/root/usr/include/boost-1_34_1 generated/ogre_1.4/AliasTextureIterator.pypp.cpp
scons: building terminated because of errors.
02-04 08:59 PythonOgre.BuildModule DEBUG In file included from /Users/jim/development/root/usr/include/boost-1_34_1/boost/python/detail/wrap_python.hpp:50,
from /Users/jim/development/root/usr/include/boost-1_34_1/boost/python/detail/prefix.hpp:13,
from /Users/jim/development/root/usr/include/boost-1_34_1/boost/python/args.hpp:8,
from /Users/jim/development/root/usr/include/boost-1_34_1/boost/python.hpp:11,
from generated/ogre_1.4/python_ogre_precompiled.h:2,
from generated/ogre_1.4/AliasTextureIterator.pypp.cpp:3:
/System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/pyconfig.h:962:1: warning: "_POSIX_C_SOURCE" redefined
<command line>:1:1: warning: this is the location of the previous definition
In file included from /Users/jim/development/ogrenew/OgreMain/include/OgrePlatform.h:198,
from /Users/jim/development/ogrenew/OgreMain/include/OgrePrerequisites.h:32,
from /Users/jim/development/ogrenew/OgreMain/include/Ogre.h:32,
from generated/ogre_1.4/python_ogre_masterlist.h:7,
from generated/ogre_1.4/python_ogre_precompiled.h:4,
from generated/ogre_1.4/AliasTextureIterator.pypp.cpp:3:
/Users/jim/development/ogrenew/OgreMain/include/config.h:27:1: warning: "HAVE_SNPRINTF" redefined
In file included from /Users/jim/development/root/usr/include/boost-1_34_1/boost/python/detail/wrap_python.hpp:50,
from /Users/jim/development/root/usr/include/boost-1_34_1/boost/python/detail/prefix.hpp:13,
from /Users/jim/development/root/usr/include/boost-1_34_1/boost/python/args.hpp:8,
from /Users/jim/development/root/usr/include/boost-1_34_1/boost/python.hpp:11,
from generated/ogre_1.4/python_ogre_precompiled.h:2,
from generated/ogre_1.4/AliasTextureIterator.pypp.cpp:3:
/System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/pyconfig.h:485:1: warning: this is the location of the previous definition
/Developer/SDKs/MacOSX10.4u.sdk/Developer/Headers/CFMCarbon/mach/port.h:2: error: conflicting declaration ‘typedef int mach_port_t’
/usr/include/pthread.h:116: error: ‘mach_port_t’ has a previous declaration as ‘typedef __darwin_mach_port_t mach_port_t’
scons: *** [build_dir_2.5/ogre_1.4/AliasTextureIterator.pypp.os] Error 1
Thanks,
Jim