MG/Mac Compiling

From MegaGlest
Revision as of 00:48, 16 April 2011 by Hofmic (talk) (Categories and see also)
Jump to: navigation, search

This page explains how to compile MegaGlest on a Mac computer.

Prerequisites

  • XCode
  • A SVN program
  • CMake
  • Retrieve the 3rd libraries and extract the contact of the archive in your library directory ~/Library/Frameworks

Compiling

  • Get the source from SVN or the source tarball from version 3.3.7 or above.
svn co https://megaglest.svn.sourceforge.net/svnroot/megaglest/trunk megaglest
  • Generate the XCode project
cd megaglest
cmake -GXcode
  • Build everything for release
xcodebuild -configuration release
  • Generate the installer
cpack -C CPackConfig.cmake
  • You should have a megaglest-#.dmg file in your current directory. You can install this and play it.

See Also