From: Stephen J B. <sj...@ht...> - 2000-05-04 13:42:43
|
On Wed, 3 May 2000, Brian Paul wrote: > Bjorn Leffler wrote: > > Can anyone explain to me how to install the GLU library. > > I just installed the nvidia drivers for Xfree 4.0 (libGL.so) > > > > The libGL.so driver works great. Yep - it certainly does. V.impressive. > > My problem is that I can't use the GLU library anymore. > > > > I think it's a linking problem : > > > > OpenGL programs compile without errors, (using "-lGL -lGLU -lglut") > > but I get a "Segmentation Fault" at execution Well, it would be more usual to link them in the order: -lglut -lGLU -lGL -L/usr/X11R6/lib -lX11 -lXi -lXext -lXmu ...since glut uses both GLU and GL functions, GLU uses only GL functions, and GL doesn't use either of the others. But I'd have thought that if it got through the linker OK, you'd be alright. The linking process is getting so damned complicated these days that I'd believe anything - so try relinking your program with the libraries in that order. > Can you pinpoint it with a debugger? Or just run 'gdb' on the core file and type 'where' to get a stack backtrace. > > Can anyone tell me how to recompile GLU to match the provided libGL.so > > file > > That shouldn't be necessary. It certainly wasn't necessary for me. I installed the nVidia drivers over the top of Mesa - and Mesa's GLU "just worked". I didn't recompile it or anything...and I've not had any crashes at all. Having said that, I'm not a *heavy* user of GLU - so I may well not be exercising the part that's giving you problems. If you are desperate, you could try the GLU that comes with the SGI reference implementation of OpenGL - but I don't think that should be necessary - and it would be nice to track this one down first. Steve Baker (817)619-2657 (Vox/Vox-Mail) L3Com/Link Simulation & Training (817)619-2466 (Fax) Work: sj...@ht... http://www.hti.com Home: sjb...@ai... http://web2.airmail.net/sjbaker1 |