Minimum OS X version and Universal Binary?

BlitzMax Forums/BlitzMax Programming/Minimum OS X version and Universal Binary?

Kemi(Posted 2009) [#1]
What is the minimum OS X version needed to run a compiled Blitzmax app?
And is it a Universal Binary when compiled?

Can't find this info.


JaviCervera(Posted 2009) [#2]
The minimum OS X version required is 10.3.9.

BlitzMax does not generate Univerisal Binaries. The PowerPC version of the compiler creates PowerPC excutables, and the Intel version creates Intel executables.

Also, it doesn't generate 64-bit binaries.


Brucey(Posted 2009) [#3]
Of course, it is possible to build Universal Binaries with BlitzMax.

There are currently 2 methods.

1) You do what Jedive says, and build both sets separately, then merge them together using a tool provided with XCode.

2) You use a customised BMK (this is the tool which builds stuff), a copy of the PPC bcc executable, and some patience. Optionally, a custom version of the IDE with extra build settings. This lets you do everything automagically, with no extra input once you've set it up. But, it does require some effort to get everything in the right place.
Anyone that uses this method will attest that it *is* the best way to build Universal Binaries for BlitzMax ;-)


JazzieB(Posted 2009) [#4]
For option 1, there's this tutorial: http://www.blitzbasic.com/Community/posts.php?topic=65180

Also, if you're going to include a lot of media, or other files, with IncBin, you will also want to consider this: http://www.blitzbasic.com/Community/posts.php?topic=73690. It shows you how to include the data in the application bundle and letting both the PPC and Intel versions access this data. If you just use IncBin you will end up with your media being included twice within the universal binary, which can bloat the size of the file considerably.

These are both in the tutorials section.


Brucey(Posted 2009) [#5]
Yes, doing everything by hand each time is definitely an option.