PDA

View Full Version : Cant get lglut to work



newuser
03-01-2011, 12:54 AM
Hi, I hope this is the right place to post this. I'm a complete newbie at C++ coding and linux but I need some help. For a comp phys assignment I have to run a program and the instructions say to

$ make program_openGL

however when I do this is get an error
/usr/bin/ld cannot find -lXmu
/usr/bin/ld cannot find -lXi
collect2: ld returned 1 exit status

I tried installing and removing different packages in synaptic but I cant get the program to run. I would appreciate any help. Thank You

ZbuffeR
03-01-2011, 02:16 AM
sudo apt-get install libxmu-dev libxi-dev
should get you ready.

It is surprising these are not installed when installing glut itself.
With :
sudo apt-get install freeglut3-dev
everything to develop with glut should be here, maybe an Ubuntu bug.

newuser
03-01-2011, 02:54 PM
Thanks so much that worked perfectly.