Re: [Plib-devel] SUNWspro patch, questions
Brought to you by:
sjbaker
From: Steve B. <sjb...@ai...> - 2000-06-28 04:00:02
|
Loring Holden wrote: > Other issues - the README in cvs is out of date (points to the wrong URL), > and the documentation is out of date with the cvs source. Done. > Would it be > possible to put the examples and docs in cvs so it would be easier to get the > most recent versions (and give all the other benefits of cvs)? That's on my 'ToDo' list. > This patch allows PLIB to be built under Solaris w/ the SUNWspro C++ compiler > on a system without glut in the default place (ie, adds --with-glut and > --with-glut-includes). Er - OK - I've merged this stuff in. Wouldn't it just be easier to put GLUT in the right place? > Also - not sure if it is my version of automake or not (1.4), but automake > creates PLIB Makefile's that assume you are using gcc (uses -Md to create > dependencies). I didn't know of any easy way to fix this - it gives a > warning message when compiling with SUNWspro 4.2, but builds fine. I have no idea - autoconf/automake is a Black Art as far as I'm concerned. Touching configure.in is *scarey*! Anyway, I've added the new stuff - with fingers crossed :-) <time passes> <*lots* of time passes> Well, waddayaknow? It screws up under Linux. It seems that with this line in configure.in: CPPFLAGS="$CPPFLAGS -I$x_includes" ...causes PLIB modules to compile with: -I/usr/X11R6/include ...which causes the *wierdest* symptoms.... c++ -g -O2 -O6 -Wall -o tuxkart start_tuxkart.o tuxkart.o gfx.o material.o gui.o status.o sound.o utils.o isect.o guNet.o loader.o guClock.o Track.o Driver.o Herring.o Explosion.o KartDriver.o Traffic.o PlayerDriver.o AutoDriver.o Projectile.o -lplibsl -lplibssg -lplibpu -lplibfnt -lplibsg -lglut -lGLU -lGL -L/usr/X11R6/lib -lSM -lICE -lpthread -lX11 -lXi -lXext -lXmu -lm Herring.o: In function `HerringInstance type_info function': /u/tuxkart/src/Herring.cxx(.text+0x941): undefined reference to `ssgVtxTable::ssgVtxTable(GLenum, ssgVertexArray *, ssgNormalArray *, ssgTexCoordArray *, ssgColourArray *)' Herring.o: In function `Shadow::Shadow(float, float, float, float)': /u/tuxkart/src/Herring.cxx:84: undefined reference to `ssgVtxTable::ssgVtxTable(GLenum, ssgVertexArray *, ssgNormalArray *, ssgTexCoordArray *, ssgColourArray *)' ...I can't understand why that should possibly be. Compiled without /usr/X11R6/include, everything works OK?!??! However, PLIB doesn't *need* any files from /usr/X11R6/include - so for now I'm committing your change but with the offending line commented out - until we can figure WTF is going on. -- 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 |