Game Development Community

Problems linking with Mandrake 10.0

by Ollipekka M · in Torque Game Engine · 03/30/2004 (2:30 am) · 2 replies

Im having this error when trying to link the project

--> Linking out.GCC3.RELEASE/torqueDemo.bin
/usr/bin/ld: cannot find -lGLU
collect2: ld returned 1 exit status
make[1]: *** [out.GCC3.RELEASE/torqueDemo.bin] Error 1
make: *** [default] Error 2

I've seen it before in here. But this time I believe that I have the static library of libGLU. I'm pretty sure that static version would come with libMesaGLU /usr/X11R6/lib/libGLU.la .. I have also installed libxfree86-devel... What should I try next?

#1
03/31/2004 (1:01 pm)
Ok, fixed.

In case that someone runs to same problems. Here is what I did. I copied from another system libGLU.a to /usr/X11R6/lib directory and it all worked after. It seems that there is no package which would give you static GLU library. Perhaps if you dont have it anywhere you must compile it by your self.
#2
04/27/2004 (6:16 pm)
One way to get a static version of GLU (ie libGLU.a) you must get the source for Mesa and compile a static version of it.

Mandrake should have the source on one of the source CDs if you got the full blown version.

Have fun,
Frank