Jump to content

Recommended Posts

Posted (edited)

There was mention of a major SDL 3 release. This one:

https://github.com/libsdl-org/SDL/releases/tag/release-3.2.0

So far, most open source games use SDL2. Which has a history of supporting Windows XP just fine. But this v3.2.0 unfortunately does not:

Two Windows XP incompatible calls in SDL3.dll (from package SDL3-3.2.0-win32-x86.zip):

kernel32.dll - SetWaitableTimerEx

kernel32.dll - CreateWaitableTimerExW

Any ideas?

Edited by gerwin

Posted

Kernel32.dll from the One Core Api project contains both functions. It needs the related libraries ntext.dll and kernelbase.dll.
It is not sure that it works but it is worth a try.

Posted

Portable KernelEx is the most simple. I have not yet tried it though.

Preferably I build a version of SDL3 without these dependencies. I did build SDL2 before. But only when the API is stabilized.

Even better would be for the SDL3 team to add XP back as a supported platform, as it was for SDL2.

 

 

Posted

Good ol' Sam, he's on the ball. 

Hi all. @gerwin, I saw this issue posted on Github, and it got me curious about the XP compatibility. I'm only using VS2022, so it's all I know. I installed the XP toolset (v141_xp) and compiled using the supplied VS project in SDL3. It starts to compile, but breaks at `SDL_camera_mediafoundation.c` with ` error C2065: 'MFVideoPrimaries_BT2020': undeclared identifier`. Were you successful in building for XP after Sam's patch? Which toolchain did you use? Any idea what I'm missing?

Posted

Looking deeper into SDL3, I notice SDL_CAMERA_DRIVER_MEDIAFOUNDATION is always defined, even if SDL_CAMERA_DISABLED is defined. Would this be a problem with SDL not gating enough code with SDL_CAMERA_DISABLED? I don't understand CMAKE, but it looks like it'll only define SDL_CAMERA_DRIVER_MEDIAFOUNDATION if HAVE_CAMERA is TRUE?

Posted

The last time I tried building SDL2 was: SDL2_v2-0-22 (25-04-2022) with MinGW 8, on actual Windows XP x86.

That worked fine.

I have not tried building SDL3 that way.

There is also a MinGW 10 build environment on that system, if need be. But I don't have any spare time in the two weeks to come, I need to travel...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...