The International Simutrans Forum

 

Author Topic: macOS version compilation – may I assist somehow?  (Read 1151 times)

0 Members and 1 Guest are viewing this topic.

Offline meme

  • *
  • Posts: 131
  • Languages: CZ,EN
macOS version compilation – may I assist somehow?
« on: August 04, 2018, 03:44:40 PM »
Hello, may I provide some assistance with the macOS version? Is seems it is not up-to-date.

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 9409
  • Languages: De,EN,JP
Re: macOS version compilation – may I assist somehow?
« Reply #1 on: August 04, 2018, 04:30:45 PM »
Yes please, none o fthe one who make releases have a mac.

Offline meme

  • *
  • Posts: 131
  • Languages: CZ,EN
Re: macOS version compilation – may I assist somehow?
« Reply #2 on: August 04, 2018, 04:32:07 PM »
What is needed? SDL2 and? What else? I have forgotten Simutrans's dependencies - it's a while since testing the Steam version. :)

Offline An_dz

  • Web Admin
  • Administrator
  • *
  • Posts: 2836
  • D'oh
    • by An_dz
  • Languages: pt, en, it, (de)
Re: macOS version compilation – may I assist somehow?
« Reply #3 on: August 04, 2018, 07:20:47 PM »
bzip2, zlib, freetype and miniupnpc for the stable version.

Offline meme

  • *
  • Posts: 131
  • Languages: CZ,EN
Re: macOS version compilation – may I assist somehow?
« Reply #4 on: August 04, 2018, 07:46:48 PM »
Sta
bzip2, zlib, freetype and miniupnpc for the stable version.
ble = git/svn repository?

Offline meme

  • *
  • Posts: 131
  • Languages: CZ,EN
Re: macOS version compilation – may I assist somehow?
« Reply #5 on: August 04, 2018, 08:16:24 PM »

Offline jamespetts gb

  • Simutrans-Extended project coordinator
  • Devotee
  • *
  • Posts: 18374
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: macOS version compilation – may I assist somehow?
« Reply #6 on: August 04, 2018, 09:02:02 PM »
If you might be inclined to produce a version of Simutrans-Extended for Mac, that would also be appreciated.

Offline Ters

  • Coder/patcher
  • Devotee
  • *
  • Posts: 5447
  • Languages: EN, NO
Re: macOS version compilation – may I assist somehow?
« Reply #7 on: August 04, 2018, 09:16:51 PM »
bzip2, zlib, freetype and miniupnpc for the stable version.

Well, strictly speaking, at least the latter two are not absolute requirements. Leaving them out creates a working Simutrans, just without some of the newest features. I certainly haven't set up the miniupnpc in my build environment, but I know I don't need it since I do not use the multiplayer feature. I don't think I have set up freetype either, but that is more likely to have come bundled or that I've directly or indirectly set it up for something else at some point.

Offline meme

  • *
  • Posts: 131
  • Languages: CZ,EN
Re: macOS version compilation – may I assist somehow?
« Reply #8 on: August 04, 2018, 09:22:28 PM »
If you might be inclined to produce a version of Simutrans-Extended for Mac, that would also be appreciated.
Done. Do I have to download the 400 MB package?

Offline meme

  • *
  • Posts: 131
  • Languages: CZ,EN
Re: macOS version compilation – may I assist somehow?
« Reply #9 on: August 04, 2018, 09:36:05 PM »

Offline jamespetts gb

  • Simutrans-Extended project coordinator
  • Devotee
  • *
  • Posts: 18374
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: macOS version compilation – may I assist somehow?
« Reply #10 on: August 04, 2018, 10:13:23 PM »
Splendid, that is excellent, thank you!

A question or two if I may: firstly, do you plan to produce automated nightly builds; and, secondly, may I ask where these are available for download? Thank you again for this.

Offline meme

  • *
  • Posts: 131
  • Languages: CZ,EN
Re: macOS version compilation – may I assist somehow?
« Reply #11 on: August 04, 2018, 10:17:01 PM »
I could try to make them produce automatically and put them *somewhere*. I do not have such a place (Dropbox maybe; I would prefer not to use neither it nor my own server - I have a very limited bandwidth available). As of now I have the binaries locally only.


PS: These binaries are limited to 10.7 Lion and higher as 10.6 Snow Leopard does not support the AVFoundation API. I would have to make a older (10.10 I think) VM to be able to build a version which would support the Snow Leopard, I do not think is it necessary these days, though. If there is a significant demand for such a legacy version, I could set it up sometime in September (I run on temporary machine now, waiting for 2018 MacBook Pro to be manufactured and delivered).

