Re: [Plib-users] Can't find Glut
Brought to you by:
sjbaker
From: Sid O. <si...@bi...> - 2003-08-20 02:51:45
|
Thanks for your assistance. I actually found 2 problems. One glut was being installed into /usr/local/lib so I linked it to /usr/lib and the second was a problem with the lib itself. I had originally recompiled the lib from the rh9 source disk which was about 290 kb. I then downloaded the source from mesa and compiled and installed. That lib was over 2 mb. I don't know what extras there were but it made the difference. Thanks again Sid Owen On Tue, 2003-08-19 at 11:24, Steve Baker wrote: > 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----- > > > > ------------------------------------------------------- > This SF.Net email sponsored by: Free pre-built ASP.NET sites including > Data Reports, E-commerce, Portals, and Forums are available now. > Download today and enter to win an XBOX or Visual Studio .NET. > http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 > _______________________________________________ > plib-users mailing list > pli...@li... > https://lists.sourceforge.net/lists/listinfo/plib-users |