SDL 2 macOS
MCES10 opened this issue · comments
When compiling this on my apple silicon mac it says I need sdl2 which I installed via homebrew. I have tried countless tutorials on youtube issues on stackoverflow questions in reddit and more but still cannot fix the issue.
same here
I'm experiencing the same issue on build
should i try it on a Intel mac ?
Give it a shot i doubt the platform matters, but who knows
The cmake route is broken for me on macOS, too. Sadly, I don't know much about cmake. Maybe @The-King-of-Toasters can help?
~/projects/wipeout-rewrite/src/platform_sdl.c:1:10: fatal error: 'SDL2/SDL.h' file not found
For what it's worth, the "old" way to build with just make
still works just fine on my M2.
cd wipeout-rewrite/
make
I tried it on my Intel Mac and your solution but still get this error on both. /Users/MCES10/Desktop/wipeout-rewrite/src/platform_sdl.c:1:10: fatal error: 'SDL2/SDL.h' file not found #include <SDL2/SDL.h> ^~~~~~~~~~~~ 1 error generated. make[2]: *** [CMakeFiles/wipeout.dir/src/platform_sdl.c.o] Error 1 make[1]: *** [CMakeFiles/wipeout.dir/all] Error 2 make: *** [all] Error 2
The Intel Mac went further at 93% my Apple silicon went to 3% should I try on Ubuntu Arm vm?
Trying to run this on macOS Catalina and getting the same error as above...has anyone come closer to a solution?
How did you install SDL2? Maybe this helps? https://stackoverflow.com/questions/20277477/how-do-you-include-files-in-c-from-the-library-framework-folder-in-mac
Did you try the old makefile?
cd wipeout-rewrite/
make
still nothing done all of that
How did you install SDL2? Maybe this helps? https://stackoverflow.com/questions/20277477/how-do-you-include-files-in-c-from-the-library-framework-folder-in-mac
Did you try the old makefile?
cd wipeout-rewrite/ make
This ended up working after updating my GLEW library. Everything working perfectly with the exception of music & intro sequence.
Edit:
4:31 Local
All working fine now! Thank you :)
The include needs to be changed from #include <SDL2/SDL.h>
to #include <SDL.h>
Easy fix Do Not put the wipeout track files that are compiled use the ones mentioned here https://phoboslab.org/log/2023/08/rewriting-wipeout in Phoboslab's article at the end.