Jump to content

  • Log In with Google      Sign In   
  • Create Account


OpenGL on Ubuntu Linux?


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
5 replies to this topic

#1 Twisol   Members   -  Reputation: 468

Like
0Likes
Like

Posted 09 February 2008 - 10:01 PM

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.

Sponsor:

#2 DumitruSorin   Members   -  Reputation: 104

Like
0Likes
Like

Posted 09 February 2008 - 10:19 PM

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

#3 jonahrowley   Members   -  Reputation: 300

Like
0Likes
Like

Posted 09 February 2008 - 11:14 PM

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.

#4 snoutmate   Members   -  Reputation: 337

Like
0Likes
Like

Posted 09 February 2008 - 11:28 PM

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.


#5 Saya   Members   -  Reputation: 112

Like
0Likes
Like

Posted 10 February 2008 - 02:57 AM

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

#6 Krohm   Crossbones+   -  Reputation: 3047

Like
0Likes
Like

Posted 10 February 2008 - 06:53 AM

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!!!




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS