jacknutting
04-10-2005 08:36:36
I've been working on getting this going (with svn revision 194, checked out yesterda). Here are some notes for whoever's maintaining docs/build_macosx.txt...
First of all, it should be mentioned somewhere that the swig step is really slow, at least with version 1.3.25. It took about 70 minutes on my 1.33MHz iBook with 768 megs of RAM.
Then, the compiler invocation references a framework (libpng) that is not inlcuded in the clump of Mac frameworks (Cg, IL, SDL, zzip) supplied on the ogre3d download page. I made this compile by just removing "-framework libpng" from the command, but I'm not sure what repercussions this may have; The main Ogre3d example programs run successfully, and seem to be accessing png files in Samples/Matericals/textures without any trouble, so we may be getting png access "for free" through another framework.
Next, the compiler invocation doesn't generate ogre.pyc, though its existence is suggested by the "cp" command. I just copied _ogre.so and ogre.py into the site-packages directory, hopefully that will work.
Finally, we may want to mention possible alternate locations for the site-packages directory. Many python developers on Mac will have installed separate "framework" versions of python, and then the site-packages directory will be in one of these places:
/Library/Frameworks/Python.framework/Versions/2.4/lib/site-packages/
/Library/Frameworks/Python.framework/Versions/2.3/lib/site-packages/
Typically a mac python developer will be aware of this, but it bears repeating (at least while there's no setup script that takes care of this automatically).
First of all, it should be mentioned somewhere that the swig step is really slow, at least with version 1.3.25. It took about 70 minutes on my 1.33MHz iBook with 768 megs of RAM.
Then, the compiler invocation references a framework (libpng) that is not inlcuded in the clump of Mac frameworks (Cg, IL, SDL, zzip) supplied on the ogre3d download page. I made this compile by just removing "-framework libpng" from the command, but I'm not sure what repercussions this may have; The main Ogre3d example programs run successfully, and seem to be accessing png files in Samples/Matericals/textures without any trouble, so we may be getting png access "for free" through another framework.
Next, the compiler invocation doesn't generate ogre.pyc, though its existence is suggested by the "cp" command. I just copied _ogre.so and ogre.py into the site-packages directory, hopefully that will work.
Finally, we may want to mention possible alternate locations for the site-packages directory. Many python developers on Mac will have installed separate "framework" versions of python, and then the site-packages directory will be in one of these places:
/Library/Frameworks/Python.framework/Versions/2.4/lib/site-packages/
/Library/Frameworks/Python.framework/Versions/2.3/lib/site-packages/
Typically a mac python developer will be aware of this, but it bears repeating (at least while there's no setup script that takes care of this automatically).