|
|
| Line 1: |
Line 1: |
| To successfully build an OpenXcom OSX bundle you will need to ensure all the relevant dependencies installed in /usr/local/.
| | #REDIRECT [[OpenXcom]] |
| | |
| | |
| == Dependencies ==
| |
| | |
| To successfully build an OpenXcom OSX bundle you will need to ensure s all the relevant dependencies installed in /usr/local/.
| |
| | |
| The dependencies you require are following:
| |
| <ul>
| |
| <li> cmake, version 3.12.0 or later </li>
| |
| <li> SDL (libsdl1.2) </li>
| |
| <li> SDL_mixer (libsdl-mixer1.2) </li>
| |
| <li> SDL_gfx (libsdl-gfx1.2), version 2.0.22 or later </li>
| |
| <li> SDL_image (libsdl-image1.2) </li>
| |
| <li> yaml-cpp, version 0.5 or later </li>
| |
| </ul>
| |
| | |
| We recommend using [https://brew.sh Homebrew] to facilitate this. With a working brew utility installed, run the following:
| |
| <pre>
| |
| $ brew install cmake yaml-cpp sdl sdl_gfx sdl_image sdl_mixer
| |
| </pre>
| |
| This should install all of these necessary dependencies to their appropriate place under /usr/local.
| |
| | |
| == Building ==
| |
| | |
| <ol>
| |
| <li>In the root of the repository, generate the Makefile with cmake (Release is also a valid build type):
| |
| <pre>
| |
| cmake . -DCMAKE_BUILD_TYPE="Debug" -G Xcode
| |
| </pre>
| |
| </li>
| |
| | |
| <li>Open the <code>OpenXcom.xcodeproj</code> in Xcode. </li>
| |
| <li>Copy your vanilla game assets (UFO/TFTD) into the <code>bin/</code> directory. </li>
| |
| <li>Build with cmd-B. </li>
| |
| <li>Your artifact will be named <code>openxcom.app</code> in the build target directory (Debug or Release) from the root of the repository. </li>
| |
| </ol>
| |
| == Additional Help ==
| |
| | |
| Should you require any further assistance regarding the OSX build - feel free to ask around on the official forums - https://openxcom.org/forum/ or contact us directly on GitHub - [http://github.com/rcreasey @rcreasey]
| |
| | |
| [[Category:OpenXcom]]
| |