LTCHIPS / rottexpr

A Rise Of The Triad Source Port with additional gameplay options and more...
GNU General Public License v2.0
98 stars 26 forks source link

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

Open shinra-electric opened 2 years ago

shinra-electric commented 2 years ago

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