开发者

How do you compile an OpenGL program on Ubuntu?

开发者 https://www.devze.com 2023-02-01 17:47 出处:网络
When I try to compile the first example on this page using: cc -o abgr abgr.c -lg开发者_如何学运维lut -lGLU -lGL -lXmu -lXext -lX11 -lm

When I try to compile the first example on this page using:

cc -o abgr abgr.c -lg开发者_如何学运维lut -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?


Try installing libxmu-dev.

sudo apt-get install libxmu-dev


you may have to install libxmu-dev

try:

sudo apt-get install libxmu-dev libxmu6


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

0

精彩评论

暂无评论...
验证码 换一张
取 消