More Linux Compilation problems :(

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Zaelsius
Posts: 38
Joined: Sat Aug 23, 2003 12:02 pm
Location: Alicante, Spain
Contact:

More Linux Compilation problems :(

Post by Zaelsius »

Well, I'm using RedHat Linux 9. Firstly, I had problems to build the engine lib. Then I managed to compile it by installing the Mesa-3d development files. Now I get this error when compiling the HelloWorld example:

g++ main.cpp -o example -I"../../include" -I"/usr/X11R6/include" -L"/usr/X11R6/lib" -L"../../lib/Linux" -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -lz -ljpeg
/usr/X11R6/lib/libGL.a(glxext.o)(.text+0x1f): In function `__glXGetCurrentContext':
: undefined reference to `pthread_key_create'
/usr/X11R6/lib/libGL.a(glxext.o)(.text+0x3e): In function `__glXGetCurrentContext':
: undefined reference to `pthread_getspecific'
/usr/X11R6/lib/libGL.a(glxext.o)(.text+0x6f): In function `__glXSetCurrentContext':
: undefined reference to `pthread_setspecific'
/usr/X11R6/lib/libGL.a(glxext.o)(.text+0x87): In function `__glXSetCurrentContext':
: undefined reference to `pthread_key_create'
/usr/X11R6/lib/libGL.a(glthread.o)(.text+0x28): In function `_glthread_InitTSD':
: undefined reference to `pthread_key_create'
/usr/X11R6/lib/libGL.a(glthread.o)(.text+0x83): In function `_glthread_GetTSD':
: undefined reference to `pthread_getspecific'
/usr/X11R6/lib/libGL.a(glthread.o)(.text+0xc5): In function `_glthread_SetTSD':
: undefined reference to `pthread_setspecific'

Any idea? I don't know if I'm linking to the correct GL library.. maybe there is some conflict between the NVIDIA drivers and the Mesa libs??
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post by niko »

Hm, I don't know a solution to this problem yet. To compile, you need a Xserver with GLX and the XF86VidMode extensions. Version 4.0.1 should work. Maybe you don't have installed one of these?
Zaelsius
Posts: 38
Joined: Sat Aug 23, 2003 12:02 pm
Location: Alicante, Spain
Contact:

Post by Zaelsius »

I'll give it another try one of these days :cry: , I'll keep using windows, at least , for a long time... :P
Post Reply