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

[macOS] Building on M1/ Apple Silicon/ Arm - SDL2 headers location needs to be altered #61

Open
shinra-electric opened this issue Feb 16, 2022 · 0 comments

Comments

@shinra-electric
Copy link

shinra-electric commented Feb 16, 2022

Building on the M1 fails with SDL2 not being located.

I had come across this issue before on another project, and fixed it by removing the SDL2/ directory when adding an include.

For example, include "SDL2/SDL.h" should be changed to include "SDL.h"

I did this for the following files until it built:

isr.c
modexlib.c
rt_in.c
rt_main.c
rt_menu.c
rt_uitl.c
dukemusc.c
audiolib/dsl.c

Note some of the above files had multiple SDL2 references.

Also there may be other references elsewhere, but just changing the above fixes the default build at least.
Screenshot 2022-02-16 at 12 38 27
Screenshot 2022-02-16 at 12 38 41

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant