From: Stephen J B. <sj...@ht...> - 2000-04-13 17:48:58
|
On Thu, 13 Apr 2000, Filipe Bonjour wrote: > I have just installed Mesa 3.1-2 on my Linux Redhat 6.1 and I can't > compile any of my old OpenGL programs. (I used OpenGL on Sun computers, > and I have never used Mesa under Linux.) The problen is in the linking > stage, actually. I installed the RPM file, didn't compile the library > myself, so maybe I didn't do something crucial. > > The directory /usr/X11R6/lib contains, apart the non-GL stuff, the > libraries/files > > libGL.la libGL.so.1 libGL.so.1.0 libGL.so.1.2.0 > libGLU.la libGLU.so.1 libGLU.so.1.2.0 libGLU.so.3 > libGLU.so.3.1.2 libglut.la libglut.so.3 libglut.so.3.7 > libglut.so.3.7.0 > > Although I include -L/usr/X11R6/lib in my compile-line I get the > message: > > /usr/bin/ld: cannot open -lGL: No such file or directory > collect2: ld returned 1 exit status > make: *** [visu_3D] Error 1 It's unfortunate that Mesa sometimes gets dumped into /usr/X11R6/lib, instead of /usr/lib where is belongs. The simplest, most pragmatic solution is: ln -s /usr/X11R6/lib/libGL.so.1 /usr/lib/libGL.so ln -s /usr/X11R6/lib/libGLU.so.1 /usr/lib/libGLU.so ln -s /usr/X11R6/lib/libglut.so.3 /usr/lib/libglut.so ...which is where Mesa is *supposed* to install. 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 |