Hesam Qodsi
Hesam Qodsi

Reputation: 1585

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?

Upvotes: 3

Views: 1262

Answers (2)

bertobot
bertobot

Reputation: 116

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.

Upvotes: 1

Blender
Blender

Reputation: 298512

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

Upvotes: 3

Related Questions