On Sun, 10 Apr 2011 04:02:28 +0200, Arnt wrote in message
<20110410040228.676314d3@celsius.local>:
> On Sun, 10 Apr 2011 02:52:34 +0200, Arnt wrote in message
> <20110410025234.74393785@celsius.local>:
>
> > ..both plib and SimGear builds ok on c++-4.6.0-2 and my last
> > OSG, and on system OSG (2.9.11-1), but fgfs build fails with:
> > make[3]: Entering directory
> > `/home/arnt/FG-git/fgfs/flightgear/src/FDM' g++ -DHAVE_CONFIG_H -I.
> > -I../../src/Include -I../.. -I../../src -I../../src/FDM/JSBSim
> > -I/home/arnt/FG-git/install/simgear/include
> > -I/home/arnt/FG-git/install/plib/include -I/usr/local/include -g
> > -O2 -Wall -I/home/arnt/FG-git/install/simgear -D_REENTRANT -MT
> > flightProperties.o -MD -MP -MF .deps/flightProperties.Tpo -c -o
> > flightProperties.o flightProperties.cxx In file included from
> > flightProperties.cxx:23:0: ../../src/FDM/flightProperties.hxx:48:44:
> > error: ‘NULL’ was not declared in this scope
> > make[3]: *** [flightProperties.o] Error 1
> > make[3]: Leaving directory
> > `/home/arnt/FG-git/fgfs/flightgear/src/FDM' make[2]: ***
> > [install-recursive] Error 1 make[2]: Leaving directory
> > `/home/arnt/FG-git/fgfs/flightgear/src/FDM' make[1]: ***
> > [install-recursive] Error 1 make[1]: Leaving directory
> > `/home/arnt/FG-git/fgfs/flightgear/src' make: ***
> > [install-recursive] Error 1
>
> ..full FGFS compile log on the above error:
> https://github.com/gasguru/flightgearthings/blob/master/compilelogs/compilation_log.2011-04-10+00:48:48-UTC-FGFS
>
> ..more (PLIB, OSG, etc) compile logs with more errors and warnings:
> https://github.com/gasguru/flightgearthings/tree/master/compilelogs
> "UTC" is the famous time zone.
>
> ..modified build script uses system OSG, sets timestamps
> and renames each compile log on exit, with job name:
> https://github.com/gasguru/flightgearthings/blob/master/download_and_compile.sh-1.2.0-sysOSG
>
>
> > ..line 47-49 in ../../src/FDM/flightProperties.hxx:
> > public:
> > FlightProperties(SGPropertyNode* aRoot = NULL);
> > ~FlightProperties();
>
> ..if this is the right error line, how do I fix it???
>
..by as Csaba said, replacing "NULL" with "0". Found
instead a new? linker error to go in new post.
..meanwhile, pls find attached fixed said flightProperties.hxx
arnt@celsius:~/FG-git$ pwd
/home/arnt/FG-git
arnt@celsius:~/FG-git$ cd fgfs/flightgear/src/FDM/
arnt@celsius:~/FG-git/fgfs/flightgear/src/FDM$ ll flightProperties.hxx
-rw-r--r-- 1 arnt arnt 3782 Apr 10 11:22 flightProperties.hxx
arnt@celsius:~/FG-git/fgfs/flightgear/src/FDM$ md5sum \
flightProperties.hxx
a2a3369c5a49ae14f2c59319f2141ea7 flightProperties.hxx
arnt@celsius:~/FG-git/fgfs/flightgear/src/FDM$ cd -
/home/arnt/FG-git
arnt@celsius:~/FG-git$
--
..med vennlig hilsen = with Kind Regards from Arnt Karlsen
...with a number of polar bear hunters in his ancestry...
Scenarios always come in sets of three:
best case, worst case, and just in case.
// flightProperties.hxx -- expose FDM properties via helper methods
//
// Written by James Turner, started June 2010.
//
// Copyright (C) 2010 Curtis L. Olson - http://www.flightgear.org/~curt
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License as
// published by the Free Software Foundation; either version 2 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
//
// $Id$
#ifndef FG_FLIGHT_PROPERTIES_HXX
#define FG_FLIGHT_PROPERTIES_HXX
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <memory>
#include <simgear/math/SGMathFwd.hxx> // for SGVec3d
#include <simgear/math/SGMisc.hxx>
// forward decls
class SGPropertyNode;
class SGGeoc;
class SGGeod;
/**
* Encapsulate the FDM properties in some getter/setter helpers.
* This class intentionally mimics portions of
* @FGInterface, to permit easy migration of code outside the FDMs,
* to use properties instead of global variables.
*/
class FlightProperties
{
public:
FlightProperties(SGPropertyNode* aRoot = 0);
~FlightProperties();
double get_V_north() const;
double get_V_east() const;
double get_V_down() const;
double get_uBody () const;
double get_vBody () const;
double get_wBody () const;
double get_A_X_pilot() const;
double get_A_Y_pilot() const;
double get_A_Z_pilot() const;
double get_P_body() const;
double get_Q_body() const;
double get_R_body() const;
SGGeod getPosition() const;
double get_Latitude() const;
double get_Longitude() const;
double get_Altitude() const;
double get_Altitude_AGL(void) const;
double get_Track(void) const;
double get_Latitude_deg () const;
double get_Longitude_deg () const;
double get_Phi_deg() const;
double get_Theta_deg() const;
double get_Psi_deg() const;
double get_Phi() const { return SGMiscd::deg2rad(get_Phi_deg()); }
double get_Theta() const { return SGMiscd::deg2rad(get_Theta_deg()); }
double get_Psi() const { return SGMiscd::deg2rad(get_Psi_deg()); }
double get_Phi_dot() const;
double get_Theta_dot() const;
double get_Psi_dot() const;
double get_Alpha() const;
double get_Beta() const;
double get_Phi_dot_degps() const;
double get_Theta_dot_degps() const;
double get_Psi_dot_degps() const;
double get_V_ground_speed() const; // in feet/s
double get_V_equiv_kts() const;
double get_V_calibrated_kts() const;
double get_Climb_Rate() const;
double get_Runway_altitude_m() const;
double get_Total_temperature() const;
double get_Total_pressure() const;
double get_Dynamic_pressure() const;
void set_Longitude(double l); // radians
void set_Latitude(double l); // radians
void set_Altitude(double ft); // feet
void set_Euler_Angles(double phi, double theta, double psi);
void set_Euler_Rates(double x, double y, double z);
void set_Alpha(double a);
void set_Beta(double b);
void set_Altitude_AGL(double ft);
void set_V_calibrated_kts(double kts);
void set_Climb_Rate(double fps);
void set_Velocities_Local(double x, double y, double z);
void set_Velocities_Wind_Body(double x, double y, double z);
void set_Accels_Pilot_Body(double x, double y, double z);
private:
SGPropertyNode* _root;
};
#endif // of FG_FLIGHT_PROPERTIES_HXX
------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel