Difference between revisions of "Compiling with Xcode (OpenXcom)"
Jump to navigation
Jump to search
(These compile options have been removed in yaml-cpp and sdl_mixer. It builds for me without them, and sdl_mixer is built with libmikmod, libogg, libvorbis. Not sure about flac, this option no longer works. Not thoroughly tested. Will update if not works.) |
|||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
− | To successfully build an OpenXcom OSX bundle you will need to ensure | + | To successfully build an OpenXcom OSX bundle you will need to ensure all the relevant dependencies installed in /usr/local/. |
Line 18: | Line 18: | ||
We recommend using [https://brew.sh Homebrew] to facilitate this. With a working brew utility installed, run the following: | We recommend using [https://brew.sh Homebrew] to facilitate this. With a working brew utility installed, run the following: | ||
<pre> | <pre> | ||
− | $ brew install cmake yaml-cpp | + | $ brew install cmake yaml-cpp sdl sdl_gfx sdl_image sdl_mixer |
</pre> | </pre> | ||
This should install all of these necessary dependencies to their appropriate place under /usr/local. | This should install all of these necessary dependencies to their appropriate place under /usr/local. |
Latest revision as of 19:45, 27 March 2019
To successfully build an OpenXcom OSX bundle you will need to ensure all the relevant dependencies installed in /usr/local/.
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:
- cmake, version 3.12.0 or later
- SDL (libsdl1.2)
- SDL_mixer (libsdl-mixer1.2)
- SDL_gfx (libsdl-gfx1.2), version 2.0.22 or later
- SDL_image (libsdl-image1.2)
- yaml-cpp, version 0.5 or later
We recommend using Homebrew to facilitate this. With a working brew utility installed, run the following:
$ brew install cmake yaml-cpp sdl sdl_gfx sdl_image sdl_mixer
This should install all of these necessary dependencies to their appropriate place under /usr/local.
Building
- In the root of the repository, generate the Makefile with cmake (Release is also a valid build type):
cmake . -DCMAKE_BUILD_TYPE="Debug" -G Xcode
- Open the
OpenXcom.xcodeproj
in Xcode. - Copy your vanilla game assets (UFO/TFTD) into the
bin/
directory. - Build with cmd-B.
- Your artifact will be named
openxcom.app
in the build target directory (Debug or Release) from the root of the repository.
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 - @rcreasey