Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

where are the opengl libraries get stored on ubuntu : i need this to mention in my make file

where are the opengl libraries get stored on ubuntu9.10 : i need this to mention in my make file and what are all the link files i need to mention

like image 850
kumar Avatar asked Feb 02 '10 08:02

kumar


2 Answers

Install these to get OpenGL working:

sudo apt-get install mesa-common-dev

sudo apt-get install freeglut3

sudo apt-get install freeglut3-dev

The OpenGL files should be in:

/usr/include/GL/

The Terminal (Compiler) reads (e.g. g++) from:

/usr/bin/

Compile like this (you might need to link more libraries, but test this):

g++ filename -lglut -lGL -lGLU

like image 97
zelgit Avatar answered Oct 12 '22 23:10

zelgit


/usr/lib/libGL.so

link with -lGL

like image 37
sisis Avatar answered Oct 12 '22 22:10

sisis