Closed ale-rinaldi closed 3 years ago
Indeed, there should be a better solution :-)
So in the end, you just reverted this commit to make it work, it seems.
Could you check whether this hint fixes the problem? I.e. return to the original, unmodified SDL2 headers and instead modify sdl_output.h
to move #include "SDL.h"
from line 29 above all other includes, to line 21? Maybe the C header that are included by SDL (and DABlin, too) need other definitions to be set, before they are included....in order to get memset_pattern4
available.
Unfortunately I don't have a MacOS system to test it myself. The MacOS instructions came from @npm-sdr who maybe has stumbled upon this issue himself...
Yep, you were right, that was the point. I actually came across that same comment before opening the issue, but for some reason I didn't give importance to it.
I moved the SDL import at the top both in sdl_output.h
and in the files that, directly or indirectly, included it, and now it builds correctly. I opened a PR for it.
Thanks for your help :)
Great, thank you; I just merged your PR!
Hello,
I had an hard time compiling dablin on MacOS Monterey, 12.0.1 (21A559). I followed the instructions in the README, installing the dependencies with Homebrew, but I kept getting this error:
Since this seems more a SDL2 issue, I searched for similar issues but I found only https://github.com/dingusdev/dingusppc/issues/15 that seems to be no longer applying.
Eventually, I edited the /usr/local/include/SDL2/SDL_stdinc.h removing lines 464 and 465 and replacing line 466 (now 464) with:
Doing this, it built without any other issue and it actually works, but I really believe this is not the most correct approach :)