How do you compile an OpenGL program on Ubuntu?

Posted by Steve Johnson on Stack Overflow See other posts from Stack Overflow or by Steve Johnson
Published on 2010-12-25T04:35:13Z Indexed on 2010/12/25 17:54 UTC
Read the original article Hit count: 290

Filed under:
|

I'm a Ubuntu user who is interested in learning OpenGL. I found a page with some samples on it:

http://www.opengl.org/resources/code/samples/glut_examples/examples/examples.html

but when I try to compile the first one using:

cc -o abgr abgr.c -lglut -lGLU -lGL -lXmu -lXext -lX11 -lm

I get an error message saying:

/usr/bin/ld: cannot find -lXmu
collect2: ld returned 1 exit status

What is "lXmu"? How do I get this to compile? I'm 15 years old and new to computer programming. Thanks!

© Stack Overflow or respective owner

Related posts about opengl

Related posts about ubuntu