开发者

Writing OpenGL applications in C++

I am a linux user. I write OpenGL applications in python but i am going to write OpenGL applications in C++ 开发者_开发知识库, but i have a problem. there is no 'GL' folder in '/urs/include' directory and i have not acces to OpenGL headers. what should i do? is there not installed packages?


You have to install it.

For Ubuntu, I think the command is:

sudo apt-get install freeglut3 freeglut3-dev

As this installs everything freeglut depends on.

For other linux distros (I run Arch Linux), just search Google for opengl headers {distro}.


You need to install mesa (if you don't have a graphics card with decent drivers). Depending on your distro, there should be an easy way to do this. You'll be interested in mesa-common-dev or libmesa.

On gentoo with an nvidia graphics card, I installed nvidia-drivers and I get the header files with it.

On ubuntu, I installed mesa-common-dev.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