3

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?

1

2 Answers 2

3

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

Sign up to request clarification or add additional context in comments.

6 Comments

And libglw1-mesa, which is the most important of all. It's an implementation (very well known) of the OpenGL API.
Thanks. I don't run Ubuntu any more, so I knew something was wrong with the command list ;)
Blender doesn't use Ubuntu anymore ='( Windows?
Ubuntu has become a netbook distro IMO, same with GNOME's layout. Arch Linux is my distro of choice now, as at least I can install XFCE without any problems on it...
I miss XFCE, it's been so long.
|
1

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.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.