Editing MG/Mac Compiling
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
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. | |
− | + | *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 !!! | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | * Retrieve the | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | cd | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |