July 19, 200619 yr Has any one successfully compiled atlas, plib or terragear on a suse 10.1 system. If so please tell me how..Not many apps compile with out warnings, and many fail with errors in the c code. but these apps obviously compile on older less fussy distributions.this includes most of the pre reqs for terragear as well as atlas which i will post in the appropriate forums. Anything not on the install media is a major hassle on this distroI get this same error on the 10.1 and another machine (both pent 4) running suse 9.3.Both have plib 1.8.4, from the distro rpm. I cant get it to compile from the src so I guess they have tweeked it to make it work, but is it something wrong in the suse plib?clip-----g++ -g -O2 -DFGBASE_DIR='"NONE/lib/FlightGear"' -L/usr/X11R6/lib -L/usr/local//lib -o MapPS MapPS.o FlightTrack.o MapMaker.o Output.o OutputPS.o Overlays.o Projection.o Scenery.o -lsgmagvar -lsgtiming -lsgmisc -lsgio -lsgdebug -lplibsg -lplibpu -lplibul -lsgbucket -lglut -lGLU -lGL -lXmu -lXt -lSM -lICE -lXi -lXext -lX11 -lpthread -lm -lpng -lz -lplibul -lm/usr/lib/gcc/i586-suse-linux/4.1.0/../../../libplibpu.so: undefined reference to `fntGetBitmapFont(int)'collect2: ld returned 1 exit statusmake[3]: *** [MapPS] Error 1regards Harry
July 19, 200619 yr >I get this same error on the 10.1 and another machine (both>pent 4) running suse 9.3.>>Both have plib 1.8.4, from the distro rpm. I cant get it to>compile from the src so I guess they have tweeked it to make>it work, but is it something wrong in the suse plib?#### (this here has been censored by your friendly avism forum software, and described bovine excrement). Original plib works very well on all SuSE that I've ever tried, it does still with 10.1. But SuSE, like Debian, decided to know better and cripple plib, so you better ask them for a fix.>/usr/lib/gcc/i586-suse-linux/4.1.0/../../../libplibpu.so:plib doesn't even create dynamic libraries, because the project leader thinks this causes nothing but problems. And it looks as if he has a point. Just use stock plib.m.
July 19, 200619 yr M,thanks for the reply.I agree, suse seem to have crippled their distro as well as plib. No point in linux if you cant compile apps that are not on the distro. Yes, I have done as you sugest and an found plib builds on 9.3:plib compiled with a couple of warnings on the 9.3 box, and now altlas compiles with no warnings and works. but on the 10.1 box plib compile throws some warnings along the way then dies. I suspect a lot of these issues are gcc4 over gcc3. clip----ssgaSky.h:107: error: extra qualification
July 19, 200619 yr >ssgaSky.h:107: error: extra qualification>ssgaCelestialBodyList:: on member ssgaCelestialBodyList>ssgaSky.h:195: error: extra qualification>ssgaCloudLayerList:: on member ssgaCloudLayerListThat's indeed a bug in plib, which only occurs with the newest gcc versions and is fixed in the plib development version. Just remove the extra qualifications in that file, then. :-}RCS file: /cvsroot/plib/plib/src/ssgAux/ssgaSky.h,vretrieving revision 1.3retrieving revision 1.4diff -b -p -u -r1.3 -r1.4--- ssgaSky.h 26 Sep 2003 14:54:20 -0000 1.3+++ ssgaSky.h 27 Mar 2006 08:09:54 -0000 1.4@@ -104,7 +104,7 @@ public: ssgaCelestialBodyList ( int init = 3 ) : ssgSimpleList ( sizeof(ssgaCelestialBody*), init ) { }- ssgaCelestialBodyList::~ssgaCelestialBodyList () { removeAll(); }+ ~ssgaCelestialBodyList () { removeAll(); } int getNum (void) { return total ; }@@ -192,7 +192,7 @@ public: ssgaCloudLayerList ( int init = 3 ) : ssgSimpleList ( sizeof(ssgaCloudLayer*), init ) { }- ssgaCloudLayerList::~ssgaCloudLayerList () { removeAll(); }+ ~ssgaCloudLayerList () { removeAll(); } int getNum (void) { return total ; }
July 19, 200619 yr mthanks again, I made the mod to the plib c code and it compiles ok on suse 10.1,There are still quite a few warnings as it compiles. I dont know how signifigant they are. But in general are these likely to be a problem at a later time? I pulled out the suse plib rpm and a rebuild of simgear and flight gear and all is working again. Also Altas now compiles and works.Have you got taxidraw and TerrGear running on suse? Nurbs++ (terragear req) is a compiler problem on 10.1 but not 9.3I think I will need to learn a lot more about c if Iam to stay with 10.1Thanks again.H
July 19, 200619 yr >Have you got taxidraw and TerrGear running on suse? Nurbs++>(terragear req) is a compiler problem on 10.1 but not 9.3taxidraw: yes. That was easyTerraGear tools: no. I just don't need them. (And don't have the bandwidth to downlood gigabytes of raw data)fgrun: yes. Not hard. You need fltk(-devel) 1.1.* (not 2.*.*) and configure it with --enable-threadsfgsd: no. The number of dependencies is prohibitive. :-}
July 19, 200619 yr myes I found same error stoping the compiler as plib in Taxidraw and Celestia so after a quick edit thats two more issues out of the way.I was hoping to make local scenery thus will follow up nurbs for terragear. I have seen mentions of patchs for nurbs++ under gcc4 while searching. So i will follow up on them tomorrow.Interesting though the compiler error is looking to plib again.g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../include -g -O2 -fno-implicit-templates -c cvector.cpp -MT cvector.lo -MD -MP -MF .deps/cvector.TPlo -fPIC -DPIC -o .libs/cvector.lovector.h: In member function
Create an account or sign in to comment