[sword-devel] Mac OSX Development Setup

Manfred Bergmann manfred.bergmann at me.com
Thu Jan 14 15:02:56 MST 2010


Yeah. The developer tools are not automatically updated. You need to create a free developer account at Apple to get updates at all.
And btw: Xcode is spelled "Xcode", not "XCode" nor "xCode" or however.

I was actually planing to write a how to in the wiki for quite some time.
But actually it works very similar to compiling under any Unix. The only real dependency are the Apple developer tools which are bundled with the OS as separate manual install as other have already said.
This will give you the complete GCC tool chain including libraries and header files.

This script might be of some help. But it is used to cross-compile against Mac OSX 10.5 system and builds a universal binary. A normal compile process is much easier and just a matter of configure;make;make install.
http://macsword.svn.sourceforge.net/viewvc/macsword/macsword/trunk/sword_mac_build/BuildSWORDFromSVNTrunk.sh?revision=330&view=markup

Through Fink you can install the headers for the OS supplied ICU. But only libicucore is supplied by the OS.
If more ICU tools and libraries are needed then a version (preferably 3.6) has to be manually compiled and installed to /usr/local or some place else.
In fact the script from above expects a manual ICU installation in /opt/icu-3.6.



Manfred


Am 13.01.2010 um 21:18 schrieb Nic Carter:

> 
>> Firstly, there is a free version of XCode available from the Apple website, which will likely be more up to date than the version that came with the OS. It's a big download (a gig or more) but worth it if you have the download pipe. Also, it updates through the built-in Software Updater for OS X I believe?
> 
> Yup, you can download it, but you can probably live with the one that came with the OS.  It doesn't update through the built-in Software Updater -- or, at least, it never has for me.
> FYI, to grab the tools to develop for the iPhone, you also need to sign up for an iPhone developer account & download the "XCode with iPhone SDK" rather than the plain XCode.  It's free & you can compile apps and run them in the iPhone Simulator on your Mac.  However, you need to have a paid account to compile apps to actually run on a physical device (either iPhone or iPod touch).  That's what Ian and I have for PocketSword, but anyone (with a Mac and free iPhone dev account) can grab the PocketSword code from SVN and compile and run it in the Simulator.  :)
> 
>>> Gentoo on Mac (not sure where this is going or whether it still exists) which uses gentoo's tools around portage.
> 
> When Gentoo first came out for Mac it would install it's tools in /usr and overwrite the Apple supplied libs.  This is a Bad Idea (TM).  Now-a-days it may or may not, but when fink and MacPorts (which is DarwinPorts simply renamed) do the job great, I suggest you avoid Gentoo on Mac OS X.
> 
> thanks to the others who have added to what I said.  I hope that helps  :)
> 
> _______________________________________________
> sword-devel mailing list: sword-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/sword-devel
> Instructions to unsubscribe/change your settings at above page




More information about the sword-devel mailing list