Closed iampham closed 1 month ago
Have the same issue. Bump.
I don't have experience building this with MSVC, so I can't help here. At this point, I'm not expecting pygame_sdl2 to be used outside of Ren'Py.
Recently I tried to build a new version and stumbled upon the same problems. Can't remember the full process of when I build it for the first time, but I remember it took me about a week of fiddling around and I still got some notes from then:
LNK2001: SDL-devel gotta be properly installed / linked and don't use a virtualenv.
Python.h not found: don't use a virtualenv or copy the include dir containing the python.h from the Python home dir to the root of the virtualenv.
C2065: Install latest VC and C++ BuildTools for your version of VisualStudio and add path to path variables.. also building process seems to favor the newest install in your path, but building may only work on VisualStudio 2015 to 2017 for some reason.
+Also check if your python setuptools is up to date.
I hope for this to help somebody out at least a bit and I'd be glad if someone figures out more.^^
I used newer versions of SDL2 source code to replace the files in pygame_sdl2_windeps, and successfully built the wheel.
I've followed the instructions listed on the documentation in the README:
As soon as I run
python setup.py install
, the build runs smoothly until I get the following error:Other files before pygame_sdl2.event.c seem to have built succesfully. The build gets hung on this specific file. Is there any known fix/am I doing something stupid?
Thanks for the help!