Pink-Silver / PyDoom

A port of the game DOOM to the Python scripting language, aiming for maximum flexibility through modding.
Other
92 stars 11 forks source link

Build failed on Win10 #3

Open AokiAhishatsu opened 4 years ago

AokiAhishatsu commented 4 years ago

I'm getting:

C:\Code\PyDoom>python setup_extensions.py build_ext --inplace
Compiling pydoom/interface.pyx because it changed.
Compiling pydoom/resources.pyx because it changed.
Compiling pydoom/core.pyx because it changed.
Compiling pydoom/wadfile.pyx because it changed.
[1/4] Cythonizing pydoom/core.pyx
[2/4] Cythonizing pydoom/interface.pyx
[3/4] Cythonizing pydoom/resources.pyx
[4/4] Cythonizing pydoom/wadfile.pyx
running build_ext
building 'pydoom.interface' extension
creating build
creating build\temp.win-amd64-3.8
creating build\temp.win-amd64-3.8\Release
creating build\temp.win-amd64-3.8\Release\pydoom
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ipydoom -Iextern/SDL2-2.0.4/include -IC:\Users\kig0pkt12\AppData\Local\Programs\Python\Python38\include -IC:\Users\kig0p
kt12\AppData\Local\Programs\Python\Python38\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\include" "-IC:\Pro
gram Files (x86)\Windows Kits\NETFXSDK\4.7.2\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC
:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" /Tcpydoom/interface.c /Fobuild\temp.win-amd64-3.8\Release\pydoom/interface.obj
interface.c
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1157): error C2054: expected '(' to follow 'WINGDIAPI'
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1157): error C2085: 'APIENTRY': not in formal parameter list
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1157): error C2146: syntax error: missing ',' before identifier 'glAccum'
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1157): error C2143: syntax error: missing ';' before '('
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1157): error C2059: syntax error: ')'
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1158): error C2054: expected '(' to follow 'WINGDIAPI'
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1158): error C2085: 'APIENTRY': not in formal parameter list
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1158): error C2146: syntax error: missing ',' before identifier 'glAlphaFunc'
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1158): error C2143: syntax error: missing ';' before '('
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1158): error C2059: syntax error: ')'
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1159): error C2054: expected '(' to follow 'WINGDIAPI'
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1159): error C2085: 'APIENTRY': not in formal parameter list
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1159): error C2146: syntax error: missing ',' before identifier 'glAreTexturesResident'
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1159): error C2143: syntax error: missing ';' before '('
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1159): error C2059: syntax error: ')'
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1160): error C2054: expected '(' to follow 'WINGDIAPI'
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1160): error C2085: 'APIENTRY': not in formal parameter list
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1160): error C2146: syntax error: missing ',' before identifier 'glArrayElement'
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1160): error C2143: syntax error: missing ';' before '('
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1160): error C2059: syntax error: ')'
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1161): error C2054: expected '(' to follow 'WINGDIAPI'
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1161): error C2085: 'APIENTRY': not in formal parameter list
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1161): error C2146: syntax error: missing ',' before identifier 'glBegin'
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1161): error C2143: syntax error: missing ';' before '('
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1161): error C2059: syntax error: ')'
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1162): error C2054: expected '(' to follow 'WINGDIAPI'
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1162): error C2085: 'APIENTRY': not in formal parameter list
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1162): error C2146: syntax error: missing ',' before identifier 'glBindTexture'
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1162): error C2143: syntax error: missing ';' before '('
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1162): error C2059: syntax error: ')'
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1163): error C2054: expected '(' to follow 'WINGDIAPI'
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1163): error C2085: 'APIENTRY': not in formal parameter list
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1163): error C2146: syntax error: missing ',' before identifier 'glBitmap'
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1163): error C2143: syntax error: missing ';' before '('
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1163): error C2059: syntax error: ')'
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1164): error C2054: expected '(' to follow 'WINGDIAPI'
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1164): error C2085: 'APIENTRY': not in formal parameter list
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1164): error C2146: syntax error: missing ',' before identifier 'glBlendFunc'
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1164): error C2143: syntax error: missing ';' before '('
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1164): error C2059: syntax error: ')'
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1165): error C2054: expected '(' to follow 'WINGDIAPI'
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1165): error C2085: 'APIENTRY': not in formal parameter list
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1165): error C2146: syntax error: missing ',' before identifier 'glCallList'
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1165): error C2143: syntax error: missing ';' before '('
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1165): error C2059: syntax error: ')'
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1166): error C2054: expected '(' to follow 'WINGDIAPI'
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1166): error C2085: 'APIENTRY': not in formal parameter list
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1166): error C2146: syntax error: missing ',' before identifier 'glCallLists'
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1166): error C2143: syntax error: missing ';' before '('
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1166): error C2059: syntax error: ')'
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1167): error C2054: expected '(' to follow 'WINGDIAPI'
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1167): error C2085: 'APIENTRY': not in formal parameter list
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1167): error C2146: syntax error: missing ',' before identifier 'glClear'
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1167): error C2143: syntax error: missing ';' before '('
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1167): error C2059: syntax error: ')'
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1168): error C2054: expected '(' to follow 'WINGDIAPI'
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1168): error C2085: 'APIENTRY': not in formal parameter list
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1168): error C2146: syntax error: missing ',' before identifier 'glClearAccum'
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1168): error C2143: syntax error: missing ';' before '('
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1168): error C2059: syntax error: ')'
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1169): error C2054: expected '(' to follow 'WINGDIAPI'
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1169): error C2085: 'APIENTRY': not in formal parameter list
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1169): error C2146: syntax error: missing ',' before identifier 'glClearColor'
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1169): error C2143: syntax error: missing ';' before '('
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1169): error C2059: syntax error: ')'
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1170): error C2054: expected '(' to follow 'WINGDIAPI'
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1170): error C2085: 'APIENTRY': not in formal parameter list
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1170): error C2146: syntax error: missing ',' before identifier 'glClearDepth'
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1170): error C2143: syntax error: missing ';' before '('
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1170): error C2059: syntax error: ')'
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1171): error C2054: expected '(' to follow 'WINGDIAPI'
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1171): error C2085: 'APIENTRY': not in formal parameter list
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1171): error C2146: syntax error: missing ',' before identifier 'glClearIndex'
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1171): error C2143: syntax error: missing ';' before '('
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1171): error C2059: syntax error: ')'
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1172): error C2054: expected '(' to follow 'WINGDIAPI'
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1172): error C2085: 'APIENTRY': not in formal parameter list
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1172): error C2146: syntax error: missing ',' before identifier 'glClearStencil'
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1172): error C2143: syntax error: missing ';' before '('
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1172): error C2059: syntax error: ')'
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1173): error C2054: expected '(' to follow 'WINGDIAPI'
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1173): error C2085: 'APIENTRY': not in formal parameter list
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1173): error C2146: syntax error: missing ',' before identifier 'glClipPlane'
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1173): error C2143: syntax error: missing ';' before '('
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1173): error C2059: syntax error: ')'
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1174): error C2054: expected '(' to follow 'WINGDIAPI'
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1174): error C2085: 'APIENTRY': not in formal parameter list
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1174): error C2146: syntax error: missing ',' before identifier 'glColor3b'
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1174): error C2143: syntax error: missing ';' before '('
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1174): error C2059: syntax error: ')'
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1175): error C2054: expected '(' to follow 'WINGDIAPI'
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1175): error C2085: 'APIENTRY': not in formal parameter list
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1175): error C2146: syntax error: missing ',' before identifier 'glColor3bv'
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1175): error C2143: syntax error: missing ';' before '('
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1175): error C2059: syntax error: ')'
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1176): error C2054: expected '(' to follow 'WINGDIAPI'
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1176): error C2085: 'APIENTRY': not in formal parameter list
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1176): error C2146: syntax error: missing ',' before identifier 'glColor3d'
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1176): error C2143: syntax error: missing ';' before '('
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1176): error C2059: syntax error: ')'
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1177): error C2054: expected '(' to follow 'WINGDIAPI'
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\GL/gl.h(1177): fatal error C1003: error count exceeds 100; stopping compilation
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.24.28314\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2
donno commented 4 years ago

I came across the same problem, my fixes need some further clean up if they would form a pull request.

The solution I had was to use GLEW. I later discovered that setup_exe.py actually expects GLEW to be used on Windows (it tries to include the DLL) however setup_extensions.py is lacking the setup for linking against GLEW via the glew_lib variable on Windows to look under extern (which then in turn needs the libraries to placed there).