From: Dieter <Di...@nu...> - 2007-05-29 13:26:01
|
Am Montag, 28. Mai 2007 schrieb Brian Paul: > Dieter N=FCtzel wrote: > > progs/xdemos> time nice +19 make > > gcc -I../../include -Wall -Wmissing-prototypes -std=3Dc99 -ffast-math -O > > -march=3Dathlon-mp -fomit-frame-pointer -m3dnow -msse -mmmx > > -mfpmath=3Dsse,387 -m32 -D_POSIX_SOURCE -D_POSIX_C_SOURCE=3D199309L > > -D_SVID_SOURCE -D_BSD_SOURCE -D_GNU_SOURCE -DPTHREADS > > -DUSE_EXTERNAL_DXTN_LIB=3D1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING > > -DGLX_INDIRECT_RENDERING -DHAVE_ALIAS -DHAVE_POSIX_MEMALIGN -DUSE_X86_A= SM > > -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=20 > OK, It does and works, so far. > this shouldn't be happening.=20 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=3Dc99 -ffast-math -O -m= arch=3Dathlon-mp -fomit-frame-pointer -m3dnow -msse -mmmx -mfpmath=3Dsse,38= 7 -m32 -D_POSIX_SOURCE -D_POSIX_C_SOURCE=3D199309L -D_SVID_SOURCE -D_BSD_S= OURCE -D_GNU_SOURCE -DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=3D1 -DIN_DRI_DRIVER = =2DDGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING -DHAVE_ALIAS -DHAVE_POSIX= _MEMALIGN -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM=20 texture_from_pixmap.c -L../../lib -lglut -lGLU -lGL -lm -o=20 texture_from_pixmap /tmp/ccA6P9wF.o: In function `main': texture_from_pixmap.c:(.text+0x811): undefined reference to=20 `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 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? =2DDieter |