WizzardMaker / AirlineTycoon

Source code of Airline Tycoon based on the GOG source code release
https://www.gog.com/game/airline_tycoon_deluxe
Other
27 stars 9 forks source link

[BUG] macOS version does not run on Apple silicon #56

Open orffen opened 3 months ago

orffen commented 3 months ago

Your current version 1.7.2

Describe the bug On Mac on Apple silicon, AT crashes with the below error:

dyld[5953]: Library not loaded: /usr/local/opt/sdl2_ttf/lib/libSDL2_ttf-2.0.0.dylib Referenced from: /Users/orffen/Downloads/Airline Tycoon Deluxe/AT Reason: tried: '/usr/local/opt/sdl2_ttf/lib/libSDL2_ttf-2.0.0.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/opt/sdl2_ttf/lib/libSDL2_ttf-2.0.0.dylib' (no such file), '/usr/local/opt/sdl2_ttf/lib/libSDL2_ttf-2.0.0.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/opt/homebrew/Cellar/sdl2_ttf/2.22.0/lib/libSDL2_ttf-2.0.0.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/Cellar/sdl2_ttf/2.22.0/lib/libSDL2_ttf-2.0.0.dylib' (no such file), '/opt/homebrew/Cellar/sdl2_ttf/2.22.0/lib/libSDL2_ttf-2.0.0.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64'))

To Reproduce Steps to reproduce the behavior:

  1. Download the latest version of AT
  2. Extract to folder where the Windows AT files are
  3. Run ./AT

Expected behavior AT uses the available library for the correct architecture (arm64).

Screenshots N/A

Crash dumps N/A

Additional context I'm not sure how an x86_64 dylib would work on arm64 architecture; is this a compilation problem that needs a separate executable?

Additionally, I had to manually symlink to the default Homebrew installation directory; is it possible to add /opt/homebrew/opt/sdl2_ttf to the locations searched?