[Plib-users] compiling plib on irix 6.2
Brought to you by:
sjbaker
From: Ian v. d. N. <ian...@pr...> - 2000-10-26 23:34:47
|
Hi all, Wanting to write a game for my kids, I wanted to try out plib, however I'm running into problems compiling both plib 1.2.0 and 1.3.1 on my SGI Indy running IRIX 6.2 and gcc/g++ (Yeah, I know it's old, and the game won't really run on it, but I like developping on these boxes :). I don't know if this is a FAQ, since I couldn't find no FAQ :) so sorry if it is a FAQ and I'll be happy with a direction to the FAQ, couldn't find anything similar in the mailing list archives either. version info: grep VERSION /usr/include/GL/gl.h #define GL_VERSION 0x1F02 I'm getting the following errors when trying to build plib 1.2.0 ( I snipped the dirty X libs warnings ;): gmake[2]: Entering directory `/usr/local/src/plib-1.2.0/src/ssg' c++ -DPACKAGE=\"plib\" -DVERSION=\"1.2.0\" -DHAVE_LIBDL=1 -DHAVE_LIBGL=1 -DHAVE_LIBGLU=1 -DHAVE_LIBGLUT=1 -DHAVE_LIBAUDIO=1 -DSTDC_HEADERS=1 -DHAVE_GL_GL_H=1 -DHAVE_GL_GLU_H=1 -DGLUT_IS_PRESENT=1 -I. -I. -I../../src/sg -I../../src/util -g -O2 -O6 -Wall -c ssgVtxArray.cxx In file included from /usr/include/GL/glx.h:21, from ssgLocal.h:13, from ssgVtxArray.cxx:2: <dirty X lib warnings snipped> ssgVtxArray.cxx: In method `void ssgVtxArray::drawHighlight(float *)': ssgVtxArray.cxx:75: `GL_CLIENT_VERTEX_ARRAY_BIT' undeclared (first use this function) ssgVtxArray.cxx:75: (Each undeclared identifier is reported only once ssgVtxArray.cxx:75: for each function it appears in.) ssgVtxArray.cxx:75: warning: implicit declaration of function `int glPushClientAttrib(...)' ssgVtxArray.cxx:77: `GL_COLOR_ARRAY' undeclared (first use this function) ssgVtxArray.cxx:77: warning: implicit declaration of function `int glDisableClientState(...)' ssgVtxArray.cxx:78: `GL_NORMAL_ARRAY' undeclared (first use this function) ssgVtxArray.cxx:79: `GL_TEXTURE_COORD_ARRAY' undeclared (first use this function) ssgVtxArray.cxx:80: `GL_VERTEX_ARRAY' undeclared (first use this function) ssgVtxArray.cxx:80: warning: implicit declaration of function `int glEnableClientState(...)' ssgVtxArray.cxx:82: warning: implicit declaration of function `int glVertexPointer(...)' ssgVtxArray.cxx:89: warning: implicit declaration of function `int glDrawElements(...)' ssgVtxArray.cxx:91: warning: implicit declaration of function `int glPopClientAttrib(...)' ssgVtxArray.cxx: In method `void ssgVtxArray::drawHighlight(float *, int)': ssgVtxArray.cxx:118: confused by earlier errors, bailing out gmake[2]: *** [ssgVtxArray.o] Error 1 gmake[2]: Leaving directory `/usr/local/src/plib-1.2.0/src/ssg' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/usr/local/src/plib-1.2.0/src' gmake: *** [all-recursive] Error 1 When trying to build plib 1.3.1: Making all in sl gmake[2]: Entering directory `/usr/local/src/plib-1.3.1/src/sl' c++ -DPACKAGE=\"plib\" -DVERSION=\"1.3.1\" -DHAVE_LIBDL=1 -DHAVE_LIBGL=1 -DHAVE_LIBGLU=1 -DHAVE_LIBGLUT=1 -DHAVE_LIBAUDIO=1 -DSTDC_HEADERS=1 -DHAVE_GL_GL_H=1 -DHAVE_GL_GLU_H=1 -DGLUT_IS_PRESENT=1 -I. -I. -I/usr/local/include -g -O2 -O6 -Wall -c slDSP.cxx slDSP.cxx: In method `void slDSP::open(char *, int, int, int)': slDSP.cxx:621: warning: implicit declaration of function `int alNewConfig(...)' slDSP.cxx:621: warning: assignment to `_ALconfig *' from `int' lacks a cast slDSP.cxx:623: warning: implicit declaration of function `int alSetChannels(...)' slDSP.cxx:624: warning: implicit declaration of function `int alSetWidth(...)' slDSP.cxx:625: warning: implicit declaration of function `int alSetQueueSize(...)' slDSP.cxx:627: warning: implicit declaration of function `int alOpenPort(...)' slDSP.cxx:627: warning: assignment to `_ALport *' from `int' lacks a cast slDSP.cxx:628: warning: implicit declaration of function `int alFreeConfig(...)' slDSP.cxx:637: `ALpv' undeclared (first use this function) slDSP.cxx:637: (Each undeclared identifier is reported only once slDSP.cxx:637: for each function it appears in.) slDSP.cxx:637: parse error before `[' slDSP.cxx:639: `params' undeclared (first use this function) slDSP.cxx:640: confused by earlier errors, bailing out gmake[2]: *** [slDSP.o] Error 1 gmake[2]: Leaving directory `/usr/local/src/plib-1.3.1/src/sl' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/usr/local/src/plib-1.3.1/src' gmake: *** [all-recursive] Error 1 I have installed the latest libraries (CD image) that can be downloaded from the SGI site. From swmgr, I can see that all GL development files have been installed. I'd appreciate any help, thanks, Ian. -- There's never enough time | To know is to know that to do all the nothing you | you know nothing. That is want. | the meaning of true knowledge. -- Calvin | -- Confucius |