Skip to content

SFII won't compile on a mac with Apple silicon M1 CPU. #131

@Grrrolf

Description

@Grrrolf

Describe the bug
SFII won't compile on a mac with Apple silicon M1 CPU due to you distributing an incompatible version of SDL2.framework.

To Reproduce
Steps to reproduce the behavior:

  1. git clone https://github.com/Chordian/sidfactory2.git
  2. cd sidfactory2/macos
  3. make
  4. ld: warning: ignoring file ./App/Contents/Frameworks/SDL2.framework/SDL2, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
    [...]
    ld: symbol(s) not found for architecture arm64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    make: *** [artifacts/SIDFactoryII] Error 1

Expected behavior
a successful build

Desktop (please complete the following information):

  • macOS Big Sur - mac mini with M1 CPU (arm64)
  • the source from the 'master' branche.

Additional information
Replacing the currently distributed SDL2.framework with the latest stable (currently version 2.0.14) – downloadable from libsdl.org – will solve this issue and leads to a successful build.
An alternative might be looking for the framework in /Library/Frameworks and see if it is installed there, if so, then use this one instead of the one in sidfactory2/macos/App/Contents/Frameworks.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions