Board index FlightGear Support Tools Atlas

Atlas (cvs/git) no longer compiles

Atlas is an addon that lets FlightGear users display a real-time "moving-map" of their flight.

Atlas (cvs/git) no longer compiles

Postby Alasdair » Sun Oct 14, 2012 2:34 pm

Git version cloned from http://mapserver.flightgear.org/git/atlas

The build fails in misc.cxx at double magneticVariation(double lat, double lon, double elev).
This function calls SGTime::update with incorrect arguments resulting in the error:

misc.cxx: In function ‘double magneticVariation(double, double, double)’:
misc.cxx:404:29: error: no matching function for call to ‘SGTime::update(double&, double&, int, int)’
misc.cxx:404:29: note: candidate is:
In file included from misc.cxx:35:0:
/usr/local/include/simgear/timing/sg_time.hxx:149:10: note: void SGTime::update(const SGGeod&, time_t, long int)
/usr/local/include/simgear/timing/sg_time.hxx:149:10: note: candidate expects 3 arguments, 4 provided
make[3]: *** [misc.o] Error 1

The cvs version also fails with the same error
I compiled this OK on Tue 25 Sep 2012 11:53:51 BST, so I can only suppose there must have been a change to Simgear?
Can anyone help?
Alasdair
Alasdair
 
Posts: 2
Joined: Tue Jun 26, 2012 11:33 am

Re: Atlas (cvs/git) no longer compiles

Postby Alasdair » Sun Oct 14, 2012 3:42 pm

I manage the build OK by compiling against SimGear 2.8.0.
But I would love to learn how to make it compile against the Simgear git
version (2.9.0).
ie from:
SGTime::update( double lon_rad, double lat_rad, time_t ct, long int warp )
to:
SGTime::update( const SGGeod& location, time_t ct, long int warp )

Sadly, I have not used c++ recently and am too rusty to figure this out.

Regards,
Alasdair
Alasdair
 
Posts: 2
Joined: Tue Jun 26, 2012 11:33 am


Return to Atlas

Who is online

Users browsing this forum: No registered users and 2 guests