adamlwgriffiths / cyglfw3

Cython bindings for GLFW3
Other
20 stars 6 forks source link

pip install glfw3 failed #26

Open sebastiaanvdm opened 3 years ago

sebastiaanvdm commented 3 years ago

I'm trying to install this package on Win10, Python 3.7. I ran pip install glfw succesfully before doing pip install cyglfw3.

I'm getting the following output: pip install cyglfw3 Collecting cyglfw3 Using cached cyglfw3-3.1.0.2.tar.gz (159 kB) Requirement already satisfied: Cython in c:\users\sebastiaan\anaconda3\envs\pvnet\lib\site-packages (from cyglfw3) (0.29.21) Building wheels for collected packages: cyglfw3 Building wheel for cyglfw3 (setup.py) ... error ERROR: Command errored out with exit status 1: command: 'C:\Users\Sebastiaan\Anaconda3\envs\pvnet\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\SEBAST~1\\AppData\\Local\\Temp\\pip-install-51bpkevq\\cyglfw3\\setup.py'"'"'; __file__='"'"'C:\\Users\\SEBAST~1\\AppData\\Local\\Temp\\pip-install-51bpkevq\\cyglfw3\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\SEBAST~1\AppData\Local\Temp\pip-wheel-94v36s6i' cwd: C:\Users\SEBAST~1\AppData\Local\Temp\pip-install-51bpkevq\cyglfw3\ Complete output (22 lines): Warning: 'classifiers' should be a list, got type 'tuple' running bdist_wheel running build running build_py creating build creating build\lib.win-amd64-3.7 creating build\lib.win-amd64-3.7\cyglfw3 copying cyglfw3\compatible.py -> build\lib.win-amd64-3.7\cyglfw3 copying cyglfw3\version.py -> build\lib.win-amd64-3.7\cyglfw3 copying cyglfw3\__init__.py -> build\lib.win-amd64-3.7\cyglfw3 copying cyglfw3\glfw3.pyx -> build\lib.win-amd64-3.7\cyglfw3 copying cyglfw3\cglfw3.pxd -> build\lib.win-amd64-3.7\cyglfw3 copying cyglfw3\glfw3.c -> build\lib.win-amd64-3.7\cyglfw3 running build_ext building 'cyglfw3.glfw3' extension creating build\temp.win-amd64-3.7 creating build\temp.win-amd64-3.7\Release creating build\temp.win-amd64-3.7\Release\cyglfw3 C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\Sebastiaan\Anaconda3\envs\pvnet\include -IC:\Users\Sebastiaan\Anaconda3\envs\pvnet\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\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" /Tccyglfw3/glfw3.c /Fobuild\temp.win-amd64-3.7\Release\cyglfw3/glfw3.obj glfw3.c cyglfw3/glfw3.c(624): fatal error C1083: Cannot open include file: 'GLFW/glfw3.h': No such file or directory error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.27.29110\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2 ---------------------------------------- ERROR: Failed building wheel for cyglfw3 Running setup.py clean for cyglfw3 Failed to build cyglfw3 Installing collected packages: cyglfw3 Running setup.py install for cyglfw3 ... error ERROR: Command errored out with exit status 1: command: 'C:\Users\Sebastiaan\Anaconda3\envs\pvnet\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\SEBAST~1\\AppData\\Local\\Temp\\pip-install-51bpkevq\\cyglfw3\\setup.py'"'"'; __file__='"'"'C:\\Users\\SEBAST~1\\AppData\\Local\\Temp\\pip-install-51bpkevq\\cyglfw3\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\SEBAST~1\AppData\Local\Temp\pip-record-drlsro3b\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\Sebastiaan\Anaconda3\envs\pvnet\Include\cyglfw3' cwd: C:\Users\SEBAST~1\AppData\Local\Temp\pip-install-51bpkevq\cyglfw3\ Complete output (22 lines): Warning: 'classifiers' should be a list, got type 'tuple' running install running build running build_py creating build creating build\lib.win-amd64-3.7 creating build\lib.win-amd64-3.7\cyglfw3 copying cyglfw3\compatible.py -> build\lib.win-amd64-3.7\cyglfw3 copying cyglfw3\version.py -> build\lib.win-amd64-3.7\cyglfw3 copying cyglfw3\__init__.py -> build\lib.win-amd64-3.7\cyglfw3 copying cyglfw3\glfw3.pyx -> build\lib.win-amd64-3.7\cyglfw3 copying cyglfw3\cglfw3.pxd -> build\lib.win-amd64-3.7\cyglfw3 copying cyglfw3\glfw3.c -> build\lib.win-amd64-3.7\cyglfw3 running build_ext building 'cyglfw3.glfw3' extension creating build\temp.win-amd64-3.7 creating build\temp.win-amd64-3.7\Release creating build\temp.win-amd64-3.7\Release\cyglfw3 C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\Sebastiaan\Anaconda3\envs\pvnet\include -IC:\Users\Sebastiaan\Anaconda3\envs\pvnet\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\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" /Tccyglfw3/glfw3.c /Fobuild\temp.win-amd64-3.7\Release\cyglfw3/glfw3.obj glfw3.c cyglfw3/glfw3.c(624): fatal error C1083: Cannot open include file: 'GLFW/glfw3.h': No such file or directory error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.27.29110\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2 ---------------------------------------- ERROR: Command errored out with exit status 1: 'C:\Users\Sebastiaan\Anaconda3\envs\pvnet\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\SEBAST~1\\AppData\\Local\\Temp\\pip-install-51bpkevq\\cyglfw3\\setup.py'"'"'; __file__='"'"'C:\\Users\\SEBAST~1\\AppData\\Local\\Temp\\pip-install-51bpkevq\\cyglfw3\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\SEBAST~1\AppData\Local\Temp\pip-record-drlsro3b\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\Sebastiaan\Anaconda3\envs\pvnet\Include\cyglfw3' Check the logs for full command output.

