Re: [Plib-users] Can't find Glut
Brought to you by:
sjbaker
From: Steve B. <sjb...@ai...> - 2003-08-19 01:25:27
|
Sid Owen wrote: > When I configure Plib-1.6.0, I get an error message saying it can't find > a working Glut library. Yep - that's what it says. > I have looked in the config.log file but that is like gobbledygook to > me. Well, what configure does is to write a small C program that uses one specific function from the library it's testing for - then compiles it and see whether there were errors. So, in the check for glut: > configure: failed program was: This is the program it wrote: > #line 2801 "configure" > #include "confdefs.h" > /* Override any gcc2 internal prototype to avoid an error. */ > /* We use char because int might match the return type of a gcc2 > builtin and then its argument prototype would still apply. */ > char glutGetModifiers(); > > int main() { > glutGetModifiers() > ; return 0; } It's a simple program that calls glutGetModifiers - if it doesn't compile, that can only be because there is something wrong either with FINDING libglut - or LINKING to libglut. Let's see what happened: > configure:2841: checking for glutGetModifiers in -lglut OK - so here is the command it uses for compiling the test code: > configure:2860: gcc -o conftest -g -O2 -I/usr/lib/include > -L/usr/lib/lib -L/usr/X11R6/lib conftest.c -lglut -lGLU -lGL -lSM > -lICE -lXi -lXmu -lXext -lX11 -lm 1>&5 ...and here are the error messages from GCC: > /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libglut.so: undefined > reference to `glXBindChannelToWindowSGIX' > /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libglut.so: undefined > reference to `glXQueryChannelDeltasSGIX' > /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libglut.so: undefined > reference to `glXChannelRectSyncSGIX' > /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libglut.so: undefined > reference to `glXChannelRectSGIX' > /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libglut.so: undefined > reference to `glXQueryChannelRectSGIX' > collect2: ld returned 1 exit status So, it looks like it found an installed version of libglut - but when it linked it into the test program, there were other undefined symbols: glXBindChannelToWindowSGIX, glXQueryChannelDeltasSGIX, glXChannelRectSyncSGIX, glXChannelRectSGIX, glXQueryChannelRectSGIX. These are GLX symbols that are unique to SGI computers running IRIX!! They are not supported under Linux at all!?! So - it *seems* like the libglut that we've got here was compiled with flags set for running on an SGI/IRIX machine. I think you need to remove whatever libglut(s) you have on your machine and re-install GLUT properly. ---------------------------- Steve Baker ------------------------- HomeEmail: <sjb...@ai...> WorkEmail: <sj...@li...> HomePage : http://www.sjbaker.org Projects : http://plib.sf.net http://tuxaqfh.sf.net http://tuxkart.sf.net http://prettypoly.sf.net -----BEGIN GEEK CODE BLOCK----- GCS d-- s:+ a+ C++++$ UL+++$ P--- L++++$ E--- W+++ N o+ K? w--- !O M- V-- PS++ PE- Y-- PGP-- t+ 5 X R+++ tv b++ DI++ D G+ e++ h--(-) r+++ y++++ -----END GEEK CODE BLOCK----- |