11-18-2001, 05:05 AM
I canīt can compile a simple program.
I use linux Mandrake 8.1, updated my Mesa Libs
...libMesaglut3-4.0-2mdk
libMesaglut3-devel-4.0-2mdk
Mesa-4.0-2mdk
libMesaGLU1-devel-4.0-2mdk
libMesaGL1-4.0-2mdk
libMesaGLU1-4.0-2mdk...
and tried to compile a simple program with:
gcc ZickZack.cpp -lglut -lGL -lGLU -lm -o ZickZack
If i compile it with the directory:
gcc ZickZack.cpp -lglut -lGL -lGLU -L/usr/X11R6/lib -lm -o ZickZack
it fails with:
....
..
.
glxext.o(.text+0x155a): undefined reference to `pthread_key_create'
glxext.o(.text+0x1577): undefined reference to `pthread_setspecific'
/usr/X11R6/lib/libGL.a(glxext.o): In function `__glXSetupForCommand':
glxext.o(.text+0x15b1): undefined reference to `pthread_key_create'
glxext.o(.text+0x15d1): undefined reference to `pthread_getspecific'
/usr/X11R6/lib/libGL.a(glxext.o): In function `__glXCloseDisplay':
glxext.o(.text+0x1651): undefined reference to `pthread_key_create'
glxext.o(.text+0x1671): undefined reference to `pthread_getspecific'
glxext.o(.text+0x169a): undefined reference to `pthread_key_create'
glxext.o(.text+0x16b7): undefined reference to `pthread_setspecific'
/usr/X11R6/lib/libGL.a(glthread.o): In function `_glthread_InitTSD':
glthread.o(.text+0x1e): undefined reference to `pthread_key_create'
/usr/X11R6/lib/libGL.a(glthread.o): In function `_glthread_GetTSD':
glthread.o(.text+0x6a): undefined reference to `pthread_key_create'
glthread.o(.text+0x9e): undefined reference to `pthread_getspecific'
/usr/X11R6/lib/libGL.a(glthread.o): In function `_glthread_SetTSD':
glthread.o(.text+0xca): undefined reference to `pthread_key_create'
glthread.o(.text+0x102): undefined reference to `pthread_setspecific'
/usr/X11R6/lib/libglut.so: undefined reference to `glXBindChannelToWin dowSGIX'
/usr/X11R6/lib/libglut.so: undefined reference to `glXCreateContextWit hConfigSGIX'
/usr/X11R6/lib/libglut.so: undefined reference to `glXGetFBConfigAttri bSGIX'
/usr/X11R6/lib/libglut.so: undefined reference to `glXQueryChannelDelt asSGIX'
/usr/X11R6/lib/libglut.so: undefined reference to `glXChannelRectSyncS GIX'
/usr/X11R6/lib/libglut.so: undefined reference to `glXChannelRectSGIX'
/usr/X11R6/lib/libglut.so: undefined reference to `glXQueryChannelRect SGIX'
/usr/X11R6/lib/libglut.so: undefined reference to `glXGetFBConfigFromV isualSGIX
What do I wrong. Are there some broken dependencies with the NVIDIA GLX Libs? What works for you? Can someone post some examples , what is working?? I you wand to need the code of the program, just say it. I would post it, but for other people it worked. They usin SuSE but have no NVIDIA TNT2 Cards with Hardware Acceleration enabled.
Thanks! Thanks!!
I use linux Mandrake 8.1, updated my Mesa Libs
...libMesaglut3-4.0-2mdk
libMesaglut3-devel-4.0-2mdk
Mesa-4.0-2mdk
libMesaGLU1-devel-4.0-2mdk
libMesaGL1-4.0-2mdk
libMesaGLU1-4.0-2mdk...
and tried to compile a simple program with:
gcc ZickZack.cpp -lglut -lGL -lGLU -lm -o ZickZack
If i compile it with the directory:
gcc ZickZack.cpp -lglut -lGL -lGLU -L/usr/X11R6/lib -lm -o ZickZack
it fails with:
....
..
.
glxext.o(.text+0x155a): undefined reference to `pthread_key_create'
glxext.o(.text+0x1577): undefined reference to `pthread_setspecific'
/usr/X11R6/lib/libGL.a(glxext.o): In function `__glXSetupForCommand':
glxext.o(.text+0x15b1): undefined reference to `pthread_key_create'
glxext.o(.text+0x15d1): undefined reference to `pthread_getspecific'
/usr/X11R6/lib/libGL.a(glxext.o): In function `__glXCloseDisplay':
glxext.o(.text+0x1651): undefined reference to `pthread_key_create'
glxext.o(.text+0x1671): undefined reference to `pthread_getspecific'
glxext.o(.text+0x169a): undefined reference to `pthread_key_create'
glxext.o(.text+0x16b7): undefined reference to `pthread_setspecific'
/usr/X11R6/lib/libGL.a(glthread.o): In function `_glthread_InitTSD':
glthread.o(.text+0x1e): undefined reference to `pthread_key_create'
/usr/X11R6/lib/libGL.a(glthread.o): In function `_glthread_GetTSD':
glthread.o(.text+0x6a): undefined reference to `pthread_key_create'
glthread.o(.text+0x9e): undefined reference to `pthread_getspecific'
/usr/X11R6/lib/libGL.a(glthread.o): In function `_glthread_SetTSD':
glthread.o(.text+0xca): undefined reference to `pthread_key_create'
glthread.o(.text+0x102): undefined reference to `pthread_setspecific'
/usr/X11R6/lib/libglut.so: undefined reference to `glXBindChannelToWin dowSGIX'
/usr/X11R6/lib/libglut.so: undefined reference to `glXCreateContextWit hConfigSGIX'
/usr/X11R6/lib/libglut.so: undefined reference to `glXGetFBConfigAttri bSGIX'
/usr/X11R6/lib/libglut.so: undefined reference to `glXQueryChannelDelt asSGIX'
/usr/X11R6/lib/libglut.so: undefined reference to `glXChannelRectSyncS GIX'
/usr/X11R6/lib/libglut.so: undefined reference to `glXChannelRectSGIX'
/usr/X11R6/lib/libglut.so: undefined reference to `glXQueryChannelRect SGIX'
/usr/X11R6/lib/libglut.so: undefined reference to `glXGetFBConfigFromV isualSGIX
What do I wrong. Are there some broken dependencies with the NVIDIA GLX Libs? What works for you? Can someone post some examples , what is working?? I you wand to need the code of the program, just say it. I would post it, but for other people it worked. They usin SuSE but have no NVIDIA TNT2 Cards with Hardware Acceleration enabled.
Thanks! Thanks!!