How do you compile an OpenGL program on Ubuntu?
- by Steve Johnson
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!