You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On the sdl2 branch in libsdl-org/SDL there is a function SDL_JoystickGetDeviceInstanceID in joystick.h. I don't see it in the version of sdl2 the pygame_sdl_windeps repo has which is why the build fails. Is a newer version of SDL needed for the build to work?
The text was updated successfully, but these errors were encountered:
I just ran into the same issue. I am not the maintainer, but I looked into it and managed to get pygame_sdl2 to compile successfully. Your analysis is correct, but SDL_JoystickGetDeviceInstanceID is only the beginning of the problems. The various commits made to this repo require other symbols that are also missing from renpy/pygame_sdl2_windeps.
Here is what I did on Windows in case it is useful to anyone:
Git clone renpy/pygame_sdl2 and add renpy/pygame_sdl2_windeps as a submodule.
Download SDL2-devel-2.0.14-VC from https://www.libsdl.org/release/ and move it inside the pygame_sdl2/pygame_sdl2_windeps directlry.
Run "python ./unpack.py SDL2-devel-2.0.14-VC.zip" from the pygame_sdl2/pygame_sdl2_windeps directory. This will overwrite all the relevant files in the include/ and lib/ subdirectories
(optional) Depending on your compiler, you may run into an unrelated error with src/SDL_gfxPrimitives.c. Recent versions of MSVC define lrint() as an intrinsic function whereas the #ifdef pragma assumes this function to be missing for that compiler. Ideally, the pragma should be updated to check the version number. If all you care is creating a new binary and not committing any changes, I suggest simply removing the entire #ifdef block.
Rerun "python setup.py install" in the pygame_sdl2 directory.
On the sdl2 branch in libsdl-org/SDL there is a function SDL_JoystickGetDeviceInstanceID in joystick.h. I don't see it in the version of sdl2 the pygame_sdl_windeps repo has which is why the build fails. Is a newer version of SDL needed for the build to work?
The text was updated successfully, but these errors were encountered: