Re: [Flightgear-devel] CVS: main.cxx error: no matching functionfor call to `SGSky::build
Lukasz Szift Hejnak wrote: 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(), 6.0, globals-get_ephem()-getNumStars(), globals-get_ephem()-getStars(), 6.0); and in the sky.hxx the function took a bit different order of those arguments: /usr/local/include/simgear/scene/sky/sky.hxx This directory layout suggest you are using SimGear CVS version. Then you *must* use FlightGear CVS version which contains: // The sun and moon diameters are scaled down numbers of the // actual diameters. This was needed to fit bot the sun and the // moon within the distance to the far clip plane. // Moon diameter:3,476 kilometers // Sun diameter: 1,390,000 kilometers thesky-build( 8.0, 8.0, 463.3, 361.8, globals-get_ephem()-getNumPlanets(), globals-get_ephem()-getPlanets(), globals-get_ephem()-getNumStars(), globals-get_ephem()-getStars() ); 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 ); Erik ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
Re: [Flightgear-devel] CVS: main.cxx error: no matching functionfor call to `SGSky::build
Lukasz Szift Hejnak wrote: and I looked on the files trough the web cvs system and in fact, the code in the main.cxx is different than in my local main.cxx so how can it be, if I downloaded the file yesterday? What is the exact command you use to get FlightGear CVS? Erik ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
Re: [Flightgear-devel] CVS: main.cxx error: no matching functionfor call to `SGSky::build
0, Erik Hofman [EMAIL PROTECTED] napisa: Lukasz Szift Hejnak wrote: and I looked on the files trough the web cvs system and in fact, the code in the main.cxx is different than in my local main.cxx so how can it be, if I downloaded the file yesterday? What is the exact command you use to get FlightGear CVS? cd ~/CVS cvs -d :pserver:[EMAIL PROTECTED]:/var/cvs/FlightGear-0.9 login mkdir flightgear cd flightgear cvs -d :pserver:[EMAIL PROTECTED]:/var/cvs/FlightGear-0.9 co source ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
Re: [Flightgear-devel] CVS: main.cxx error: no matching functionfor call to `SGSky::build
Lukasz Szift Hejnak wrote: What is the exact command you use to get FlightGear CVS? cd ~/CVS cvs -d :pserver:[EMAIL PROTECTED]:/var/cvs/FlightGear-0.9 login mkdir flightgear cd flightgear cvs -d :pserver:[EMAIL PROTECTED]:/var/cvs/FlightGear-0.9 co source I don't think 'co source' is the right way. Try using this time: export CVSROOT=:pserver:[EMAIL PROTECTED]:/var/cvs/FlightGear-0.9 cd flightgear cvs -z3 up -Pd ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
Re: [Flightgear-devel] CVS: main.cxx error: no matching functionfor call to `SGSky::build
Lukasz Szift Hejnak wrote: so just today I downloaded the plib, SimGear and FlightGear all CVS, the plib didn't compile at start, I had to comment out line 146 from the file plib/src/ssg/ssg.cxx ssgAddModelFormat ( .asc, NULL, ssgSaveASC ) ; after that the plib compiled ok, the SimGear compiled out of the box.. and finally I started the Flight Gear... it stopped with this error: main.cxx: In function `bool fgMainInit(int, char**)': main.cxx:1771: error: no matching function for call to `SGSky::build(double, double, int, double (*)[3], double, int, double (*)[3], double)' /usr/local/include/simgear/scene/sky/sky.hxx:240: error: candidates are: void SGSky::build(double, double, double, double, int, double (*)[3], int, double (*)[3]) It looks like you are mixing a CVS version of FlightGear with the stable version of SimGear. It could be that SimGear was already available on your system, but on a different location than where you have placed the new version. Try removing all simgear related files from your system and install it again to see if that solves this problem. Erik ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
Re: [Flightgear-devel] CVS: main.cxx error: no matching functionfor call to `SGSky::build
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(), 6.0, globals-get_ephem()-getNumStars(), globals-get_ephem()-getStars(), 6.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, 6.0, 6.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