Difference between revisions of "MG/Mac Compiling"

From MegaGlest
Jump to navigation Jump to search
(Created page with "''Pre-requisite'' : you must have [http://developer.apple.com/technologies/xcode.html XCode] , subversion and [http://www.cmake.org/cmake/resources/software.html CMake] on your c…")
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
''Pre-requisite'' : you must have [http://developer.apple.com/technologies/xcode.html XCode] , subversion and [http://www.cmake.org/cmake/resources/software.html CMake] on your computer.
+
This page explains how to compile [[MegaGlest]] on a Mac 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
+
==Prerequisites==
*Get the source from svn (trunk should be ok):
+
*[http://developer.apple.com/technologies/xcode.html XCode]
  svn co https://megaglest.svn.sourceforge.net/svnroot/megaglest/trunk megaglest
+
*A Git program
or the source tarball from version 3.3.7_beta3 or above.
+
*[http://www.cmake.org/cmake/resources/software.html CMake]
 +
*Retrieve the build dependencies / 3rd party libraries and extract the contents of the archive in your library directory ~/Library/Frameworks
 +
 
 +
==Compiling==
 +
*Get the source from Git or the source tarball from version 3.9.1 or above.
 +
  git clone [https://github.com/MegaGlest/megaglest-source https://github.com/MegaGlest/megaglest-source.git]
 +
cd megaglest-source
 +
git submodule update --init --recursive
 +
 
 
*Generate the XCode project
 
*Generate the XCode project
cd megaglest
+
 
 
  cmake -GXcode
 
  cmake -GXcode
*Build everything
+
 
  xcodebuild
+
*Build everything for release
or you can also open the project and build everything in XCode :
+
 
open MegaGlest.xcodeproj
+
  xcodebuild -configuration release
 +
 
 
*Generate the installer
 
*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 !!!
+
  cpack -C CPackConfig.cmake
 +
 
 +
*You should have a megaglest-#.dmg file in your current directory. You can install this and play it.
 +
 
 +
==See Also==
 +
*[[MegaGlest]]
 +
*[[MG/Linux Compiling|Linux Compiling]]
 +
*[[MG/Windows Compiling|Windows Compiling]]
 +
*[[MG/FreeBSD Compiling|FreeBSD Compiling]]
 +
[[Category:MG]]
 +
[[Category:Compiling]]

Revision as of 16:14, 26 January 2014

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

Prerequisites

  • XCode
  • A Git program
  • CMake
  • Retrieve the build dependencies / 3rd party libraries and extract the contents of the archive in your library directory ~/Library/Frameworks

Compiling

  • Get the source from Git or the source tarball from version 3.9.1 or above.
git clone https://github.com/MegaGlest/megaglest-source.git
cd megaglest-source
git submodule update --init --recursive
  • Generate the XCode project
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