MG/Mac Compiling

From MegaGlest
Revision as of 03:27, 5 October 2010 by Ultifd (talk) (Adding categories)
Jump to: navigation, search

Pre-requisite : you must have XCode , subversion and CMake on your computer.

  • Retrieve the 3rd libraries from here : and extract the contact of the archive in your library directory ~/Library/Frameworks

Remark: if you already have done this step, you don't need to update them

  • Get the source from svn (trunk should be ok):
svn co https://megaglest.svn.sourceforge.net/svnroot/megaglest/trunk megaglest

or the source tarball from version 3.3.7_beta3 or above.

  • Generate the XCode project
cd megaglest
cmake -GXcode
  • Build everything
xcodebuild

or you can also open the project and build everything in XCode :

open MegaGlest.xcodeproj
  • Generate the installer
cpack -C CPack CPackConfig.cmake

Et voila ! You should have a megaglest-{version}.dmg file in your current directory. install it and play !!!