Up to Date Instructions for Installing on Mac OS X Please

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.

andy

22-07-2009 10:33:07

You stated that you tried to compile Ogre and samples and that these failed -- can you determine what the errors are (use Xcode) as without getting the base Ogre library working PythonOgre doesn't stand a chance..

Andy

neuropulse

22-07-2009 10:49:38

"You stated that you tried to compile Ogre and samples and that these failed -- can you determine what the errors are (use Xcode) as without getting the base Ogre library working PythonOgre doesn't stand a chance.."


Hey. I want to make sure of something. The Ogre that is trying to be compiled here is different from the one for C for which there is a binary? I have been assume they are different or the instructions would say to just download the compiled version.

The OgreSDK_v1.6.2.dmg file on this page. http://sourceforge.net/projects/ogre/files/

neuropulse

22-07-2009 11:29:19

Here are some of the errors from Xcode for the Ogre project.

/Users/Chuck/development/ogrenew/Mac/Ogre/../../OgreMain/src/OgrePixelConversions.h:87: error: 'uint8' does not name a type
/Users/Chuck/development/ogrenew/Mac/Ogre/../../OgreMain/src/OgrePixelConversions.h: In constructor '<unnamed>::Col3b::Col3b(unsigned int, unsigned int, unsigned int)':
/Users/Chuck/development/ogrenew/Mac/Ogre/../../OgreMain/src/OgrePixelConversions.h:86: error: class '<unnamed>::Col3b' does not have any field named 'x'
/Users/Chuck/development/ogrenew/Mac/Ogre/../../OgreMain/src/OgrePixelConversions.h:86: error: 'uint8' was not declared in this scope
/Users/Chuck/development/ogrenew/Mac/Ogre/../../OgreMain/src/OgrePixelConversions.h:86: error: class '<unnamed>::Col3b' does not have any field named 'y'
/Users/Chuck/development/ogrenew/Mac/Ogre/../../OgreMain/src/OgrePixelConversions.h:86: error: expected `)' before 'b'
/Users/Chuck/development/ogrenew/Mac/Ogre/../../OgreMain/src/OgrePixelConversions.h:86: error: class '<unnamed>::Col3b' does not have any field named 'z'
/Users/Chuck/development/ogrenew/Mac/Ogre/../../OgreMain/src/OgrePixelConversions.h:86: error: expected `)' before 'c'
/Users/Chuck/development/ogrenew/Mac/Ogre/../../OgreMain/src/OgrePixelConversions.h: At global scope:
/Users/Chuck/development/ogrenew/Mac/Ogre/../../OgreMain/src/OgrePixelConversions.h:102: error: 'uint32' was not declared in this scope