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
or
g++ main.cpp -lGL -lGLU -lglut
double click the a.out
or in terminal type ./a.out
No comments:
Post a Comment