开发者

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 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*.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