Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
orffen opened this issue Aug 12, 2024 · 0 comments
Open

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

orffen opened this issue Aug 12, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@orffen
Copy link

orffen commented Aug 12, 2024

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?

@orffen orffen added the bug Something isn't working label Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant