Difference between revisions of "MG/Mac Compiling"
Jump to navigation
Jump to search
(Copied changes made by 80.54.236.119 <http://glest.wikia.com/wiki/MG/Mac_Compiling?curid=2354&action=history>) |
|||
Line 3: | Line 3: | ||
==Prerequisites== | ==Prerequisites== | ||
*[http://developer.apple.com/technologies/xcode.html XCode] | *[http://developer.apple.com/technologies/xcode.html XCode] | ||
− | |||
*[http://www.cmake.org/cmake/resources/software.html CMake] | *[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 | *Retrieve the build dependencies / 3rd party libraries and extract the contents of the archive in your library directory ~/Library/Frameworks | ||
==Compiling== | ==Compiling== | ||
− | * | + | *Install and use [[MG/Getting_The_Code|''Git to check out'']] the MegaGlest source code. |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
*Generate the XCode project | *Generate the XCode project | ||
− | |||
cmake -GXcode | cmake -GXcode | ||
− | |||
*Build everything for release | *Build everything for release | ||
− | |||
xcodebuild -configuration release | xcodebuild -configuration release | ||
− | |||
*Generate the installer | *Generate the installer | ||
− | |||
cpack -C CPackConfig.cmake | cpack -C CPackConfig.cmake | ||
− | |||
*You should have a megaglest-#.dmg file in your current directory. You can install this and play it. | *You should have a megaglest-#.dmg file in your current directory. You can install this and play it. | ||
Revision as of 00:10, 23 June 2014
This page explains how to compile MegaGlest on a Mac computer.
Prerequisites
- XCode
- CMake
- Retrieve the build dependencies / 3rd party libraries and extract the contents of the archive in your library directory ~/Library/Frameworks
Compiling
- Install and use Git to check out the MegaGlest source code.
- 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.