Hi All!,
I'm interested in building on, and potentially helping with, the macOS part of OpenXcom. Are there any macOS devs active?
I had a real pain of a time trying to build OpenXcom.
From the macOS readme, it appears that "luciderous" is no longer on github, and rcreasey's fork of OpenXcom hasn't been modified for two years.
As-is you cannot build on a relatively recent macOS. I had to do the following on my working copy:
( Install SDL, linking to the individual libs -- I think we should have the SDL2.framework included so that this step isn't needed. )
( Install yaml via MacPorts -- the example command appears to no longer be valid syntax, you have to separate each package fetch into its own command due to the +universal variant. Otherwise MacPorts complains that yaml-cpp+universal doesn't exist. )
Open the Xcode project, update to recommended settings since the project file is so old.
ifdef main() to remove, on macOS, const from arg ( SDL on Mac issue )
comment out impl of
- (BOOL)application:(NSApplication *)theApplication openFile:(NSString *)filename
Select “OpenXcom” (target) in project navigator,
Add SDL2.Framework to build phases, link
Build Settings -> Header Search Paths:
+ “/Library/Frameworks/SDL2.Framework/Headers/“
Build Settings -> Apple LLVN <vers> - Language - Modules
Enable Modules (C and Obj-C) == NO
Thanks!