views:

226

answers:

3

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

A: 

They're part of mesa, as libGL*.so.* and the like, usually in /usr/lib*.

Ignacio Vazquez-Abrams
in usr/lib i didnt find the file ,can i know what names it may have
kumar
If you don't have it then perhaps you should consider installing it from its package. Try something starting with `mesa` and ending with `-dev`.
Ignacio Vazquez-Abrams
do u mean manually or please can you tell me the procedure apt get i did the followinglibgl1-mesalibgl1-mesa-devlibglu1-mesaglutg3glutg3-devlibglui-devlibglut3libglut3-devcan you suggest me more
kumar
Hai Lgnacio,I did the installation of opengl but where are my lib files stored that info i need ,What names the lib file will have ...etc ..etc
kumar
A: 

/usr/lib/libGL.so

link with -lGL

sisis
+1  A: 

You should not need to mention their location explicitly in your Makefile since they should be in the standard library search path (probably in /usr/lib).

Like sisis wrote you should just need to add -lGL to the linker flags to link against libGL.so which might actually come from different sources: mesa or some fancy graphics card driver.

honk