Please help me to run opengl programs in linux

hi

i tried to complile a opengl program  in redhat linux 9 using the

command

gcc -L/usr/X11R6/lib -I/usr/include/GL -lXmu -lXi -lGLU -lGL -lglut
program1.c -o program1

it is giving an error message saying that it can’t find the glut.h in
usr/include/GL/ .I manually checked and i cant find the file in GL
directory.

i tried to install the pacakage glut-devel-3.7-12.i386.rpm but it
crashes linux and makes the situation even worse.

what package should i need to install in order to run opengl programs?

please help me.

thank you

Saravanan

There are no “official” pre-compiled binaries for Linux.

Get the source files from:
http://www.opengl.org/resources/libraries/glut/glut_downloads.html

After untarring, simply follow the build instructions (they are in the README in the linus subdirectory).

Good luck and post with any problems…

You may want to try freeglut instead of the regular old glut. A google search should give you all the information you need.

  • SFRuckus

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.