Offline jamespetts gb

  • Simutrans-Extended project coordinator
  • Devotee
  • *
  • Posts: 18374
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: macOS version compilation – may I assist somehow?
« Reply #12 on: August 04, 2018, 10:35:45 PM »
Thank you for that - that is helpful. From my perspective, I do not think that there is any need to spend much effort producing binaries for out of date versions, but I do not know how prevalent that these are, and the Standard developers might have a different view of the subject.

As to a place to distribute the files, would it help if I were to set up a folder on my server to which I could give you access so that you could upload the Mac versions there?

Offline meme

  • *
  • Posts: 131
  • Languages: CZ,EN
Re: macOS version compilation – may I assist somehow?
« Reply #13 on: August 04, 2018, 10:37:25 PM »
Sure, that should probably suffice. I might send you the ssh key public key via PM if ssh would be used.

Offline jamespetts gb

  • Simutrans-Extended project coordinator
  • Devotee
  • *
  • Posts: 18374
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: macOS version compilation – may I assist somehow?
« Reply #14 on: August 04, 2018, 10:45:06 PM »
Thank you very much for this - PM sent with details.

Offline An_dz

  • Web Admin
  • Administrator
  • *
  • Posts: 2836
  • D'oh
    • by An_dz
  • Languages: pt, en, it, (de)
Re: macOS version compilation – may I assist somehow?
« Reply #15 on: August 05, 2018, 01:18:00 PM »
Well, strictly speaking, at least the latter two are not absolute requirements.
Though we are aiming for a stable release to put on our downloads page.

Stable = git/svn repository?
Stable is r8504 (Git: a7b09e3)

It's better to use SVN so the makefile can get the revision number automatically. If you prefer not, you will need to add -DREVISION="8504" into FLAGS.

prissi needs to confirm, but I believe the options used for compiling a stable version are:
Code: [Select]
OPTIMISE = 1
WITH_REVISION = 1
USE_FREETYPE = 1
USE_UPNP = 1
The rest is disabled

Offline Ters

  • Coder/patcher
  • Devotee
  • *
  • Posts: 5447
  • Languages: EN, NO
Re: macOS version compilation – may I assist somehow?
« Reply #16 on: August 05, 2018, 02:05:36 PM »
Though we are aiming for a stable release to put on our downloads page.
Yes, but if those two dependencies proved difficult to satisfy, a slightly inferior executable is better than no executable. meme seems to have gotten it working, though.

prissi needs to confirm, but I believe the options used for compiling a stable version are
Revision really should be superfluous for stable releases. It is for telling nightlies apart, as their version number is otherwise identical.

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 9409
  • Languages: De,EN,JP
Re: macOS version compilation – may I assist somehow?
« Reply #17 on: August 05, 2018, 10:32:18 PM »
Revision is important, since it identifies compatible servers. Without revision set, you cannot connect properly (or you could connect, but then the server will kick you off quickly because of mismatches).

Offline Ters

  • Coder/patcher
  • Devotee
  • *
  • Posts: 5447
  • Languages: EN, NO
Re: macOS version compilation – may I assist somehow?
« Reply #18 on: August 06, 2018, 06:04:59 AM »
But stable releases of the same version are supposed to be compatible. Even when a release has to be redone, that hasn't normally affected compatibility. And if it has to, one could just as well bump the version number a tiny bit. If revision really is part of the version number, it should really be part of the version number.

Offline TurfIt

  • Dev Team, Coder/patcher
  • Devotee
  • *
  • Posts: 1321
Re: macOS version compilation – may I assist somehow?
« Reply #19 on: August 09, 2018, 02:19:27 PM »
I've added the 'legacy' build for OSX SDL2  r8504 to the releases. As it's built on 10.9.5 (latest I can run), it still uses the QTkit as AVFoundation is not available/complete (AVMIDIplayer missing). Supposedly newer OSX versions can still run this, just not compile it. Also, I'm lacking any package/port system, so both freetype and upnp are missing. Unless there's some native install of these libraries I'm missing...

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 9409
  • Languages: De,EN,JP
Re: macOS version compilation – may I assist somehow?
« Reply #20 on: August 09, 2018, 09:32:03 PM »
Thanks

Offline jamespetts gb

  • Simutrans-Extended project coordinator
  • Devotee
  • *
  • Posts: 18374
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: macOS version compilation – may I assist somehow?
« Reply #21 on: August 10, 2018, 12:47:45 PM »
I notice that the Extended nightly builds have not updated since the 5th of August - was it intended to have these as regular nightlies?