gerwin Posted January 27 Posted January 27 (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 January 27 by gerwin
user57 Posted January 28 Posted January 28 these timers are almost the same just with different names
Andalu Posted January 28 Posted January 28 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.
gerwin Posted January 30 Author Posted January 30 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.
gerwin Posted January 30 Author Posted January 30 (edited) I just noticed this: https://wiki.libsdl.org/SDL3/README/windows States: "All desktop Windows versions, back to Windows XP, are still supported." So something is not as intended. Posted an issue here: https://github.com/libsdl-org/SDL/issues/12128 EDIT: AND... FIXED (by Sam Lantinga) Edited January 30 by gerwin
Ant-The-Alchemist Posted January 31 Posted January 31 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?
Ant-The-Alchemist Posted January 31 Posted January 31 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?
gerwin Posted January 31 Author Posted January 31 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...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now