neuropulse
22-07-2009 09:18:20
Greetings,
I have struggled for about 30 hours trying to get Python-Ogre to install on Mac OS X. I have no idea what I am doing. None of it makes any sense. I need step by step instructions that work. I want to learn to program by using Python-Ogre but I can't get it installed because there are no binaries or correct instructions for compiling.
I am using the latest versions of everything. Mac OS X 10.5.7 and Xcode 3.1
This is what I am doing:
Install latest wget
http://ftp.gnu.org/pub/gnu/wget/wget-1.9.1.tar.gz
Install latest svn
http://www.open.collab.net/downloads/community/
cd ~
mkdir development
cd development
svn -r 580 co https://python-ogre.svn.sourceforge.net ... ython-ogre python-ogre
Change environment.py to read
#[0, "mkdir ~/Library/Frameworks", ], ## Note that this will fail if the directory exists !!!
Change PythonOgreConfig_posix.py to read
FRAMEWORK_DIR = os.path.abspath(os.path.join(BASE_DIR, '..', 'Library','Frameworks')) ## need this for the Mac
# MAC_SDK_INCLUDE= '/Developer/SDKs/MacOSX10.4u.sdk/Developer/Headers/CFMCarbon'
MAC_SDK_INCLUDE= '/Developer/SDKs/MacOSX10.5.sdk/Developer/Headers/FlatCarbon'
MAC_CCFLAGS = ' -DBOOST_PYTHON_MAX_ARITY=19 -D_POSIX_C_SOURCE -DCF_OPEN_SOURCE'
# MAC_cflags = ' --gccxml-cxxflags "-DCF_OPEN_SOURCE -D_POSIX_C_SOURCE -isysroot /Developer/SDKs/MacOSX10.4u.sdk"'
MAC_cflags = ' --gccxml-cxxflags "-DCF_OPEN_SOURCE -D_POSIX_C_SOURCE -isysroot /Developer/SDKs/MacOSX10.5.sdk"'
python python-ogre/BuildModule.py -r -b -l build_libs.out.log cmake gccxml boost pygccxml cg scons
python python-ogre/BuildModule.py -r -b -l build_libs.out.log ogre
Tasks fail:
PythonOgre.BuildModule: INFO Build Command xcodebuild -project ogrenew/Mac/Ogre/Ogre.xcodeproj -configuration Release
PythonOgre.BuildModule: WARNING Task Failed
PythonOgre.BuildModule: INFO Build Command xcodebuild -project ogrenew/Mac/Samples/Samples.xcodeproj -configuration Release
PythonOgre.BuildModule: WARNING Task Failed
I try to compile Ogre and Samples in the Xcode application and there are hundreds of errors.
Then when I do this:
python python-ogre/BuildModule.py -g -c -l build_ogrewrapper.out.log ois ogre
it says
PythonOgre.BuildModule: INFO Building Source code for ois
PythonOgre.BuildModule: INFO Compiling Source code for ois
PythonOgre.BuildModule: WARNING Task Failed
PythonOgre.BuildModule: INFO Building Source code for ogre
PythonOgre.BuildModule: WARNING Task Failed
PythonOgre.BuildModule: INFO Compiling Source code for ogre
PythonOgre.BuildModule: WARNING Task Failed
Why is this so extremely difficult. Seems like it will never work. It's a nightmare.
I have struggled for about 30 hours trying to get Python-Ogre to install on Mac OS X. I have no idea what I am doing. None of it makes any sense. I need step by step instructions that work. I want to learn to program by using Python-Ogre but I can't get it installed because there are no binaries or correct instructions for compiling.
I am using the latest versions of everything. Mac OS X 10.5.7 and Xcode 3.1
This is what I am doing:
Install latest wget
http://ftp.gnu.org/pub/gnu/wget/wget-1.9.1.tar.gz
Install latest svn
http://www.open.collab.net/downloads/community/
cd ~
mkdir development
cd development
svn -r 580 co https://python-ogre.svn.sourceforge.net ... ython-ogre python-ogre
Change environment.py to read
#[0, "mkdir ~/Library/Frameworks", ], ## Note that this will fail if the directory exists !!!
Change PythonOgreConfig_posix.py to read
FRAMEWORK_DIR = os.path.abspath(os.path.join(BASE_DIR, '..', 'Library','Frameworks')) ## need this for the Mac
# MAC_SDK_INCLUDE= '/Developer/SDKs/MacOSX10.4u.sdk/Developer/Headers/CFMCarbon'
MAC_SDK_INCLUDE= '/Developer/SDKs/MacOSX10.5.sdk/Developer/Headers/FlatCarbon'
MAC_CCFLAGS = ' -DBOOST_PYTHON_MAX_ARITY=19 -D_POSIX_C_SOURCE -DCF_OPEN_SOURCE'
# MAC_cflags = ' --gccxml-cxxflags "-DCF_OPEN_SOURCE -D_POSIX_C_SOURCE -isysroot /Developer/SDKs/MacOSX10.4u.sdk"'
MAC_cflags = ' --gccxml-cxxflags "-DCF_OPEN_SOURCE -D_POSIX_C_SOURCE -isysroot /Developer/SDKs/MacOSX10.5.sdk"'
python python-ogre/BuildModule.py -r -b -l build_libs.out.log cmake gccxml boost pygccxml cg scons
python python-ogre/BuildModule.py -r -b -l build_libs.out.log ogre
Tasks fail:
PythonOgre.BuildModule: INFO Build Command xcodebuild -project ogrenew/Mac/Ogre/Ogre.xcodeproj -configuration Release
PythonOgre.BuildModule: WARNING Task Failed
PythonOgre.BuildModule: INFO Build Command xcodebuild -project ogrenew/Mac/Samples/Samples.xcodeproj -configuration Release
PythonOgre.BuildModule: WARNING Task Failed
I try to compile Ogre and Samples in the Xcode application and there are hundreds of errors.
Then when I do this:
python python-ogre/BuildModule.py -g -c -l build_ogrewrapper.out.log ois ogre
it says
PythonOgre.BuildModule: INFO Building Source code for ois
PythonOgre.BuildModule: INFO Compiling Source code for ois
PythonOgre.BuildModule: WARNING Task Failed
PythonOgre.BuildModule: INFO Building Source code for ogre
PythonOgre.BuildModule: WARNING Task Failed
PythonOgre.BuildModule: INFO Compiling Source code for ogre
PythonOgre.BuildModule: WARNING Task Failed
Why is this so extremely difficult. Seems like it will never work. It's a nightmare.