fogleman / pg

Python OpenGL Graphics Framework

Home Page:http://pg.readthedocs.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot find library glfw2 on Windows

lwanger opened this issue · comments

I am trying to run a pg application on a 64 bit Windows 10 machine. I have pg and glfw installed (I can import glfw and create a Window) but get a "ImportError: Failed to load GLFW3 shared library" error when importing glfw.

I suspect the issue has to do with not having the right search path. When I look at glfw.py I see call to:

_glfw = _load_library(['glfw', 'glfw3'], ['.so', '.dylib', '.dll'],
['', '/usr/lib', '/usr/local/lib'], _glfw_get_version)

I do not see anything there that looks like a Windows path, nor do I see where a search path or environment variable is used. So two things: 1) How do I get it to work on a Windows box, and 2) the documentation should be updated to include how to install on a Windows system or deal with this error.

Thanks,

Len

p.s. the code sample to re-product the problem is:

import pg