On 5/16/12, Bruce Dubbs <bruce.du...@gmail.com> 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?
ld.so.conf is for the dynamic linker. You need to get -L paths to the linker somehow. freeglut isn't helping you out by trying to figure out where X is installed using pkg-config. They're also not really following the use of AC_PATH_XTRA from autoconf where you could use --with-x-libraries=/opt/xorg/lib. Probably you just need to run with LDFLAGS="-L/opt/xorg/lib" for this package. -- Dan -- http://linuxfromscratch.org/mailman/listinfo/blfs-dev FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page