Hi,
My CVS update of Oct 25 pulled in lots of 'changed'
files, and had two problems with the compiles.
They were simple fixes ...
SG/source - fastmath.cxx
Had to put the include of fastmath.hxx in front of
#include simgear/constants.h, since constants.h
also sucks in math.h ... through compiler.h ...
fastmath.hxx correctly defines _USE_MATH_DEFINES,
under a _MSC_VER switch, before including math.h,
which works fine ...
This is to define a value for M_LN2 ... this error
has come and gone, over YEARS ... sometimes I
would just drop in a define ...
FG/source - tacan.cxx
I made this fix some weeks back, but forgot to mention
it ...
Talk about a 'sanity check' ... the line MSVC dies on
or about line 368 -
if (frequency_khz 9620 and frequency_khz = 12130)return
frequency_khz/100;
I added the following -
#ifdef _MSC_VER
if (frequency_khz 9620 frequency_khz = 12130)return
frequency_khz/100;
#else // !#ifdef _MSC_VER
if (frequency_khz 9620 and frequency_khz = 12130)return
frequency_khz/100;
#endif // #ifdef _MSC_VER y/n
but maybe the author, Vivian, would not mind using '',
instead of 'and' ;=)) Assume gcc compiler accepts '',
as well as 'and' ...
FG/data
Lots of new files, that I had read about here ...
On running FG, it exited, with the last few console messages -
Adding subsystem lighting
Initializing OpenAL sound manager
Audio initialization failed!
Adding subsystem fx
ATC Display
ATC Manager
WARNING - INVALID type found in C:/FG0981/FlightGear/data/ATC/default.atis
WARNING - INVALID type found in C:/FG0981/FlightGear/data/ATC/default.tower
WARNING - INVALID type found in C:/FG0981/FlightGear/data/ATC/default.ground
WARNING - INVALID type found in
C:/FG0981/FlightGear/data/ATC/default.approach
From file sounds sample = C:/FG0981/FlightGear/data/ATC/default.wav
Fatal error: Failed to load wav file.
Each of these files exist in the ATC folder ...
Abandoning my own OpenAL compile from CVS source, I
downloaded some new, mid Oct, OpenAL WIN32 binaries, with
windows installer included, removed my hand-built
stuff, and bingo, the sound works again ... but still
get the above WARNINGS ... from current console
output -
Adding subsystem lighting
Initializing OpenAL sound manager
Adding subsystem fx
ATC Display
ATC Manager
WARNING - INVALID type found in C:/FG0981/FlightGear/data/ATC/default.atis
WARNING - INVALID type found in C:/FG0981/FlightGear/data/ATC/default.tower
WARNING - INVALID type found in C:/FG0981/FlightGear/data/ATC/default.ground
WARNING - INVALID type found in
C:/FG0981/FlightGear/data/ATC/default.approach
From file sounds sample = C:/FG0981/FlightGear/data/ATC/default.wav
Opened word data file ATC/default.vce OK...
ATC Transmissions
Current Unix calendar time = 1130405441 warp = 0
Current GMT = 10/27/2005 9:30:41
ATC Dialog System
AI Manager
Am at present ignoring these WARNINGS ... but wonder
what is the INVALID type found ... and why?
OT a little - Obtaining the console output is quite difficult
in windows ... you must jump on the [pause] key
at the right time, else what you want to see
will have scrolled out of my already enlarged console
buffer ...
I have tried every which way to redirect this
output ... with things like log.txt, or 2log.txt 12 ...
but NOTHING seems to work ... it seems the sg_log()
initialisation undoes the command line redirection?
Do other windows users have this problem, or has
someone solved how to re-direct the output to a
file?
As usual, hope this helps ... at least the MSVC,
windows users
Geoff.
EOF
_
MyCareer.com.au: Visit the NEW Salary Survey
http://www.mycareer.com.au/salary-survey/?s_cid=203697
___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d