I am new to linux(mandrake9), and i need to get a opengl+x11 sample running on my system.
If i try to compile a NeHe glx sample app…
gcc -Wall -pedantic -ansi lesson03.c -o lesson03 -L/usr/X11R6/lib -lGL -lGLU -lX
xf86vm
lesson03.c:14:20: GL/glx.h: No such file or directory
lesson03.c:15:19: GL/gl.h: No such file or directory
lesson03.c:16:20: GL/glu.h: No such file or directory
lesson03.c:17:38: X11/extensions/xf86vmode.h: No such file or directory
lesson03.c:18:24: X11/keysym.h: No such file or directory
If you dont have /usr/include/GL you probly dont have OpenGL. What you need to do is goto mesa3d.sourceforge.net and download and isntall that. You should/need to compile from source and install since it needs to compile for your kernel, this means you have to have your kernel source installed it probly is. Check to see if your video card company makes linux drivers cuz those are made for your card, I know nvidia does(im running them) and ive heard ATI does as well.
I’m getting tired of this.All right here we go again:Mesa got integrated into X from version 4 upwards through the DRI.The Mesa you’re reffering to , nukem, is he software implementation.Do not install that.Instead install the X11 deveopment libs or whatever package has the DRI development stuff in your distro.The only reason it probably works for you is that you have the xlibs installed(which installs the correct libgl.so) and the mesa sources just provide the headers.