NOTE: this information is likely to be outdated! Please refer to http://code.google.com/p/hedgewars/wiki/BuildingOnMac for the newest version
I believe that Hedgewars is really a neat game and i'm sure it will increasly become more popular with such development pace.
I really like the development choices like QT4 and cmake because with them it's really easy to port to several archs.
In fact the linux and windows builds are there and work fine! What about MacOSX?
i've seen many others in the forums asking this question and so i started looking at the problem, making up my mind that i had to find it!
It was a long night, but completely worth it
The problem is at the linking stage for the final hwengine executable! the freepasacal compiler seems to forget every library path that was configured; so with a small modification we finally get the mac executable!
[*update* 04/24/2009] compilation guide has been MUCH simplified; no more hours for compiling, just a couple of libraries to install! The original is still available in my blog
[*update* 07/02/2009] finally when you install the bundle is relocatable but won't work on other computers! If you wish to do so you need to specify -DBUNDLE=1 at cmake step and install the macdeployqt utility as well as the Glasgow Haskell Compiler with DataEnc, utf8 and (a third one i don't remember right now) from the cabal utility (read: create a bundle only if you know what you are doing).
[*update* 04/27/2010] did anyone read this guide? it took one year+ to notice that i was missing the freepascal step xD
- download and install MacPorts from www.macports.org to the default install dir (also Fink from here works).
- from a Terminal, install cmake
sudo port install cmake
- download the whole SDL suit, and put the frameworks in /Library/Frameworks
- unpack the Ogg and Vorbis frameworks from this installer (might be a little outdated)
- install the QT SDK using their installer from here
- install Freepascal (>2.2) from here
- unpack the hedgewars source and run this command
cmake ../hedgewars-source-DQT_QMAKE_EXECUTABLE=/usr/bin/qmake -DCMAKE_BUILD_TYPE=Release
- run make and make install
- PLAY!!! just open the folder and double click the bundle! You can move it wherever you want
All the separate installers can also be downloaded from macports or fink, just like you did with cmake at first step.
*27/04/10* added the freepascal step and fink option
*24/01/09* updated with some error correction
*24/04/09* updated to reflect development changes
*26/04/09* updated for automatic bundle creation
*02/07/09* updated for optional relocatable bundle creation