I am a linux user. I write OpenGL applications in python but i am going to write OpenGL applications in C++ , but i have a problem. there is no 'GL' folder in '/urs/include' directory and i have not acces to OpenGL headers. what should i do? is there not installed packages?
Asked
Active
Viewed 1,195 times
3
-
4Check out [this question here](http://stackoverflow.com/questions/3933027/how-to-get-the-gl-library-headers). – Dave Rager Jun 30 '11 at 16:02
2 Answers
3
You have to install it.
For Ubuntu, I think the command is:
sudo apt-get install freeglut3 freeglut3-dev
As this installs everything freeglut
depends on.
For other linux distros (I run Arch Linux), just search Google for opengl headers {distro}.

Blender
- 289,723
- 53
- 439
- 496
-
And `libglw1-mesa`, which is the most important of all. It's an implementation (very well known) of the OpenGL API. – karlphillip Jun 30 '11 at 16:05
-
Thanks. I don't run Ubuntu any more, so I knew something was wrong with the command list ;) – Blender Jun 30 '11 at 16:09
-
1
-
Ubuntu has become a netbook distro IMO, same with GNOME's layout. Arch Linux is my distro of choice now, as at least I can install XFCE without any problems on it... – Blender Jun 30 '11 at 16:13
-
-
@Blender: The same goes for Fedora. Ubuntu and Fedora: Dumbed down Distributions :( On my own machines I run either Gentoo or Arch. Gentoo is great for developers as you have the development for every installed library available without having to install additional developer packages. – datenwolf Jun 30 '11 at 17:28
1
You need to install mesa (if you don't have a graphics card with decent drivers). Depending on your distro, there should be an easy way to do this. You'll be interested in mesa-common-dev or libmesa.
On gentoo with an nvidia graphics card, I installed nvidia-drivers and I get the header files with it.
On ubuntu, I installed mesa-common-dev.

bertobot
- 116
- 5