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 mentio开发者_StackOverflow中文版n
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
/usr/lib/libGL.so
link with -lGL
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.
They're part of mesa
, as libGL*.so.* and the like, usually in /usr/lib*.
精彩评论