Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

freeglut errors #76

Open
GentleHedgehog opened this issue Feb 17, 2022 · 0 comments
Open

freeglut errors #76

GentleHedgehog opened this issue Feb 17, 2022 · 0 comments

Comments

@GentleHedgehog
Copy link

Hello.

My OS - Windows 10 x64. MSVC build tools - Visual Studio 2019 version 16.11.10. Python 3.9 x64.

I installed this library by pip. Then I tried to import OpenGL.GLUT and call to glutInit(), but I got the error - undefined reference. I downloaded freeglut (MSVC version), added a path to the dll to the system path. But I got the same error.

Then I looked at the code. I found that pyopengl requires the special name for glut: "freeglut64.vc14.dll" (for my case). I dont understand. Why?

I changed the name of dll and glutInit() call had success. But then I got the following error:

Traceback (most recent call last): File "d:\Python\Projects\OpenGL\opengl_hello_world.py", line 15, in <module> wind = glutCreateWindow("OpenGL Coding Practice") # Give your window a title File "C:\Users\ejok8\anaconda3\envs\opengl_venv\lib\site-packages\OpenGL\GLUT\special.py", line 73, in glutCreateWindow return __glutCreateWindowWithExit(title, _exitfunc) ctypes.ArgumentError: argument 1: <class 'TypeError'>: wrong type

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant