I am trying to run an OpenGL program. When I compile that program terminal, it shows an error:
fatal error: GL/glut.h: No such file or directory #include <GL/glut.h>
When I try to install freeglut, I got another error:
$ sudo apt-get install mesa-common-dev libgi-mesa-dev libglui-mesa-dev freeglut3-dev
[sudo] password for yash:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libgi-mesa-dev
E: Unable to locate package libglui-mesa-dev
Please help me to figure this out.
libglu1-mesa-dev
(with digit1
) notlibglui-mesa-dev
(letteri
) – steeldriver Apr 12 '18 at 12:36sudo apt install freeglut3-dev
https://packages.ubuntu.com/xenial/freeglut3-dev – Knud Larsen Apr 12 '18 at 14:49