Thread: [Plib-users] first try failed
Brought to you by:
sjbaker
From: Anne-Marie M. <a-m...@li...> - 2000-05-24 20:55:52
|
I have Mandrake 7.0, Mesa and glut-3.5 and I can't compile plib-1.1.11. I get the error message: in file included from puLocal.h:24 from pu.cxx:2: pu.h: In method 'puFont::puFont()': pu.h:87:'GLUT_BIPMAP_8_BY_13' undeclared (first use this function) and so on with 'GLUT_WINDOW_HEIGHT', 'GLUT_WINDOW_WIDTH'........ I am a beginner so I am really lost. My son would like to try Tux, a = Quest.... What is wrong? Mesa3.0 is rpm and glut compiled fine. Thank you for your help! Anne-Marie a-m...@li... |
From: Steve B. <sjb...@ai...> - 2000-05-25 02:03:50
|
> Anne-Marie Mahfouf wrote: > > I have Mandrake 7.0, Mesa and glut-3.5 and I can't compile plib-1.1.11. GLUT 3.5 is *VERY* old. I think you need version 3.7 or later - you should be able to find that either on http://www.opengl.org or at http://www.mesa3d.org > I get the error message: > > in file included from puLocal.h:24 > from pu.cxx:2: > pu.h: In method 'puFont::puFont()': > pu.h:87:'GLUT_BIPMAP_8_BY_13' undeclared (first use this function) > > and so on with 'GLUT_WINDOW_HEIGHT', 'GLUT_WINDOW_WIDTH'........ Well, all those symbols would be defined in /usr/include/GL/glut.h Try this: grep GLUT_BITMAP_8_BY_13 /usr/include/GL/glut.h ...what does it say? > I am a beginner so I am really lost. My son would like to try Tux, a Quest.... What is wrong? > Mesa3.0 is rpm and glut compiled fine. I don't know - but I'm sure we can find out! What graphics card do you have? Mesa 3.0 is quite old too - we are up to 3.2 or so now...for some graphics card, 3.0 will be OK - but for others, you wouldn't get enough performance to run Tux. -- Steve Baker http://web2.airmail.net/sjbaker1 sjb...@ai... (home) http://www.woodsoup.org/~sbaker sj...@ht... (work) |
From: Anne-Marie M. <a-m...@li...> - 2000-05-25 09:22:58
|
> grep GLUT_BITMAP_8_BY_13 /usr/include/GL/glut.h > > ...what does it say? nothing. It can't find GLUT_BITMAP_8_BY_13 in glut.h I got glut-3.7.tar.gz, I did everything according to the README file, I got no error message but in /glut-home/lib/glut I don't have the libglut.so.3.7 file in taht directory but in. /usr/X11R6/lib. What can I do? Thank you very much Anne-Marie a-m...@li... |
From: Steve B. <sjb...@ai...> - 2000-05-26 03:31:46
|
Anne-Marie Mahfouf wrote: > > > grep GLUT_BITMAP_8_BY_13 /usr/include/GL/glut.h > > > > ...what does it say? > nothing. It can't find GLUT_BITMAP_8_BY_13 in glut.h So, it was certainly a GLUT version problem. > I got glut-3.7.tar.gz, I did everything according to the README file, I got > no error message but in > /glut-home/lib/glut I don't have the libglut.so.3.7 file in taht directory > but in. > /usr/X11R6/lib. > What can I do? So, you have glut 3.7 installed in /usr/X11R6/lib/libglut.so and the new header file in /usr/include/GL/glut.h ? Then all you need to do is this: (You need to be 'root') cd /usr/lib rm libglut* ln -s /usr/X11R6/lib/libglut.so libglut.so Remake PLIB, (don't forget to 'make install')...ditto for Tux_AQFH and you are ready to roll. ...tadaaaa! -- Steve Baker http://web2.airmail.net/sjbaker1 sjb...@ai... (home) http://www.woodsoup.org/~sbaker sj...@ht... (work) |
From: Anne-Marie M. <a-m...@li...> - 2000-05-26 08:27:52
|
Now that the libraries are linked, PLIB compiled fine but not Tux_AQFH!!!!! This is the error I get (end of the text) : ........ /usr/local/games/plib-1.1.11/src/pui/pu.h:93: undefined reference to `glutBitmapHelvetica18' /usr/lib/libplibpu.a(puFont.o): In function `puFont::getStringWidth(char *)': /usr/local/games/plib-1.1.11/src/pui/puFont.cxx:29: undefined reference to `glutBitmapWidth' collect2: ld returned 1 exit status make[1]: *** [tux_aqfh] Error 1 make[1]: Leaving directory `/usr/local/games/tux_aqfh-1.0.10/src' make: *** [all-recursive] Error 1 [ann@localhost tux_aqfh-1.0.10]$ Thank you very much for your help!! Anne-Marie a-m...@li... |
From: Steve B. <sjb...@ai...> - 2000-05-26 12:27:41
|
Anne-Marie Mahfouf wrote: > > Now that the libraries are linked, PLIB compiled fine but not Tux_AQFH!!!!! > This is the error I get (end of the text) : Well, this *still* looks like a GLUT installation problem. > `glutBitmapHelvetica18' > `glutBitmapWidth' ...both undefined?!? Those are both GLUT tokens that should be in GLUT 3.7. What I now don't understand is how PLIB is finding this stuff but Tux_AQFH isn't. So, if I do this: grep glutBitmap /usr/include/GL/glut.h I get a dozen lines of text containing this: GLUTAPI void *glutBitmapHelvetica18; ...and this... GLUTAPI int GLUTAPIENTRY glutBitmapWidth(void *font, int character); Do you see those lines? If not then you still don't have the 'glut.h' file from GLUT 3.7 installed in /usr/include/GL/glut.h where it belongs. But if that's the case, I don't understand how PLIB built without errors. -- Steve Baker http://web2.airmail.net/sjbaker1 sjb...@ai... (home) http://www.woodsoup.org/~sbaker sj...@ht... (work) |