i am using redhat linux 9 and i am having some problems in running opengl programs in linux. I ran a sample program and i have got the following errors
lesson1.c:9:61: GL/glut.h: No such file or directory
lesson1.c: In function main': lesson1.c:90: GLUT_RGBA’ undeclared (first use in this function)
lesson1.c:90: (Each undeclared identifier is reported only once
lesson1.c:90: for each function it appears in.)
lesson1.c:90: GLUT_DOUBLE' undeclared (first use in this function) lesson1.c:90: GLUT_ALPHA’ undeclared (first use in this function)
lesson1.c:90: `GLUT_DEPTH’ undeclared (first use in this function)
i found glut installed in my system and the version is glut-3.7-12 and i can able to find the file libglut.so.3.7 in /usr/lib directory.
What else i have to install inorder to run opengl programs. Please give me a detailed explanation on how to obtain those packages and installing them since i am new to linux and opengl.
In my computer there is NO Graphics card installed .
If you suggest MESA 3d is my last option then please help me in installing those pacakages
I had similar problems and finally got everything working. Check for the location of glut.h and make sure you have that in your library path. It does sound like you have glut installed, since the lib file is available. The definition errors are from not finding the header file. Include that in the compile line and ou should be set.
George
Originally posted by saravanan:
[b]Hi,
i am using redhat linux 9 and i am having some problems in running opengl programs in linux. I ran a sample program and i have got the following errors
lesson1.c:9:61: GL/glut.h: No such file or directory
lesson1.c: In function main': lesson1.c:90: GLUT_RGBA’ undeclared (first use in this function)
lesson1.c:90: (Each undeclared identifier is reported only once
lesson1.c:90: for each function it appears in.)
lesson1.c:90: GLUT_DOUBLE' undeclared (first use in this function) lesson1.c:90: GLUT_ALPHA’ undeclared (first use in this function)
lesson1.c:90: `GLUT_DEPTH’ undeclared (first use in this function)
i found glut installed in my system and the version is glut-3.7-12 and i can able to find the file libglut.so.3.7 in /usr/lib directory.
What else i have to install inorder to run opengl programs. Please give me a detailed explanation on how to obtain those packages and installing them since i am new to linux and opengl.
In my computer there is NO Graphics card installed .
If you suggest MESA 3d is my last option then please help me in installing those pacakages