From: Sven M. H. <pe...@gm...> - 2001-05-24 06:32:57
|
On Wed, May 23, 2001 at 10:51:22AM -0600, Brian Paul wrote: > "Sven M. Hallberg" wrote: > > > Those undefined functions are part of the SGIX_video_resize extension. > > > They're referenced in src-glut/glut_vidresize.c. Mesa has stubs for > > > these functions so I don't know why you're getting 'undefined reference'. > > > > Strange, this works fine for me, too. However, in my compilation command, the > > order of the libraries is different, namely libGL.so comes before any others. > > Maybe that's the cause. > > I wonder if Dieter has another older libGL somewhere on his system > that doesn't have the video_resize functions. If that libGL is > getting picked up instead of the local version that could explain > things. Could be... > > > 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?? -Sven -- "Would the All-Seeing Eye please look in my direction?" [ KeyID........: 0xC297FEAB ] [ Fingerprint..: FEA5 0F93 7320 3F39 66A5 AED3 073F 2D5F C297 FEAB ] |