Mon, 28 Jul 2003 19:19:32 +0200
Erik Hofman <[EMAIL PROTECTED]> napisal:
> Lukasz Szift Hejnak wrote:
> > so just today I downloaded the  FlightGear
> > all CVS,it stopped at compile..
<cut>
> Try removing all simgear related files from your system and install it
> again to see if that solves this problem.
I tried that, and it didn't help, but I took a look into those files
(main.cxx and sky.hxx) and found out, what might be the error..

flightgear/src/Main/main.cxx
lines: 1767-1771 looked like this
    thesky->build( 550.0, 550.0,
               globals->get_ephem()->getNumPlanets(),
               globals->get_ephem()->getPlanets(), 60000.0,
               globals->get_ephem()->getNumStars(),
               globals->get_ephem()->getStars(), 60000.0);

and in the sky.hxx the function took a bit different order of
those arguments:
/usr/local/include/simgear/scene/sky/sky.hxx
line: 237
    void build( double h_radius_m, double v_radius_m,
                double sun_size, double moon_size,
                int nplanets, sgdVec3 *planet_data,
                int nstars, sgdVec3 *star_data );

so I changed the order of the args in main.cxx and ended up with:
flightgear/src/Main/main.cxx
lines: 1767-1771
    thesky->build( 550.0, 550.0, 60000.0, 60000.0,
               globals->get_ephem()->getNumPlanets(), 
               globals->get_ephem()->getPlanets(), 
               globals->get_ephem()->getNumStars(),
               globals->get_ephem()->getStars() );

it solved the compile problem..
no it's for testing, but judging from the var names I think it will work
ok
dunno how come this passed compiling for the outhers though...
thx anyway for the response :)

-- 
with regards
Lukasz Hejnak
[EMAIL PROTECTED]

_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to