From: Frederic B. <fre...@fr...> - 2009-01-11 12:52:15
|
Chris Perry a écrit : > LeeE wrote: > >> On Thursday 08 January 2009, Jon Stockill wrote: >> >> >>> Chris Perry wrote: >>> >>> >>>> Hi, >>>> I have been using fgfs for a few years and have just downloaded >>>> and compiled the new version 1.9.0. >>>> >>>> I am using a Debian 64bit distribution Etch (AMD64). >>>> >>>> I had to fiddle the system bit to get everything to compile. >>>> After a lot of head scratching and cussing, I have fgfs binary. >>>> >>>> But alas, I have some run time errors that prevent the program >>>> from initialising. >>>> >>>> I have compiled the OSG, glutl, openAL, plib and simgear >>>> ibraries under /usr/local/lib include and lib64 and find it >>>> necessary to: export >>>> LD_LIBRARY_PATH=/usr/local/lib:/usr/local/lib64 and then >>>> fgfs >>>> >>>> Specifically the error I get is: >>>> Warning: Could not find plugin to read objects from file >>>> "/usr/local/share/FlightGear/data/Aircraft/c172p/splash.png". >>>> Warning: Could not find plugin to read objects from file >>>> "/usr/local/share/FlightGear/data/Aircraft/c172p/Models/interio >>>> r.png". osgDB ac3d reader: could not read texture "interior.png" >>>> ... >>>> Segmentation fault >>>> >>>> The png files are on the system. The error message from osgDB >>>> says it could not find a plugin to read the png files. >>>> >>>> Can you advise which software component is broken (osg?) and >>>> how I might troble-shoot the missing plugin? >>>> I recieved one bad message from ./configure when compiling OSG. >>>> That was: -- ERROR: wxWidgets was not found. >>>> configure completed ok and I went on to make without >>>> encountering errors. >>>> >>>> I also failed 1 of the two test when compiling SimGear v1.9 >>>> (make check). I gathered this was ok, or expected. Right? >>>> >>>> >>>> >>> The libs (or possibly just the dev package) for png support >>> wasn't found, so OSG didn't build the png plugin. >>> >>> Jon >>> >>> >> Yes - check that you have the libpng-dev package installed. It will >> probably be called libpngXX-dev, where XX seems to be '12' on etch. >> >> LeeE >> >> > OK, > Thanks for the help and sorry for not getting back sooner. > > libpng12-dev looks like it will help. I have installed and re-run > configure for OSG. Output for that now contains the following new line: > Found PNG: /usr/lib64/libpng.so > This is not enough. You should check that osgdb_png.so was correctly compiled and installed. > I have compiled OSG and FG and still get the same errors. I would not > have thought all the other programs would need recompiling too... Any > thoughts? > > What of the > > -- ERROR: wxWidgets was not found. > > Message? > > Don't worry for that > Another thing that look a lot of my time when building the system was > plib. I removed the correct version for Etch (v1.8.4c2) and replaced it > with an Etch backport for v1.8.5. To build it I had to change > LIBS="$LIBS $X_PRE_LIBS -lXi -lXmu -lXext -lX11 $X_EXTRA_LIBS -lm" > to > LIBS="$LIBS $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS -lm" > In the configure file. I.E. -lXi and -lXmu resulted in config errors, > so I removed them. > Should I attempt to track down the proper source of these errors? What > do I need to put on the system to get plib to configure properly with > the -lXi and -lXmu switches? > > All difficult questions, I know. Any help appreciated. > Instead of removing vital options, I'd install libxmu-dev and libxi-dev -Fred -- Frédéric Bouvier http://my.fotolia.com/frfoto/ Photo gallery http://fgsd.sourceforge.net/ FlightGear Scenery Designer |