Re: [blfs-dev] Freeglut
Hello, On Thu, Oct 25, 2012 at 06:19:32PM +0200, Ragnar Thomsen wrote: Did anyone try building freeglut-2.8.0 with libxrandr-1.4.0? I get a bunch of errors related to xrandr (se output below). -Ragnar- snip ../../../src/.libs/libglut.so: undefined reference to `XRRConfigTimes' ../../../src/.libs/libglut.so: undefined reference to `XRRSetScreenConfigAndRate' I also had this error while building freeglut-2.8.0, but with libXrandr-1.3.2. I got around it by: LDFLAGS=-L/usr/X11/lib ./configure $XORG_PREFIX ... ae -- http://elian001.wordpress.com -- http://linuxfromscratch.org/mailman/listinfo/blfs-dev FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
Re: [blfs-dev] freeglut
On Wed, 16 May 2012 21:09:14 +0100 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? I don't know, I always install xorg into /usr. Freeglut compiles without any problem for me. I thought it was your idea to put Xorg into /opt? Andy -- http://linuxfromscratch.org/mailman/listinfo/blfs-dev FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
Re: [blfs-dev] freeglut
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
Re: [blfs-dev] freeglut
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
Re: [blfs-dev] freeglut
On 5/16/12, Armin K. kre...@email.com wrote: On 05/16/2012 10:01 PM, Bruce Dubbs wrote: /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 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. Dan was right about ld.so.conf. Like LD_LIBRARY_PATH, it only resolves libraries at run time. The gl.pc file is correct and it is in the plg-config path, but the freeglut demos are quite old and don't use the .pc files. The are two ways I've found to fix this: LDFLAGS=-L/opt/xorg/lib ./configure ... or export LIBRARY_PATH=$XORG_PREFIX/lib ./configure ... I think I will add the 2nd for for the educational value. I don't think we use it anywhere else. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/blfs-dev FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page