"cannot find -lglu" error while trying to compile with freeglut

25 views
Skip to first unread message

Cuong Nguyen

unread,
Jun 28, 2010, 4:46:30 AM6/28/10
to PSUComputerGraphics
Hi,

I'm trying to compile a small openGl program in Ubuntu 10.x using
Eclipse with C++ supported. I used this tutorial
http://www.ferdychristant.com/blog/articles/DOMM-72MPPE

I'm pretty sure everything is set up, but once I tried to compile this
error message keeps coming up:

g++ -L/usr/lib/ -o"opengl_glut" ./main.o -lglut -lglu
/usr/bin/ld: cannot find -lglu

I also checked usr/include and usr/lib all the header files and .so
files are exist.

Thank you for any helps,
Cuong

komplikaded

unread,
Jul 3, 2010, 7:54:15 PM7/3/10
to PSUComputerGraphics
I think that maybe you didn't install the right libraries. I
installed both glut and freeglut.

Cuong Nguyen

unread,
Jul 3, 2010, 8:46:52 PM7/3/10
to psucomput...@googlegroups.com
Thanks for the reply and sorry I did not update this topic. I found a solution. 'glu' and 'gl' have to be included together with 'glut', but they must be uppercase. So the libraries to include are 'glut', 'GLU' and 'GL'.


--
You received this message because you are subscribed to the Google Groups "PSUComputerGraphics" group.
To post to this group, send email to psucomput...@googlegroups.com.
To unsubscribe from this group, send email to psucomputergrap...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/psucomputergraphics?hl=en.


Reply all
Reply to author
Forward
0 new messages