Closed estefan3112 closed 1 year ago
/Library/Frameworks/SDL2.framework/Headers/SDL.h:32:10: fatal error: 'SDL2/SDL_main.h' file not found
Have you even installed SDL2?
Yes of course, latest versions of SDL2, both the Framework from the SDL site and the Homebrew packages. Used to work before, wll check again.
To be more precise: You seem to have installed something in the the wrong way. It finds the frameworks header but this one somehow want SDL_main.h, which can't be found. Something is wrong with your SDL2 installation, not a QMC2 issue.
Strangely all other compiles work (including SDL2), need to investigate further
Dear Rene, there are currently two issues in the MacOS compiles that I could verify:
As always happy to help, I could also test the SDL Frameworks backwards if that would make any difference...apparently some change in the SDL framework causes this error.
Best, Stefan
Add on: Ok, it stopped working with SDL 2.24.0, actually the first one with the new numbering scheme...
Dear Rene, may I suggests to re-open this issue: A comparison of the Makefile.qmakes shows sigificant differences, so something is going on there.
I opened a thread in the SDL Developer Forum, where your contribution would probably be very helpful: https://discourse.libsdl.org/t/macos-fatal-error-sdl2-sdl-main-h-file-not-found-since-sdl-2-24-0/42029
Cheers! Stefan :-)
I'm really unsure what to answer or contribute. It seems to be a Qt 5 qmake issue then? Dunno. I read all of the thread at discourse.libsdl.org but anything than irritation is not left :).
Thanks Rene for the info. It just does not work since quite some SDL versions on Macs, that's quite unsatisfying.
Hi Rene, suddenly I cannot compile on Intel plus Silicon Macs. Despite the SDL framework being installed (both Framework and Homebrew), the compile fails with strange SDL errors (excerpt below).
So I cannot compile on any platform currently. Must be due to SDL upgrades.
Cheers, Stefan
(...) In file included from src/about.cpp:9: /Library/Frameworks/SDL2.framework/Headers/SDL.h:32:10: fatal error: 'SDL2/SDL_main.h' file not found
include <SDL2/SDL_main.h>
(...) In file included from src/joystick.h:11: /Library/Frameworks/SDL2.framework/Headers/SDL.h:32:10: fatal error: 'SDL2/SDL_main.h' file not found
include <SDL2/SDL_main.h>
(...) In file included from src/welcome.cpp:17: In file included from src/options.h:17: In file included from src/joystick.h:11: /Library/Frameworks/SDL2.framework/Headers/SDL.h:32:10: fatal error: 'SDL2/SDL_main.h' file not found
include <SDL2/SDL_main.h>
In file included from src/options.cpp:24: In file included from src/options.h:17: In file included from src/joystick.h:11: /Library/Frameworks/SDL2.framework/Headers/SDL.h:32:10: fatal error: 'SDL2/SDL_main.h' file not found
include <SDL2/SDL_main.h>
It goes on like that...