From: Brian P. <br...@va...> - 2001-06-06 18:53:51
|
Picking up this thread again from two weeks ago... > > > > Personally, compilation is failing for me on demos/osdemo because > > > > it's not getting linked with libOSMesa.so: > > > > > > > > gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../util -I./src/X86 -g -O2 -Wall > > > > -fomit-frame-pointer -ffast-math -fexpensive-optimizations -fstrict-aliasing > > > > -malign-loops=2 -malign-jumps=2 -malign-functions=2 -D_REENTRANT -DPTHREADS -c osdemo.c > > > > osdemo.c:179: warning: `write_ppm' defined but not used > > > > /bin/sh ../libtool --mode=link gcc -g -O2 -Wall -fomit-frame-pointer -ffast-math > > > > -fexpensive-optimizations -fstrict-aliasing -malign-loops=2 -malign-jumps=2 > > > > -malign-functions=2 -D_REENTRANT -DPTHREADS -o osdemo osdemo.o ../si-glu/libGLU.la > > > > -lglut ../src/libGL.la -lm > > > > gcc -g -O2 -Wall -fomit-frame-pointer -ffast-math -fexpensive-optimizations > > > > -fstrict-aliasing -malign-loops=2 -malign-jumps=2 -malign-functions=2 -D_REENTRANT > > > > -DPTHREADS -o .libs/osdemo osdemo.o ../si-glu/.libs/libGLU.so -L../src -lGL -lglut > > > > ../src/.libs/libGL.so -L/usr/X11R6/lib -lSM -lICE -lXmu -lXext -lXi -lX11 -lpthread -lm > > > > -Wl,--rpath -Wl,/tmp/Mesa/lib > > > > osdemo.o: In function `main': > > > > /home/brian/5/demos/osdemo.c:231: undefined reference to `OSMesaCreateContextExt' > > > > /home/brian/5/demos/osdemo.c:248: undefined reference to `OSMesaMakeCurrent' > > > > /home/brian/5/demos/osdemo.c:277: undefined reference to `OSMesaDestroyContext' > > > > collect2: ld returned 1 exit status > > > > > > Hm.. src/OSMesa/Makefile.am builds a convenience library, not a shared one. > > > Should this be different? > > > > What's a convenience library? > > > > There should be a libOSMesa.so library. Using the Makefile.X11 > > process, I'm making a libOSMesa.so.3.5.030500 > > > > The reason for this new, separate library has to do with XFree86. > > The XFree86 libGL knows nothing about the OSMesa interface. Instead, > > the OSMesa interface (and renderer) are a separate library. I want > > to do the same thing with stand-alone Mesa for consistancy. > > OIC, a "libtool convenience library" is a static library which is not to be > installed but only used within a package. > > The Makefile.am's don't reflect what you say, yet. I'll change it anytime. > Just tell me, what version-info do I use, now?? As I said, there should be a libOSMesa.so.3.5.030500 or libOSMesa.so.3.5 library. The SONAME should probably be "libOSMesa.so.3". Can you do this? -Brian |