sm64ex-ios
sm64ex-ios copied to clipboard
Not building on M1 Macs
Describe the bug The build fails when building on M1 Macs
To Reproduce Steps to reproduce the behavior:
- build_ios.sh
Expected behavior Should build correctly but instead fails to level_rules.mk is missing
Desktop (please complete the following information):
- OS: 12.6 M1 Pro
Additional context Some people have suggested changing the cpp-10 in the Makefile to cpp-12 (current one). Please see discussion here: https://www.reddit.com/r/SuperMario64/comments/os39w9/got_super_mario_64_running_natively_on_an_m1_mac_d/
And proposed build here: https://github.com/SrGarmaples/target_osx
Also changes here: https://github.com/Xjs/sm64ex/commit/a1e5dde66a32689259b37dc61a356c407f074465
@ckosmic The main fix is to change gcc commands to gcc-12 in the Makefile. But then the Xcode building outputs some errors.
Hi I changed cpp-10 to cpp-12 and gcc to gcc-12 and updated the wiki instructions to reflect these changes. I don't have an M1 Mac to test, so let me know if this builds after installing gcc-12 (brew install gcc@12
)
I get this error now
src/pc/gfx/gfx_sdl2.m:140:48: error: no member named 'uikit' in 'union SDL_SysWMinfo::(unnamed at /opt/homebrew/include/SDL2/SDL_syswm.h:230:5)'
The issue here seems to be with SDL. The proposed build here: https://github.com/SrGarmaples/target_osx uses SDL as well but not in the same structure as you did. There's an explanation here: https://www.reddit.com/r/SuperMario64/comments/os39w9/got_super_mario_64_running_natively_on_an_m1_mac_d/
Hi, I finally switched over to Apple silicon and have been able to do some fixes for compilation on M1/M2 macs. I've created the apple_silicon_fix branch for these changes if you'd like to check it out before I merge. https://github.com/ckosmic/sm64ex-ios/tree/apple_silicon_fix
Any update on this, I am unable to build on apple silicon as well
Did you get this to work? Im getting this error on the branch apple_silicon_fix: