Compiling on Apple Mac
Contents
Mac Build history
Just compiling the data on build experiences.
Game version: 1.91
Relevant Links
- OpenGL and Oolite (2024: Bogatyr's synopsis of the relevant issues)
- Attempting to get 1.91 built on Mac (June 2024: Phkb's attempt to build v.1.91 for AppleMac, then Bogatyr's work on v.1.90)
Game version: 1.90
First Attempt
Date of build attempt: September 2024
Git commit: 0b1ff49a7 (tag: 1.90) Updated changelog to reflect the changes in customsounds.plist.
Build result: does not build on MacOS 10.4.6 with XCode 11.3.1
Reasons:
- Oolite uses libstdc++ and Apple deprecated this long ago in favor of clang's libc++
- libpng and sparkle Mac dependent resources are downloaded from URLs that no longer function (oolite.org)
Second Attempt
Bogatyr started with the above failure and produced fixes for the problems in consulting with other members.
libpng and the sparkle framework were incorporated directly into the Mac deps directory of the oolite repo
The XCode project was updated to use clang libc++, which also required bumping the minimum mac deployment version from 10.6 to 10.7
Now we have:
Date of build attempt: September 20, 2024
Git commit(s):
- 282c3d865 (HEAD -> 1.90-mac-build-bugfix, origin/1.90-mac-build-bugfix) Merge pull request #490 from keaaw/1.90-mac-build-bugfix
- 0b8d5c2e9 * libpng and the Sparkle framework are now in the repo in deps/Cocoa-deps (no more downloading from external sites during the build)
Commit 282c3d865 is what was built, commit 0b8d5c2e9 has the details of the changes in the commit log.
Build result: successful build on MacOS 10.14.6 (2018 MacBook Pro) with XCode 11.3.1
Verified runs on os/systems: MacOS 10.8.5 late 2009 mac mini, MacOS 10.14.6 (2018 MacBook Pro)
Observed issues: keyboard response is sluggish compared to the quick response of the oolite.space download version 1.90, needs investigation.
Recent Links
- Attempting to get 1.91 built on Mac (June 2024: Phkb's attempt to build v.1.91 for AppleMac, then Bogatyr's work on v.1.90)
- Resurrecting the Mac build (Sep 2024: Bogatyr's work on v.1.90)
- Oolite-Mac Forum for "Oolite-Mac" with the above threads - and more
- Developer's Corner