From: Filipe B. <bo...@im...> - 2000-04-13 16:51:47
|
Hi, 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 So ld doesn't find the libGL file. I suspect it's because it looks for an archive file (presumably libGL.a) which doesn't exist. Reading the README files from the Mesa WWW page, I tried (as root) to run "ldconfig -v" but that didn't solve it. I restarted Linux with no more success. Can anyone tell me how I can compile my programs? Do I have to create the archive with ar? Is there some compile-lne option I forgot? Thanks, Fil +-----------------------------------------------------------------------+ | Fil Bonjour | Home address: | | UNICAMP, IMECC, DMA - Room 328 | Rua Alberto de Salvo 53 | | 13081-970 Campinas SP Brazil | 13084-290 Campinas SP Brazil | | Phone: (++55.19) 788.60.44 | Phone: (+55.19) 289.77.84 | | Fax: (++55.19) 289.14.66 | | | Email: bo...@im... | Email: fbo...@uo... | | http://ime.unicamp.br/~bonjour | http://sites.uol.com.br/fbonjour | +-----------------------------------------------------------------------+ |