Jump to content
  • Advertisement
Sign in to follow this  
Twisol

OpenGL OpenGL on Ubuntu Linux?

This topic is 3904 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I've recently gotten into Ubuntu, and I've looked all over the place for information on getting OpenGL headers, and how to get started with them on Ubuntu, but I've had no luck. Can anyone here point me in the right direction? Also, I'm not sure I want to go with Mesa, either, because, well.... it's not OpenGL, and it's maintained by a third party.

Share this post


Link to post
Share on other sites
Advertisement
I'm not sure if this is the exact package but try:
sudo apt-get install libgl1-mesa-dev
and it should install all the headers
if that doesn't work do a search for mesa and you should find a package similar to that one

Share this post


Link to post
Share on other sites
Since package names often change, I find it handy to use the apt-get build-dep command. This will give you all the packages (compilers, libraries and development packages) required to build a certain package. If you want OpenGL, but can't figure out what Ubuntu calls the package, just install the build deps for a program that uses the OpenGL library such a tux racer.

sudo apt-get build-dep tuxracer

This is by no means an exact method, or even a good method, but sometimes it's better than digging around for half an hour for a rather minor thing.

Share this post


Link to post
Share on other sites
Quote:
Original post by linkofazeroth
Also, I'm not sure I want to go with Mesa, either, because, well.... it's not OpenGL, and it's maintained by a third party.


Every opengl header set that is out there is maintained by third party - if you install Windows or MacOSX you'll get headers created by Microsoft and Apple respectively, if you install nvidia binary or ati binary drivers you'll get header files maintained by Nvidia and ATI. I am not aware of any particular differences between them, other than the fact that some of them are not up-to-date on recent OpenGL version releaese and extensions, which can be easily mitigated by using GLEW or other extension-wrapping library.

Share this post


Link to post
Share on other sites
Im learning opengl and use ubuntu 7.10
These are the packages i use

OpenGL:
libgl1-mesa-dev

OpenGL extensions:
libglew1.4-dev

SDL:
libsdl1.2-dev

SDL image to load textures:
libsdl-image1.2-dev

Share this post


Link to post
Share on other sites
Quote:
Original post by jonahrowley
If you want OpenGL, but can't figure out what Ubuntu calls the package, just install the build deps for a program that uses the OpenGL library such a tux racer.
Yikes!!!

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!