|Re: [hatari-devel] Building Hatari 2.xx on Windows platform (?)|
[ Thread Index |
| More lists.tuxfamily.org/hatari-devel Archives
On 06/27/2017 07:53 PM, Christian Zietz wrote:
Douglas Little schrieb:
The SDL2 crash was seen using the latest libs for mingw (via cygwin
setup). Not sure what's wrong there but SDL1 seems to work ok in any case.
Some time ago, I also built Hatari (from the Mercurial repo and rather
painlessly) under Windows using MinGW. In order for the SDL2 build not
to crash after startup, I had to make sure that the preprocessor macro
SDL_MAIN_HANDLED was defined during compilation. I did this via a change
I never really investigated what happened; so I didn't report it,
either. I think the basic idea behind SDL_MAIN_HANDLED is explained
here: <http://djrollins.com/2016/10/02/sdl-on-windows/>. But since I do
not know much about SDL, I cannot say what goes wrong with Hatari when
the macro is not defined.
Looking at current CMakeLists.txt, I don't see above change for
Windows, but I do see thing done for OSX:
# Use OSX native alert windows
# We still want to use our SDLMain.m with SDL2
Are "-DSDL_MAIN_HANDLED=1" and "-DSDL_MAIN_NEEDED=1" anyway
related? And if yes, which one would be more correct?
(I don't know anything about Windows or OSX specific SDL versions.)