I search www.opengl.org but I can't find any package for OpenGL
installation. Why so strange?
Any way to install OpenGL on Ubuntu?
Thanks
Water Lin
--
Water Lin's notes and pencils: http://en.waterlin.org
Email: WaterLin@ymail.com
|
|
-1
|
|
|
|
Reply
|
WaterLin (12)
|
12/28/2009 8:47:31 AM |
|
Water Lin wrote:
> I search www.opengl.org but I can't find any package for OpenGL
> installation. Why so strange?
>
> Any way to install OpenGL on Ubuntu?
>
From root, or use sudo:
apt-get install freeglut3
apt-get install freeglut3-dev # if you want to develop programs
apt-get install freeglut3-dbg # maybe of some use
does it for me.
You may need to look at System/Administration/Hardware Drivers to
install non-open-source drivers for your graphics card.
Hope this helps,
Jon C.
--
Jonathan Campbell www.jgcampbell.com BT48, UK.
|
|
0
|
|
|
|
Reply
|
Jonathan
|
12/28/2009 9:09:02 AM
|
|
Water Lin schrieb:
> I search www.opengl.org but I can't find any package for OpenGL
> installation. Why so strange?
>
> Any way to install OpenGL on Ubuntu?
>
> Thanks
>
> Water Lin
>
If you want hardware acceleration this depends on your graphics card.
However installing the libgl1-mesa-dev and libglu1-mesa-dev packages is
probably the first thing you'll want to do (and it gives you a software
implementation of OpenGL and the necessary headers for development).
Philipp
|
|
1
|
|
|
|
Reply
|
Philipp
|
12/28/2009 9:09:39 AM
|
|
Water Lin pravi:
> I search www.opengl.org but I can't find any package for OpenGL
> installation. Why so strange?
>
> Any way to install OpenGL on Ubuntu?
Ubuntu is not a good development platform. I'd try Gentoo if I was you.
There, you get OpenGL as a part of X. Maybe that's the case with Ubuntu
also.
|
|
0
|
|
|
|
Reply
|
keith
|
12/28/2009 3:36:10 PM
|
|
keith <johndoe64738@yahoo.com> writes:
> Water Lin pravi:
>> I search www.opengl.org but I can't find any package for OpenGL
>> installation. Why so strange?
>>
>> Any way to install OpenGL on Ubuntu?
>
> Ubuntu is not a good development platform. I'd try Gentoo if I was you.
> There, you get OpenGL as a part of X. Maybe that's the case with Ubuntu
> also.
Sorry, I am a new guy trying to use OpenGL. But I am a little confused
about the OpenGL. I can't find the download package in its offical
site. So it is not a real package for each system but just a standard
for drawing graphics?
On my computer, I just need to install the OpenGL Utility, is it right?
Thanks
Water Lin
--
Water Lin's notes and pencils: http://en.waterlin.org
Email: WaterLin@ymail.com
|
|
0
|
|
|
|
Reply
|
Water
|
12/29/2009 1:45:03 AM
|
|
Water Lin schrieb:
>
> Sorry, I am a new guy trying to use OpenGL. But I am a little confused
> about the OpenGL. I can't find the download package in its offical
> site. So it is not a real package for each system but just a standard
> for drawing graphics?
>
Well, If you use ubuntu you have some standard way of installing
packages. All you need for OpenGL development canbe found among those.
Just install packages like libgl1-mesa-dev, libglu1-mesa-dev or
freeglut3-dev (if you want glut, as needed for the examples from the
"OpenGL programming guide") the way you would install any other standard
ubuntu package (using synaptic or on the command line "apt-get install
freeglut3-dev" or whatever way you prefer to install such packages). Oh,
and you'll want to install the mesa-utils package as well, since it
contains glxinfo, which will be a useful tool to find out more about
your OpenGL (and if you come back to this newsgroup asking questions
about some OpenGL problem it's likely that people will want to see the
glxinfo output, sincs it can help diagnose problems).
Philipp
|
|
0
|
|
|
|
Reply
|
Philipp
|
12/29/2009 2:02:49 PM
|
|
"Water Lin" <WaterLin@ymail.invalid> wrote in message
news:87bphieeow.fsf@ymail.invalid...
> keith <johndoe64738@yahoo.com> writes:
>
>> Water Lin pravi:
>>> I search www.opengl.org but I can't find any package for OpenGL
>>> installation. Why so strange?
>>>
>>> Any way to install OpenGL on Ubuntu?
>>
>> Ubuntu is not a good development platform. I'd try Gentoo if I was you.
>> There, you get OpenGL as a part of X. Maybe that's the case with Ubuntu
>> also.
>
> Sorry, I am a new guy trying to use OpenGL. But I am a little confused
> about the OpenGL. I can't find the download package in its offical
> site. So it is not a real package for each system but just a standard
> for drawing graphics?
>
> On my computer, I just need to install the OpenGL Utility, is it right?
>
> Thanks
>
> Water Lin
>
> --
> Water Lin's notes and pencils: http://en.waterlin.org
> Email: WaterLin@ymail.com
OpenGL isn't open-source. There's no public open-source package to install.
MESA is an open-source implementation of most of OpenGL. If you then install
a proprietary driver (from nVidia or ATI), it will supply "opengl" in an
optimized form for you. So, after installing the mesa packages for your
ubuntu, if you have nVidia or ATI graphics cards, install their Linux
drivers.
see:
http://packages.ubuntu.com/search?suite=default§ion=all&arch=any&searchon=names&keywords=mesa
for various packages available.
|
|
0
|
|
|
|
Reply
|
jbwest
|
12/30/2009 2:56:15 AM
|
|
> Ubuntu is not a good development platform.
Could you please elaborate this statement?
|
|
1
|
|
|
|
Reply
|
Leclerc
|
12/30/2009 6:07:33 AM
|
|
jbwest schrieb:
>
> OpenGL isn't open-source. There's no public open-source package to install.
> MESA is an open-source implementation of most of OpenGL. If you then install
> a proprietary driver (from nVidia or ATI), it will supply "opengl" in an
> optimized form for you. So, after installing the mesa packages for your
> ubuntu, if you have nVidia or ATI graphics cards, install their Linux
> drivers.
This advice is a bit too general. For older ATI cards (X850 and earlier)
you probably do not want to install the proprietary driver, since the
free one from Mesa is already better (and the non-free drivers already
dropped support for several older cards). If you have such an older card
(or a current Intel graphics card) you probably will want to install the
libgl1-mesa-dri package.
Philipp
|
|
0
|
|
|
|
Reply
|
Philipp
|
12/30/2009 12:34:34 PM
|
|
Water Lin wrote:
>
> I search www.opengl.org but I can't find any package for OpenGL
> installation. Why so strange?
Because OpenGL is just the API _specification_. What you need is in fact an
_implementation_. Now on a considerably recent Ubuntu installation an OpenGL
implementation called "Mesa" is installed by default.
However what you're probably looking for is the stuff required to compile
programs using OpenGL. Those are in the Mesa development packages.
> Any way to install OpenGL on Ubuntu?
It's probably there already, but you probably need the dev-packages:
apt-get install libgl1-mesa-dev
You might also want/need to install some other packages, like GLEW,
FreeGLUT, SDL, etc.
Wolfgang
--
OpenGL tip #42:
How to exactly map texture texels to screen pixels:
<http://preview.tinyurl.com/cgndc8>
|
|
3
|
|
|
|
Reply
|
Wolfgang
|
1/1/2010 11:55:19 AM
|
|
|
9 Replies
33419 Views
(page loaded in 0.007 seconds)
|