renpy / pygame_sdl2

Reimplementation of portions of the pygame API using SDL2.
GNU Lesser General Public License v2.1
325 stars 63 forks source link

Building 'pygame_sdl2.rwobject' extension failes #124

Closed mjpvz closed 1 month ago

mjpvz commented 4 years ago

I'm trying to follow the build instructions for windows.

I cloned the window dependencies to the pygame_sdl2 folder and run

python2 setup.py install

and it fails with the following:

< above there are no errors >
building 'pygame_sdl2.rwobject' extension
C:\Users\mitch\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\bin\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -I. -Isrc -Ipygame_sdl2_windeps\include -Ipygame_sdl2_windeps\include27 -IC:\Python27\include -IC:\Python27\PC /Tcgen\pygame_sdl2.rwobject.c /Fobuild\temp.win32-2.7\Release\gen\pygame_sdl2.rwobject.obj
pygame_sdl2.rwobject.c
src\python_threads.h(12) : error C2054: expected '(' to follow 'inline'
src\python_threads.h(12) : error C2085: 'init_python_threads' : not in formal parameter list
src\python_threads.h(12) : error C2143: syntax error : missing ';' before '{'
gen\pygame_sdl2.rwobject.c(2829) : warning C4244: '=' : conversion from 'Sint64' to 'size_t', possible loss of data
gen\pygame_sdl2.rwobject.c(4647) : warning C4013: 'init_python_threads' undefined; assuming extern returning int
error: command 'C:\\Users\\mitch\\AppData\\Local\\Programs\\Common\\Microsoft\\Visual C++ for Python\\9.0\\VC\\bin\\cl.exe' failed with exit status 2

I'm running python2.7 32 and have Microsoft Visual C++ Compiler for Python 2.7 installed.

cityblack1 commented 4 years ago

i faced the same problerm, i guess that for i am using windows 10