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:
- git clone https://github.com/Chordian/sidfactory2.git
- cd sidfactory2/macos
- make
- 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.
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:
[...]
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):
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.