Building Spring on MacOSX
Build from source on MacOSX
Guide is for x86/Intel based OSX installs
I am hoping that with our efforts on the forum that we can have an .app bundle released everytime spring is updated and that will save most people needing to go through the headache of compiling from source code. But if you must try, then here's the steps to help!
I cannot stress enough that this will most likely only work on Intel based systems at this stage. With my understanding of how unitsync works, it seems like online play will not be possible between PPC and x86 architecture.
Obtaining the Source
Current (0.80.2)
(For playing Spring online)
This code is the same as that used to build the last public release. If you want to play online on the main server, use this or desyncs will occur.
Development Sources from Git
I will update this later, as the main intention of this guide, is for Mac OSX users to be able to play online with their Linux / PC counterparts!
Get Dependencies
You will need to install some development packages Spring depends on. Most of these are vailable using Darwinports (similar to portage / apt-get etc available on various linux distro's)
You will also need to install the Xcode developers package (this requires a free membership to apple's ADC website)
Full list
- Programs necessary to build
- Xcode
- cmake (or scons)
- zip
- The usual build toolchain
- gcc comes with Xcode
- make comes with Xcode
- Libraries
- SDL
- boost (version 1.35 or later recommended)
- threads
- regex
- signals
- system
- DeviL (IL, ILU)
- OpenAL (openal-soft, older openal-0.0.8 does not work)
- OpenGL headers (mesa, glew, etc.)
- zlib
- freetype
- ogg,vorbis and vorbisfile
- Optional, for bindings and Ais
- Python (2.5)
- Java-SDK