I guess I need to change something about the GLFW installation, but I don't know what. Any help is greatly appreciated.

adamlwgriffiths commented 3 years ago

I haven't tried windows, but you might get some luck with the instructions on the README.

Try setting set GLFW_ROOT=<path to include/GLFW/glfw3.h> and then running pip.

If that doesn't work, check out the repo and run both commands from the README.

You might have more luck with a more active project, eg. https://github.com/FlorianRhiem/pyGLFW I don't have time to maintain these anymore.

sebastiaanvdm commented 3 years ago

It's someone else's project I'm trying to run, so needed to go this route... Anyway, I don't really know what I'm doing here so I guess I should cut my losses. Thank you for you response anyway!

benny1611 commented 3 years ago

Hi, I'm getting the same error, do you know any fix for this? I'm also using Windows 😅

Here is the error message again:

Collecting cyglfw3
  Using cached cyglfw3-3.1.0.2.tar.gz (159 kB)
Requirement already satisfied: Cython in d:\software\anaconda\lib\site-packages (from cyglfw3) (3.0.0a9)
Building wheels for collected packages: cyglfw3
  Building wheel for cyglfw3 (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: 'D:\Software\Anaconda\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Benny\\AppData\\Local\\Temp\\pip-install-ixapne6_\\cyglfw3_58e05666650d41e2afaf0cf61f08fb23\\setup.py'"'"'; __file__='"'"'C:\\Users\\Benny\\AppData\\Local\\Temp\\pip-install-ixapne6_\\cyglfw3_58e05666650d41e2afaf0cf61f08fb23\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\Benny\AppData\Local\Temp\pip-wheel-oyaudaxm'
       cwd: C:\Users\Benny\AppData\Local\Temp\pip-install-ixapne6_\cyglfw3_58e05666650d41e2afaf0cf61f08fb23\
  Complete output (22 lines):
  Warning: 'classifiers' should be a list, got type 'tuple'
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build\lib.win-amd64-3.7
  creating build\lib.win-amd64-3.7\cyglfw3
  copying cyglfw3\compatible.py -> build\lib.win-amd64-3.7\cyglfw3
  copying cyglfw3\version.py -> build\lib.win-amd64-3.7\cyglfw3
  copying cyglfw3\__init__.py -> build\lib.win-amd64-3.7\cyglfw3
  copying cyglfw3\glfw3.pyx -> build\lib.win-amd64-3.7\cyglfw3
  copying cyglfw3\cglfw3.pxd -> build\lib.win-amd64-3.7\cyglfw3
  copying cyglfw3\glfw3.c -> build\lib.win-amd64-3.7\cyglfw3
  running build_ext
  building 'cyglfw3.glfw3' extension
  creating build\temp.win-amd64-3.7
  creating build\temp.win-amd64-3.7\Release
  creating build\temp.win-amd64-3.7\Release\cyglfw3
  D:\Software\VisualStudio\VC\Tools\MSVC\14.25.28610\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -ID:\Software\Anaconda\include -ID:\Software\Anaconda\include -ID:\Software\VisualStudio\VC\Tools\MSVC\14.25.28610\ATLMFC\include -ID:\Software\VisualStudio\VC\Tools\MSVC\14.25.28610\include "-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" /Tccyglfw3/glfw3.c /Fobuild\temp.win-amd64-3.7\Release\cyglfw3/glfw3.obj
  glfw3.c
  cyglfw3/glfw3.c(813): fatal error C1083: Cannot open include file: 'GLFW/glfw3.h': No such file or directory
  error: command 'D:\\Software\\VisualStudio\\VC\\Tools\\MSVC\\14.25.28610\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2
  ----------------------------------------
  ERROR: Failed building wheel for cyglfw3
  Running setup.py clean for cyglfw3
Failed to build cyglfw3
adamlwgriffiths commented 3 years ago

Did you try setting the GLFW_ROOT environment variable?

benny1611 commented 3 years ago

Yes, but still nothing. The environment is set to: GLFW_ROOT=D:\Software\CodeBlocks\GLFW\include\GLFW\glfw3.h

adamlwgriffiths commented 3 years ago

You need to set it to the location of the library, not the header. Ie. D:\Software\CodeBlocks\GLFW

Here's the relevant line from setup.py. The path you set GLFW_ROOT to will have include as a subdirectory.

benny1611 commented 3 years ago

Ok, I've changed the environment variable as you suggested, but I get another error:

Collecting cyglfw3
  Using cached cyglfw3-3.1.0.2.tar.gz (159 kB)
Requirement already satisfied: Cython in d:\software\anaconda\lib\site-packages (from cyglfw3) (3.0.0a9)
Building wheels for collected packages: cyglfw3
  Building wheel for cyglfw3 (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: 'D:\Software\Anaconda\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Benny\\AppData\\Local\\Temp\\pip-install-drsa5jgd\\cyglfw3_3d0378d0cfde4fc0942006083253df12\\setup.py'"'"'; __file__='"'"'C:\\Users\\Benny\\AppData\\Local\\Temp\\pip-install-drsa5jgd\\cyglfw3_3d0378d0cfde4fc0942006083253df12\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\Benny\AppData\Local\Temp\pip-wheel-_bjqc12r'
       cwd: C:\Users\Benny\AppData\Local\Temp\pip-install-drsa5jgd\cyglfw3_3d0378d0cfde4fc0942006083253df12\
  Complete output (25 lines):
  Warning: 'classifiers' should be a list, got type 'tuple'
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build\lib.win-amd64-3.7
  creating build\lib.win-amd64-3.7\cyglfw3
  copying cyglfw3\compatible.py -> build\lib.win-amd64-3.7\cyglfw3
  copying cyglfw3\version.py -> build\lib.win-amd64-3.7\cyglfw3
  copying cyglfw3\__init__.py -> build\lib.win-amd64-3.7\cyglfw3
  copying cyglfw3\glfw3.pyx -> build\lib.win-amd64-3.7\cyglfw3
  copying cyglfw3\cglfw3.pxd -> build\lib.win-amd64-3.7\cyglfw3
  copying cyglfw3\glfw3.c -> build\lib.win-amd64-3.7\cyglfw3
  running build_ext
  building 'cyglfw3.glfw3' extension
  creating build\temp.win-amd64-3.7
  creating build\temp.win-amd64-3.7\Release
  creating build\temp.win-amd64-3.7\Release\cyglfw3
  D:\Software\VisualStudio\VC\Tools\MSVC\14.25.28610\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -ID:\Software\Anaconda\include -ID:\Software\Anaconda\include -ID:\Software\VisualStudio\VC\Tools\MSVC\14.25.28610\ATLMFC\include -ID:\Software\VisualStudio\VC\Tools\MSVC\14.25.28610\include "-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" /Tccyglfw3/glfw3.c /Fobuild\temp.win-amd64-3.7\Release\cyglfw3/glfw3.obj -ID:\Software\CodeBlocks\GLFW\include
  glfw3.c
  cyglfw3/glfw3.c(13220): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
  cyglfw3/glfw3.c(13229): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
  D:\Software\VisualStudio\VC\Tools\MSVC\14.25.28610\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:D:\Software\Anaconda\libs /LIBPATH:D:\Software\Anaconda\PCbuild\amd64 /LIBPATH:D:\Software\VisualStudio\VC\Tools\MSVC\14.25.28610\ATLMFC\lib\x64 /LIBPATH:D:\Software\VisualStudio\VC\Tools\MSVC\14.25.28610\lib\x64 "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.18362.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.18362.0\um\x64" glfw3dll.lib /EXPORT:PyInit_glfw3 build\temp.win-amd64-3.7\Release\cyglfw3/glfw3.obj /OUT:build\lib.win-amd64-3.7\cyglfw3\glfw3.cp37-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.7\Release\cyglfw3\glfw3.cp37-win_amd64.lib /LIBPATH:D:\Software\CodeBlocks\GLFW\lib-vc2012
  LINK : fatal error LNK1181: cannot open input file 'glfw3dll.lib'
  error: command 'D:\\Software\\VisualStudio\\VC\\Tools\\MSVC\\14.25.28610\\bin\\HostX86\\x64\\link.exe' failed with exit status 1181
  ----------------------------------------
  ERROR: Failed building wheel for cyglfw3
  Running setup.py clean for cyglfw3
Failed to build cyglfw3

How can I fix this?

adamlwgriffiths commented 3 years ago

Rinse-repeat. If you go to the next line youll see where it's looking for the library file.

benny1611 commented 3 years ago

Yes, but the problem that it expects all the libs in $GLFW_ROOT/lib-vc2012 as you can see at the end of the longest line: ..... /LIBPATH:D:\Software\CodeBlocks\GLFW\lib-vc2012. I copied glfw3dll.lib in a newly created folder lib-vc2012 and then I've got a bunch of unresolved external symbol errors

benny1611 commented 3 years ago

Here's what I've tried: I downloaded the file glfw3dll.lib from here And the glfw3.lib file from here

Because they are not included in the binaries download on their official website.

Then I've created a folder $GLFW_ROOT/lib-vc2012 and pasted those 2 files there.

After that I've tried to execute the command again, then I've got this error:

Collecting cyglfw3
  Using cached cyglfw3-3.1.0.2.tar.gz (159 kB)
Requirement already satisfied: Cython in d:\software\anaconda\lib\site-packages (from cyglfw3) (3.0.0a9)
Building wheels for collected packages: cyglfw3
  Building wheel for cyglfw3 (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: 'D:\Software\Anaconda\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Benny\\AppData\\Local\\Temp\\pip-install-gvuv0rh8\\cyglfw3_e734e20fb0eb44a8aa898712b31e80b4\\setup.py'"'"'; __file__='"'"'C:\\Users\\Benny\\AppData\\Local\\Temp\\pip-install-gvuv0rh8\\cyglfw3_e734e20fb0eb44a8aa898712b31e80b4\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\Benny\AppData\Local\Temp\pip-wheel-92w4djqq'
       cwd: C:\Users\Benny\AppData\Local\Temp\pip-install-gvuv0rh8\cyglfw3_e734e20fb0eb44a8aa898712b31e80b4\
  Complete output (101 lines):
  Warning: 'classifiers' should be a list, got type 'tuple'
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build\lib.win-amd64-3.7
  creating build\lib.win-amd64-3.7\cyglfw3
  copying cyglfw3\compatible.py -> build\lib.win-amd64-3.7\cyglfw3
  copying cyglfw3\version.py -> build\lib.win-amd64-3.7\cyglfw3
  copying cyglfw3\__init__.py -> build\lib.win-amd64-3.7\cyglfw3
  copying cyglfw3\glfw3.pyx -> build\lib.win-amd64-3.7\cyglfw3
  copying cyglfw3\cglfw3.pxd -> build\lib.win-amd64-3.7\cyglfw3
  copying cyglfw3\glfw3.c -> build\lib.win-amd64-3.7\cyglfw3
  running build_ext
  building 'cyglfw3.glfw3' extension
  creating build\temp.win-amd64-3.7
  creating build\temp.win-amd64-3.7\Release
  creating build\temp.win-amd64-3.7\Release\cyglfw3
  D:\Software\VisualStudio\VC\Tools\MSVC\14.25.28610\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -ID:\Software\Anaconda\include -ID:\Software\Anaconda\include -ID:\Software\VisualStudio\VC\Tools\MSVC\14.25.28610\ATLMFC\include -ID:\Software\VisualStudio\VC\Tools\MSVC\14.25.28610\include "-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" /Tccyglfw3/glfw3.c /Fobuild\temp.win-amd64-3.7\Release\cyglfw3/glfw3.obj -ID:\Software\CodeBlocks\GLFW\include
  glfw3.c
  cyglfw3/glfw3.c(13220): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
  cyglfw3/glfw3.c(13229): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
  D:\Software\VisualStudio\VC\Tools\MSVC\14.25.28610\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:D:\Software\Anaconda\libs /LIBPATH:D:\Software\Anaconda\PCbuild\amd64 /LIBPATH:D:\Software\VisualStudio\VC\Tools\MSVC\14.25.28610\ATLMFC\lib\x64 /LIBPATH:D:\Software\VisualStudio\VC\Tools\MSVC\14.25.28610\lib\x64 "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.18362.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.18362.0\um\x64" glfw3dll.lib /EXPORT:PyInit_glfw3 build\temp.win-amd64-3.7\Release\cyglfw3/glfw3.obj /OUT:build\lib.win-amd64-3.7\cyglfw3\glfw3.cp37-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.7\Release\cyglfw3\glfw3.cp37-win_amd64.lib /LIBPATH:D:\Software\CodeBlocks\GLFW\lib-vc2012
     Creating library build\temp.win-amd64-3.7\Release\cyglfw3\glfw3.cp37-win_amd64.lib and object build\temp.win-amd64-3.7\Release\cyglfw3\glfw3.cp37-win_amd64.exp
  glfw3.obj : error LNK2001: unresolved external symbol glfwSwapBuffers
  glfw3.obj : error LNK2001: unresolved external symbol glfwSetFramebufferSizeCallback
  glfw3.obj : error LNK2001: unresolved external symbol glfwSetGamma
  glfw3.obj : error LNK2001: unresolved external symbol glfwSwapInterval
  glfw3.obj : error LNK2001: unresolved external symbol glfwGetClipboardString
  glfw3.obj : error LNK2001: unresolved external symbol glfwGetInputMode
  glfw3.obj : error LNK2001: unresolved external symbol glfwDefaultWindowHints
  glfw3.obj : error LNK2001: unresolved external symbol glfwSetWindowIconifyCallback
  glfw3.obj : error LNK2001: unresolved external symbol glfwGetWindowAttrib
  glfw3.obj : error LNK2001: unresolved external symbol glfwGetTime
  glfw3.obj : error LNK2001: unresolved external symbol glfwSetDropCallback
  glfw3.obj : error LNK2001: unresolved external symbol glfwGetKey
  glfw3.obj : error LNK2001: unresolved external symbol glfwGetVideoMode
  glfw3.obj : error LNK2001: unresolved external symbol glfwRestoreWindow
  glfw3.obj : error LNK2001: unresolved external symbol glfwGetVideoModes
  glfw3.obj : error LNK2001: unresolved external symbol glfwCreateCursor
  glfw3.obj : error LNK2001: unresolved external symbol glfwSetMonitorCallback
  glfw3.obj : error LNK2001: unresolved external symbol glfwGetFramebufferSize
  glfw3.obj : error LNK2001: unresolved external symbol glfwSetClipboardString
  glfw3.obj : error LNK2001: unresolved external symbol glfwGetMouseButton
  glfw3.obj : error LNK2001: unresolved external symbol glfwTerminate
  glfw3.obj : error LNK2001: unresolved external symbol glfwGetMonitorName
  glfw3.obj : error LNK2001: unresolved external symbol glfwPostEmptyEvent
  glfw3.obj : error LNK2001: unresolved external symbol glfwGetCurrentContext
  glfw3.obj : error LNK2001: unresolved external symbol glfwSetCursorEnterCallback
  glfw3.obj : error LNK2001: unresolved external symbol glfwGetWindowSize
  glfw3.obj : error LNK2001: unresolved external symbol glfwSetMouseButtonCallback
  glfw3.obj : error LNK2001: unresolved external symbol glfwGetVersionString
  glfw3.obj : error LNK2001: unresolved external symbol glfwSetCursor
  glfw3.obj : error LNK2001: unresolved external symbol glfwPollEvents
  glfw3.obj : error LNK2001: unresolved external symbol glfwInit
  glfw3.obj : error LNK2001: unresolved external symbol glfwDestroyCursor
  glfw3.obj : error LNK2001: unresolved external symbol glfwSetTime
  glfw3.obj : error LNK2001: unresolved external symbol glfwSetKeyCallback
  glfw3.obj : error LNK2001: unresolved external symbol glfwSetWindowShouldClose
  glfw3.obj : error LNK2001: unresolved external symbol glfwSetScrollCallback
  glfw3.obj : error LNK2001: unresolved external symbol glfwCreateWindow
  glfw3.obj : error LNK2001: unresolved external symbol glfwWindowHint
  glfw3.obj : error LNK2001: unresolved external symbol glfwGetWindowFrameSize
  glfw3.obj : error LNK2001: unresolved external symbol glfwSetInputMode
  glfw3.obj : error LNK2001: unresolved external symbol glfwMakeContextCurrent
  glfw3.obj : error LNK2001: unresolved external symbol glfwShowWindow
  glfw3.obj : error LNK2001: unresolved external symbol glfwCreateStandardCursor
  glfw3.obj : error LNK2001: unresolved external symbol glfwGetJoystickAxes
  glfw3.obj : error LNK2001: unresolved external symbol glfwGetJoystickButtons
  glfw3.obj : error LNK2001: unresolved external symbol glfwGetMonitorPhysicalSize
  glfw3.obj : error LNK2001: unresolved external symbol glfwSetWindowCloseCallback
  glfw3.obj : error LNK2001: unresolved external symbol glfwGetMonitors
  glfw3.obj : error LNK2001: unresolved external symbol glfwJoystickPresent
  glfw3.obj : error LNK2001: unresolved external symbol glfwSetCursorPos
  glfw3.obj : error LNK2001: unresolved external symbol glfwGetWindowPos
  glfw3.obj : error LNK2001: unresolved external symbol glfwDestroyWindow
  glfw3.obj : error LNK2001: unresolved external symbol glfwSetWindowRefreshCallback
  glfw3.obj : error LNK2001: unresolved external symbol glfwGetVersion
  glfw3.obj : error LNK2001: unresolved external symbol glfwGetGammaRamp
  glfw3.obj : error LNK2001: unresolved external symbol glfwWaitEvents
  glfw3.obj : error LNK2001: unresolved external symbol glfwSetWindowPosCallback
  glfw3.obj : error LNK2001: unresolved external symbol glfwIconifyWindow
  glfw3.obj : error LNK2001: unresolved external symbol glfwSetWindowTitle
  glfw3.obj : error LNK2001: unresolved external symbol glfwGetPrimaryMonitor
  glfw3.obj : error LNK2001: unresolved external symbol glfwGetProcAddress
  glfw3.obj : error LNK2001: unresolved external symbol glfwGetMonitorPos
  glfw3.obj : error LNK2001: unresolved external symbol glfwHideWindow
  glfw3.obj : error LNK2001: unresolved external symbol glfwSetCharModsCallback
  glfw3.obj : error LNK2001: unresolved external symbol glfwSetCursorPosCallback
  glfw3.obj : error LNK2001: unresolved external symbol glfwGetCursorPos
  glfw3.obj : error LNK2001: unresolved external symbol glfwSetWindowFocusCallback
  glfw3.obj : error LNK2001: unresolved external symbol glfwGetJoystickName
  glfw3.obj : error LNK2001: unresolved external symbol glfwExtensionSupported
  glfw3.obj : error LNK2001: unresolved external symbol glfwSetWindowSizeCallback
  glfw3.obj : error LNK2001: unresolved external symbol glfwSetWindowSize
  glfw3.obj : error LNK2001: unresolved external symbol glfwSetErrorCallback
  glfw3.obj : error LNK2001: unresolved external symbol glfwWindowShouldClose
  glfw3.obj : error LNK2001: unresolved external symbol glfwSetCharCallback
  glfw3.obj : error LNK2001: unresolved external symbol glfwSetWindowPos
  build\lib.win-amd64-3.7\cyglfw3\glfw3.cp37-win_amd64.pyd : fatal error LNK1120: 75 unresolved externals
  error: command 'D:\\Software\\VisualStudio\\VC\\Tools\\MSVC\\14.25.28610\\bin\\HostX86\\x64\\link.exe' failed with exit status 1120
  ----------------------------------------
  ERROR: Failed building wheel for cyglfw3
  Running setup.py clean for cyglfw3
Failed to build cyglfw3
adamlwgriffiths commented 3 years ago

Getting random glfw3 lib files from around the web is only going to cause you problems.

Why not download the last version that this code supported (3.0.1) from the official website?

benny1611 commented 3 years ago

Downloaded the files from the official website, I pasted the 2 files in the folder and still the same error