phoboslab / wipeout-rewrite

2.59k stars 198 forks source link

SDL 2 macOS #99

Closed MCES10 closed 2 months ago

MCES10 commented 8 months ago

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.

Noialia commented 8 months ago

same here

shy-neon commented 8 months ago

I'm experiencing the same issue on build

MCES10 commented 8 months ago

should i try it on a Intel mac ?

shy-neon commented 8 months ago

Give it a shot i doubt the platform matters, but who knows

phoboslab commented 8 months ago

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
MCES10 commented 8 months ago

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?

jordie-sound-system commented 6 months ago

Trying to run this on macOS Catalina and getting the same error as above...has anyone come closer to a solution?

phoboslab commented 6 months ago

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
shy-neon commented 6 months ago

This. I managed to get this going downloading the old files

Il giorno 9 gen 2024, alle ore 13:43, Dominic Szablewski @.***> ha scritto:



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

— Reply to this email directly, view it on GitHubhttps://github.com/phoboslab/wipeout-rewrite/issues/99#issuecomment-1883004693, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AUYBJWL2Z5G2CYZZANU5TEDYNU3PFAVCNFSM6AAAAAA6X7BKDWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBTGAYDINRZGM. You are receiving this because you commented.Message ID: @.***>

MCES10 commented 6 months ago

still nothing done all of that

jordie-sound-system commented 6 months ago

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 :)

shinra-electric commented 2 months ago

The include needs to be changed from #include <SDL2/SDL.h> to #include <SDL.h>

MCES10 commented 2 months ago

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.