To successfully build an OpenXcom OSX bundle you will need to ensure all the relevant dependencies installed in /usr/local/.
The dependencies you require are following:
We recommend using Homebrew to facilitate this. With a working brew utility installed, run the following:
$ brew install cmake yaml-cpp --with-static-lib sdl sdl_gfx sdl_image sdl_mixer --with-flac --with-libmikmod --with-libvorbis --with-static-lib
This should install all of these necessary dependencies to their appropriate place under /usr/local.
This project has two ways to build: one with make and the other with Xcode. The make way is typically used for CI builds and produces a similar artifact as the Linux build. If you're just looking to get a quick build, this is a good way to do so. The Xcode way is useful if you're developing features (or bug fixes) and require the need for a debugger or an IDE experience.
cmake -DCMAKE_BUILD_TYPE=Debug -B build .
bin/
directory.cmake --build build -j2
openxcom.app
in the build target directory.cmake -DCMAKE_BUILD_TYPE=Debug -G Xcode -B build .
OpenXcom.xcodeproj
in Xcode.bin/
directory.openxcom.app
in the build target directory (Debug or Release).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