cannot find -lGLU

David Jensen djensen at inebraska.com
Sun Feb 29 22:52:41 PST 2004


Shelton wrote:

> while building something that requires opengl, i got the following error:
> /usr/bin/ld: cannot find -lGLU
> collect2: ld returned 1 exit status

To see if you have libGLU. 
]#ls -la /usr/X11R6/lib/libGLU*

you should have a .a and some .so's

If they are there, does the last gcc command have -L/usr/X11R6/lib
buried in there just before the error?
If it is there it should link, and I'm stumped.
If it is not, you need to edit the Makefile and add -L/usr/X11R6/lib
somewhere.  Trial and Error, good luck.
Whats the app you're attempting?
David Jensen




More information about the blfs-support mailing list