View Full Version : compiling an opengl application

June 4th, 2009, 10:39 AM
i have a code in opengl that use glut and glui library of opengl for rotating and moving large data sets. i am unable to run the code on my machine as both these lib. are missing from my system and i am unable to download them.
can anyone tell me how can i modify my code so that it will work without these libraries.

June 5th, 2009, 03:12 AM
Well, you can't. If the program was written with those libraries, the only way to run it without them is to comment out all references to functions from those libraries. But of course that means the program won't work as expected.

Why can't you download the files?

June 5th, 2009, 08:25 AM
install basic libraries for opengl, open terminal and type

sudo apt-get install freeglut3-dev libglut3-dev

then compile with .cpp filename with linking following,

g++ pgmname.cpp -lm -lGL -L/usr/X11R6/lib -lGLU -lglut

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

if you want to create an IDE for opengl,