Opengl programming doesn't work after NVidia installtion

i just configured NVidia drivers in my Redhat Linux8.0 box nicely…but after that
when I go for compiling any opengl program
by command …
gcc -o something something.c -lglut -lGL -lGLU -lm

it says there is no such file named


any possible solution please.
thanks in advance,

The problem is exactly what the your program/linker is telling you.

Go to your GL/ directory. It is missing glut.h. The full path is probably /usr/include/GL .

Do a search on Google for glut on Linux. And then install the bad boy.

This is helpful to get glut up and running:

Old GLman

For GLUT you need mesa I think it is. Try this to compile
g++ main.cpp -B /usr/X11R6/lib -o program -lX11 -lXi -lXmu -lglut -lGL -lGLU -lm -lpthread

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