On Sat, 2002-12-07 at 19:14, Ronald J. Hall wrote: > A friend of ours at our LUG wanted to play this chess program called > Knightcap but he had troubles with it, so Carl L. and I offered to try it out. > He's using Libranet and I'm running v8.2 and 9.0 of Mandrake. Both of use > could do a straight/default compile with no X graphics. Whenever I try to > compile for graphics I get errors about it not being able to find Mesa and > GLUT. I installed everything I could find Mesa/GLUT wise from my 8.2 and 9.0 > CD's and still it won't compile. > > Here is the section from the Makefile: > > # comment out the following 7 lines if you don't want the rendered > # display (or you don't have OpenGL and Glut libraries) > # If you do have these libs then make sure the first three > # lines point at the right places > MESA = /usr/local/Mesa-2.1 > GLUT = /usr/local/Mesa-2.1/glut-3.2 > X11 = /usr/X11R6 > GLUT_LIBS = -L$(GLUT)/lib/glut -lglut > MESA_LIBS = -L$(MESA)/lib -lMesaGLU -lMesaGL -lm > XLIBS = -L$(X11)/lib -lXmu -lXt -lXext -lX11 -lXi > DISPLAYFLAGS = -I$(MESA)/include -I$(GLUT) -DRENDERED_DISPLAY=1 > > Okay, when I try to compile I get this: > > gcc -o KnightCap knightcap.o trackball.o move.o util.o generate.o eval.o > movement.o ordering.o hash.o board.o log.o prog.o timer.o ics.o display.o > testsuite.o brain.o td.o tactics.o -L/usr/local/Mesa-2.1/glut-3.2/lib/glut > -lglut -L/usr/local/Mesa-2.1/lib -lMesaGLU -lMesaGL -lm -L/usr/X11R6/lib > -lXmu -lXt -lXext -lX11 -lXi > /usr/bin/ld: cannot find -lMesaGLU > collect2: ld returned 1 exit status > make: *** [KnightCap] Error 1 > > Obviously, it can't find the files its looking for. The question is, is it > just because I've not been able to set the Makefile to point to the right > place OR do I not even have the necessary files installed at all. > > I did "whereis" and "locate" for every variation of Mesa, GLUT, libmesa, > libglut, etc, etc, that I could think of. It looks like Mandrake sticks this > stuff in /usr/X11R6/lib. I tried pointing the Makefile there but got the same > results. > > Anyone have any experience with this and/or suggestions? > > Thanks in advance! :-) > Here goes again! Dig this - edit your /etc/ld.so.conf and add the following:
/usr/lib /usr/local/lib ...save the file, then run: ldconfig ...reboot, then try to recompile WITH FRESH SOURCE code - just delete the directory you unpacked the source into and recreate it - saves heaps of bullshit... Now, if that doesn't work right off the bat, try adding the absolute path to the /etc/ld.so.conf file and rerun ldconfig again... Let's see how that goes... -- Sat Dec 7 19:45:00 EST 2002 7:45pm up 7:01, 5 users, load average: 0.00, 0.11, 0.16 .o0 linux user:267497 0o. -------------------------------- | __ __ | kühn media australia | / \ /| |'-. | http://kma.0catch.com | .\__/ || | | | | _ / `._ \|_|_.-' | stephen kühn | | / \__.`=._) (_ | email: [EMAIL PROTECTED] | |/ ._/ |"""""""""| | email: [EMAIL PROTECTED] | |'. `\ | | | icq: 5483808 | ;"""/ / | | | | smk ) /_/| |.-------.| | mobile: 0410-728-389 | ' `-`' " " | Berkeley, New South Wales, AU -------------------------------- Coralament*Best Grötens*Liebe Grüße*Best Regards*Elkorajn Salutojn "It's a god-eat-god world." (Small Gods)
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com