Steve Johnson
Steve Johnson

Reputation: 969

How do you compile an OpenGL program on Ubuntu?

When I try to compile the first example on this page 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?

Upvotes: 6

Views: 10244

Answers (3)

John Boker
John Boker

Reputation: 83699

you may have to install libxmu-dev

try:

sudo apt-get install libxmu-dev libxmu6

Upvotes: 2

Jonathan Sternberg
Jonathan Sternberg

Reputation: 6647

Try installing libxmu-dev.

sudo apt-get install libxmu-dev

Upvotes: 4

wizztjh
wizztjh

Reputation: 7041

I will suggest you to learn by this . For me , it is better to start off with some video. Good luck with the learning! kiddo! haha

Upvotes: 1

Related Questions