03-13-2004, 06:41 PM
hi everyone
i'm not an expert using linux and i'm having frustrating problems with getting glut to work on redhat 9.0 (shrike).
i've looked up every possible forum on the internet about it but unsuccessful.
Firstly, i tried compiling glut using mesa6.0. After extracting the files i followed the instruction they gave me.
1) ./configure did not work as there is no such file.
2) after typing make a whole list was generated with OS types. I did not find anything particular to what i was using so i typed 'make Linux' and off it went. however during it compliation there were countless errors (including parse errors). And yes i was logged in as root.
Secondly i found forums telling me to erase the new rpm's and compile the older ones made for rh8.0...glut-3.7-8.i386...and glut-devel-3.7-8.i386 which i got from ftp.redhat.com
i erased the old one and installed these as instructed, however i still can make any C programs to use glut.h
i made an empty C program which included glut.h to see if the library at least worked but it says it couldn't find glut.h
i typed it like this -
#include <glut.h>
glut.h exists in /usr/include/GL/...along with fglu.h and fgl.h
so i tried directly including glut.h from the directory but now it says -
/usr/include/GL/glut.h:58:19 GL/gl.h No such file
and similarly for glu.h
i don't even have gl.h/glu.h...only ones preceded with 'f'.
i've tried countless variations of compiling the file...
gcc -o temp temp.c -lGLU etc etc etc
but nothing seems to work!
pls help me!
i'm not an expert using linux and i'm having frustrating problems with getting glut to work on redhat 9.0 (shrike).
i've looked up every possible forum on the internet about it but unsuccessful.
Firstly, i tried compiling glut using mesa6.0. After extracting the files i followed the instruction they gave me.
1) ./configure did not work as there is no such file.
2) after typing make a whole list was generated with OS types. I did not find anything particular to what i was using so i typed 'make Linux' and off it went. however during it compliation there were countless errors (including parse errors). And yes i was logged in as root.
Secondly i found forums telling me to erase the new rpm's and compile the older ones made for rh8.0...glut-3.7-8.i386...and glut-devel-3.7-8.i386 which i got from ftp.redhat.com
i erased the old one and installed these as instructed, however i still can make any C programs to use glut.h
i made an empty C program which included glut.h to see if the library at least worked but it says it couldn't find glut.h
i typed it like this -
#include <glut.h>
glut.h exists in /usr/include/GL/...along with fglu.h and fgl.h
so i tried directly including glut.h from the directory but now it says -
/usr/include/GL/glut.h:58:19 GL/gl.h No such file
and similarly for glu.h
i don't even have gl.h/glu.h...only ones preceded with 'f'.
i've tried countless variations of compiling the file...
gcc -o temp temp.c -lGLU etc etc etc
but nothing seems to work!
pls help me!