[In-Progress] Fixing Mac builds (master / 3.2.x)

Discuss the future of Warzone 2100 with us.
Post Reply
Cyp
Evitcani
Evitcani
Posts: 784
Joined: 17 Jan 2010, 23:35

Re: [In-Progress] Fixing Mac builds (master / 3.2.x)

Post by Cyp »

Thanks, it's past due that someone fixes the mac builds.
Cyp
Evitcani
Evitcani
Posts: 784
Joined: 17 Jan 2010, 23:35

Re: [In-Progress] Fixing Mac builds (master / 3.2.x)

Post by Cyp »

Uh, I don't get these forums. I disapproved what looked like a duplicate post, and now the original post is gone, too?

Sorry, would you mind reposting, if you still have it?
pastdue
Warzone 2100 Team Member
Warzone 2100 Team Member
Posts: 339
Joined: 13 Aug 2017, 17:44

Re: [In-Progress] Fixing Mac builds (master / 3.2.x)

Post by pastdue »

Yeah, I edited the original message to update the progress log, but it looks like it the forums then treated it as a new message from whatever approval UI you have. Ah well.

I don't have the original message saved, but in brief:
  • I am working on the heavy-lifting of fixing the macOS builds (specifically: the master / 3.2 branch).
  • The goal is to get the build process working on macOS 10.12 / 10.13 with Xcode 8 / 9.
  • If possible, support for running on earlier versions of macOS will be maintained, but some functionality may not be available. At a minimum, the lowest supported macOS will be 10.7 (but it may be 10.9 or higher).
Initial patches will be incoming relatively soon.
defishguy
New user
Posts: 1
Joined: 15 Aug 2017, 19:23

Re: [In-Progress] Fixing Mac builds (master / 3.2.x)

Post by defishguy »

I'm down for helping out.
pastdue
Warzone 2100 Team Member
Warzone 2100 Team Member
Posts: 339
Joined: 13 Aug 2017, 17:44

Re: [In-Progress] Fixing Mac builds (master / 3.2.x)

Post by pastdue »

The first in a series of patches is now available:
For reasons outlined in more detail in the original (accidentally deleted) post, OpenSSL is no longer an option for Mac builds, and so replacing it is a prerequisite for getting Mac builds working again.

(In brief: Modern Mac SDKs no longer allow linking to it, the pre-shipped version is ancient and officially deprecated, and bundling it isn't possible because of license incompatibility.)

As a side benefit, this also removes a bunch of cruft that was required to initialize and work with OpenSSL.
pastdue
Warzone 2100 Team Member
Warzone 2100 Team Member
Posts: 339
Joined: 13 Aug 2017, 17:44

Re: [In-Progress] Fixing Mac builds (master / 3.2.x)

Post by pastdue »

The second in a series of patches is now available:
This completely fixes Mac builds. See the new macosx/README.md for detailed build instructions.

Coming next? Retina / High-DPI support. 8)
pastdue
Warzone 2100 Team Member
Warzone 2100 Team Member
Posts: 339
Joined: 13 Aug 2017, 17:44

Re: [In-Progress] Fixing Mac builds (master / 3.2.x)

Post by pastdue »

Just in case anyone was following along, these first two patches are now merged into the master / 3.2.x branch.

Thus, that branch can now be compiled using Xcode 8 / 9 on macOS 10.12 / 10.13 with very little hassle. Full build instructions are available in the new macosx/README.md.
User avatar
Rommel
Trained
Trained
Posts: 446
Joined: 03 Nov 2012, 19:44

Re: [In-Progress] Fixing Mac builds (master / 3.2.x)

Post by Rommel »

If you can provide an installable DMG I would be happy to test gameplay / multiplayer
Moving back instead of forward
Seems to me absurd
~
Metallica - Eye of the beholder
Echoes
New user
Posts: 2
Joined: 17 Nov 2017, 12:45

Re: [In-Progress] Fixing Mac builds (master / 3.2.x)

Post by Echoes »

Thanks! I managed to compile the newest version. Since I have a messy build environment and an old version of OS X, I used a virtual machine with a fresh install of Sierra, latest XCode and the instructions in the repo

For those who want the compiled binary: here's a dmg of the vanilla build
Echoes
New user
Posts: 2
Joined: 17 Nov 2017, 12:45

Re: [In-Progress] Fixing Mac builds (master / 3.2.x)

Post by Echoes »

I ran it successfully on 10.11.6 and 10.12.whateverIsLatest, by the way
Post Reply