thecountoftuscany / PyTeapot-Quaternion-Euler-cube-rotation

Visualization of IMU orientation from quaternion or Euler angles with a rotating cube
GNU General Public License v3.0
144 stars 42 forks source link

OpenGL.error.NullFunctionError: Attempt to call an undefined function gluPerspective #1

Closed JoarGjersund closed 5 years ago

JoarGjersund commented 5 years ago

I am running on Linux (Ubuntu). The window shows for a brief moment before it closes and this error appears:

pygame 1.9.4 Hello from the pygame community. https://www.pygame.org/contribute.html Traceback (most recent call last): File "pyteapot.py", line 188, in main() File "pyteapot.py", line 21, in main resizewin(640, 480) File "pyteapot.py", line 52, in resizewin gluPerspective(45, 1.0*width/height, 0.1, 100.0) File "/usr/local/lib/python2.7/dist-packages/OpenGL/platform/baseplatform.py", line 407, in call self.name, self.name, OpenGL.error.NullFunctionError: Attempt to call an undefined function gluPerspective, check for bool(gluPerspective) before calling

JoarGjersund commented 5 years ago

had to do apt-get install freeglut3 and freeglut3-dev.

thecountoftuscany commented 5 years ago

Closing the issue.