PDA

View Full Version : linux with opengl ?



hhf
15th March 2010, 04:17
I got compiling error "GL/gl.h No such file or directory", while building a Qt example svgviewer on ubuntu.

did the linux need to install something which make ubuntu suit opengl ?? and where can I get it??

feng@pad-unix:~$ uname -a
Linux pad-unix 2.6.31-19-generic #56-Ubuntu SMP Thu Jan 28 01:26:53 UTC 2010 i686 GNU/Linux

hhf
15th March 2010, 05:22
well.. I solved the problem myself.
just install mesa, and things will be OK.
people with the same problem on the same platform can run the following commands :

sudo apt-get install mesa-common-dev
sudo apt-get install libgl1-mesa-dev libglu1-mesa-dev
sudo apt-get install freeglut-dev