PDA

View Full Version : GL/glut library files not found?



abhilashm86
February 26th, 2009, 06:21 AM
i'm trying OPENGL to do some basic geometry models, but when i tried and compiled, the GL/glut library functions were not there, how to include these ones, where will i get the library headers?please help

stumbleUpon
February 26th, 2009, 06:27 AM
You have to install the development packages of the glut libraries


sudo apt-get install freeglut3-dev libglut3-dev

and then link against the libraries


-lm -lGL -L/usr/X11R6/lib -lGLU -lglut

to get an executable.

abhilashm86
February 26th, 2009, 07:21 AM
You have to install the development packages of the glut libraries


sudo apt-get install freeglut3-dev libglut3-dev

and then link against the libraries


-lm -lGL -L/usr/X11R6/lib -lGLU -lglut

to get an executable.

thanks a lot for the info, it just included libraries:)