On 05/16/2012 10:01 PM, Bruce Dubbs wrote: > I'm having a problem with freeglut and xorg being in /opt/xorg. > > I get: > > /bin/sh ../../../libtool --tag=CC --mode=link gcc -I../../../include > -g -O2 -Wall -pedantic -export-dynamic -o CallbackMaker > CallbackMaker-CallbackMaker.o ../../../src/libglut.la -lGL -lXext > -lX11 > > /usr/bin/ld: cannot find -lGL > > Yet I have: > > $ cat /etc/ld.so.conf > # Begin /etc/ld.so.conf > /usr/local/lib > /opt/lib > /opt/xorg/lib > > and > > $ ls /opt/xorg/lib/libGL* > /opt/xorg/lib/libGL.so /opt/xorg/lib/libGL.so.1.2 > /opt/xorg/lib/libGLU.so.1 > /opt/xorg/lib/libGL.so.1 /opt/xorg/lib/libGLU.so > /opt/xorg/lib/libGLU.so.1.3.08000 > > I can work around this, but why do I need to? Any ideas? > > -- Bruce
That is strange. It might be some bug with pkg-config, that is if Freeglut is using it. pkg-config --libs gl -lGL It should print -L/path/to/libGL.so -lGL since gl.pc contains: Libs: -L${libdir} -lGL and libdir for my setup is libdir=/usr/lib You can expand LD_LIBRARY_PATH to $XORG_PREFIX/lib if necesary, but this issue should be investigated first. -- http://linuxfromscratch.org/mailman/listinfo/blfs-dev FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page