Compiling from source for Mac OSX 10.4

Tech support and suggestions forum. If you only have a basic question on how to get started, please use the "newbies" forum in the community section.

Moderator: joepal

Compiling from source for Mac OSX 10.4

Postby MidnightLightning » Sat Mar 27, 2010 2:03 am

So, I see that there's compiled binaries for OSX 10.5, which is due to there being Python 2.5 installed by default on that OS, but not for 10.4. I've got 10.4, though with MacPorts, which I've used to upgrade Python (among other things; for other reasons), so I'm trying to compile from source using this setup, and unsurprisingly, ran into some snags.

Running "compile_src_osx.sh" fails, since it's explicitly looking for "/Developer/SDKs/MacOSX10.5.sdk" which I don't have (I do have "MacOSX10.3.9.sdk" and "MacOSX10.4u.sdk" in that folder, though).

Trying the Linux way, I installed the MacPorts packages of "libsdl" and "libsdl-image" and "scons", and tried running "scons" in the source directory. It fails the configuration step, not able to find the Python 2.6 binaries, which surprised me for two reasons. Firstly, the website cites that Python 2.5 is needed, not 2.6; is the website outdated? Secondly, I do have Python 2.6 installed, just not at "/usr/include/python2.6", which is what the SConstruct file has in the "CPPATH" listing. I added the path to my Python.h file (/opt/local/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6) to the CPPATH list of paths, but scons seems to not be able to see it yet.

Could someone help me configure the SConstruct file to find my actual Python install, or help me figure out how to modify the XCode project to at least attempt to compile for 10.4?
MidnightLightning
 
Posts: 1
Joined: Fri Mar 26, 2010 11:53 pm

Return to Bugs, problems and feature requests

Who is online

Users browsing this forum: No registered users and 1 guest