From: Brian P. <bri...@tu...> - 2007-05-29 14:00:30
|
Dieter Nützel wrote: > Am Montag, 28. Mai 2007 schrieb Brian Paul: >> Dieter Nützel wrote: >>> progs/xdemos> time nice +19 make >>> gcc -I../../include -Wall -Wmissing-prototypes -std=c99 -ffast-math -O >>> -march=athlon-mp -fomit-frame-pointer -m3dnow -msse -mmmx >>> -mfpmath=sse,387 -m32 -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L >>> -D_SVID_SOURCE -D_BSD_SOURCE -D_GNU_SOURCE -DPTHREADS >>> -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING >>> -DGLX_INDIRECT_RENDERING -DHAVE_ALIAS -DHAVE_POSIX_MEMALIGN -DUSE_X86_ASM >>> -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM texture_from_pixmap.c >>> -L../../lib -lglut -lGLU -lGL -lm -o >>> texture_from_pixmap >>> /tmp/cc089W35.o: In function `main': >>> texture_from_pixmap.c:(.text+0x811): undefined reference to >>> `glXBindTexImageEXT' >>> collect2: ld returned 1 exit status >>> make: *** [texture_from_pixmap] Fehler 1 >>> >>> My glx.h has it. >>> Latest glxproto.h CVS not. >> As long as you've got the latest Mesa sources, > > I have. Latest Mesa git 7.1, DRM git (installed). > > OpenGL vendor string: DRI R300 Project > OpenGL renderer string: Mesa DRI R300 20060815 AGP 4x x86/MMX+/3DNow!+/SSE TCL > OpenGL version string: 1.3 Mesa 7.1 > >> and everything compiled >> OK, > > It does and works, so far. > >> this shouldn't be happening. > > But...;-) > >> You could run 'nm' on libGL.so and see that glXBindTexImageEXT is defined. > > progs/xdemos> time nice +19 make -j10 > gcc -I../../include -Wall -Wmissing-prototypes -std=c99 -ffast-math -O -march=athlon-mp -fomit-frame-pointer -m3dnow -msse -mmmx -mfpmath=sse,387 -m32 -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -D_GNU_SOURCE -DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING -DHAVE_ALIAS -DHAVE_POSIX_MEMALIGN -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM > texture_from_pixmap.c -L../../lib -lglut -lGLU -lGL -lm -o > texture_from_pixmap > /tmp/ccA6P9wF.o: In function `main': > texture_from_pixmap.c:(.text+0x811): undefined reference to > `glXBindTexImageEXT' > collect2: ld returned 1 exit status > make: *** [texture_from_pixmap] Fehler 1 > 0.376u 0.048s 0:00.43 95.3% 0+0k 0+0io 0pf+0w > > progs/xdemos> nm /opt/mesa/lib/libGL.so.1.2 | grep glXBindTexImageEXT > 0001b0a4 t __glXBindTexImageEXT > > progs/xdemos> nm /usr/lib/libGL.so.1.2 | grep glXBindTexImageEXT > 0001b0a4 t __glXBindTexImageEXT I only added GLX_EXT_texture_from_pixmap to the xlib driver, as someone requested. I didn't do anything on the DRI side. I'll update the test program to check for the extension like it should. > But what is this? > If I set 'setenv LIBGL_ALWAYS_INDIRECT' (tcsh) I get: > > OpenGL vendor string: Tungsten Graphics, Inc. > OpenGL renderer string: Mesa DRI R300 20060815 AGP 4x x86/MMX+/3DNow!+/SSE TCL > OpenGL version string: 1.3 Mesa 6.5.1 > > Shouldn't it OpenGL 2.1 like ~mesa/docs/relnotes-7.1.html stated? The OpenGL version depends on the driver. Core Mesa and the Xlib driver support 2.1, but the DRI drivers don't yet. -Brina |