Re: [Plib-users] plib compile error
Brought to you by:
sjbaker
|
From: Steve B. <sjb...@ai...> - 2000-08-07 06:03:47
|
Donald Harter wrote:
>
> I get the following errors when I try to compile plib. I am using redhat 6.1.
> I had another error that I fixed by just defining HAVE_GLUT....
Well, it sounds like that original error is the source of your problems.
You *probably* don't have GLUT installed (or not installed properly).
You should have:
/usr/include/GL/glut.h
/usr/lib/libglut.so
> c++ -DPACKAGE=\"plib\" -DVERSION=\"1.2.0\" -DHAVE_LIBDL=1 -DHAVE_LIBGL=1 -DSTDC_HEADERS=1 -DHAVE_GL_GL_H=1 -DLINUX_JOYSTICK_IS_PRESENT=1 -I. -I. -I../../src/sg -I../../src/fnt -g -O2 -O6 -Wall -c pu.cxx
> pu.cxx: In function `void puInit()':
> pu.cxx:121: warning: implicit declaration of function `int glXGetCurrentContext(...)'
> pu.cxx:121: ANSI C++ forbids comparison between pointer and integer
glXGetCurrentContext is defined in /usr/include/GL/glx.h - which I don't include
explicitly because GLUT handles that in /usr/include/GL/glut.h.
So - check that GLUT is installed - if you had to force the HAVE_GLUT variable then
the configure script didn't auto-detect GLUT - which fits with this theory.
--
Steve Baker HomeEmail: <sjb...@ai...>
WorkEmail: <sj...@li...>
HomePage : http://web2.airmail.net/sjbaker1
Projects : http://plib.sourceforge.net
http://tuxaqfh.sourceforge.net
http://tuxkart.sourceforge.net
http://prettypoly.sourceforge.net
|