nvidia opengl
I'm taking a graphics class and we are going to learn opengl (on windows) but I want to be able to do my work (at least some of it) on my linux box. I'm running Slackware 9 and I have installed the NVidia drivers for my gefore4mx card and it seems to have gone well. I can't seem to find the GL/glut.h header (I even looked in /usr/share/doc/NVIDIA_GLX-1.0/include/GL) I read in another post that glut.h comes with mesa but in another website (I can't find it again) it says that mesa and nvidia drivers are incompatible.
I don't know if it shows yet, but I don't know too much about what I'm doing. If it makes a difference, this is a simple file that I tried to compile and the error messages that I got:
mdeanda@lin2k:~/opengl$ cat test.c
#include<GL/glut.h>
int main(int argc, char **argv)
{
glutInit(&argc,argv);
glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB);
glutInitWindowSize(500,500);
glutInitWindowPosition(0,0);
glutCreateWindow("simple opengl example");
glutDisplayFunc(display);
//myinit();
glutMainLoop();
return 0;
}
mdeanda@lin2k:~/opengl$ gcc test.c
test.c:1:20: GL/glut.h: No such file or directory
test.c: In function `main':
test.c:6: `GLUT_SINGLE' undeclared (first use in this function)
test.c:6: (Each undeclared identifier is reported only once
test.c:6: for each function it appears in.)
test.c:6: `GLUT_RGB' undeclared (first use in this function)
test.c:10: `display' undeclared (first use in this function)
|