Showing posts with label Opengl. Show all posts
Showing posts with label Opengl. Show all posts

Friday, January 4, 2008

how to setup opengl in ubuntu

opengl packages are in default in build-essential
for compiling opengl programs
-> g++ main.cpp -o simple -I/usr/X11R6/include/ -L/usr/X11R6/lib -lX11 -lglut -lGL -lGLU
for running opengl programs
->Double click the executable in the folder of the source file

or

g++ main.cpp -lGL -lGLU -lglut
double click the a.out
or in terminal type ./a.out