PDA

View Full Version : [SOLVED] Getting OpenGL (possibly MESA) for programming



Fixman
December 18th, 2007, 09:00 PM
What should I download for using OpenGL on Ubuntu? Once I downloaded it, to what libraries should I link?

EDIT: found everything with a little google. I must get used to not ask here for everything

LaRoza
December 18th, 2007, 09:21 PM
Search is Synaptic, it looks like "libglu1-mesa-dev" is what you need.

I never used it, so I don't know.

Fixman
December 18th, 2007, 09:42 PM
Search is Synaptic, it looks like "libglu1-mesa-dev" is what you need.

I never used it, so I don't know.

To what libraries must I link for using it?

DougB1958
December 19th, 2007, 02:25 AM
To what libraries must I link for using it?
These work for me:

-lglut -lGLU -lGL -lX11
(Those are options used with command-line GCC when linking an OpenGL/GLUT program for Ubuntu; adapt the syntax as needed for your development environment.)