Re: [Plib-users] ./configure opengl problem
Brought to you by:
sjbaker
From: Sebastian U. <ud...@ha...> - 2002-11-07 12:35:08
|
On Thu, 7 Nov 2002, nic...@ds... (McEvoy, Nick) wrote: > Date: Thu, 7 Nov 2002 10:39:50 +1030 > To: "'pli...@li...'" > <pli...@li...> > From: nic...@ds... (McEvoy, Nick) > Reply-To: pli...@li... > Subject: [Plib-users] ./configure opengl problem > > Ok so I decided to make the big switch from Windoze to Linux ! Its been > something I've been wanting to do for ages ... so I decided to go with > RedHat 8.0 ... well just because ... lets not get into a big discussion > about this eh ! :) > > Now that I've made the switch I want to get back into my games > development hobby with plib & ode. > > But I've hit a problem (already) trying to build plib-1.6.0 ! [...] > ----- config.log (lots cut out) ----- > <...snip...> > configure:2596: checking for glNewList in -lGL > configure:2615: gcc -o conftest -g -O2 -I/usr/include -L/usr/lib > -L/usr/X11R6/lib conftest.c -lGL -lSM -lICE -lXi -lXmu -lXext -lX11 > -lm 1>&5 > cc1: warning: changing search order for system directory "/usr/include" > cc1: warning: as it has already been specified as a non-system > directory > /usr/X11R6/lib/libGL.a(glthread.o): In function `_glthread_InitTSD': > glthread.o(.text+0x28): undefined reference to `pthread_key_create' Known bug - the configure script does not link against the pthread library, which is necessary for certain Mesa versions. Didn't I intend to change that prior to the 1.6.0 release ? Hmm ... seems like I did not. Anyhow - for now, search for the following line in configure.in: AC_CHECK_LIB(GL, glNewList) .. and add this line prior to it: AC_CHECK_LIB(pthread, pthread_create) Then, while in the root of the plib source tree, run /autogen.sh and /configure (which should work flawlessly now). - Sebastian |