Hi,

I'm new to FlightGrear and this mail list. The pre-built and self-built
FlightGear-0.9.11-pre1 worked in my environment: MinGW/MSYS on Windows XP.
But for build of the lastest CVS code of FlightGear and SimGear, I got the
following error:

C:\>fgfs --aircraft=f16 --airport-id=KJFK
  Model Author:  Erik Hofman
  Creation Date: 2001-01-01
  Version:       $Revision: 1.44 $
  Description:   Models an F-16A Block-32 (Basic US configuration)
Nasal runtime error: non-scalar in string context
  at C:/gnu/msys/1.0.11/local/src/FlightGear-0.9/data/Nasal/aircraft.nas,
line 395
  called from: 
C:/gnu/msys/1.0.11/local/src/FlightGear-0.9/data/Nasal/aircraft.nas,
line 818
Nasal runtime error: non-scalar in string context
  at C:/gnu/msys/1.0.11/local/src/FlightGear-0.9/data/Nasal/globals.nas,
line 118

The splash screen showed:
      reading airport & navaigation data
      ......
      loading aircraft
      initializing subsystems

then a Windows error dialog appeared and the fgfs application was closed.

Line 395 and 818 of aircraft.nas are:

  me.path = getprop("/sim/fg-home") ~ "/aircraft-data/" ~
getprop("/sim/aircraft") ~ ".xml";

  data.init();

Line 118 of globals.nas is:

    var path = getprop("/sim/fg-home") ~ "/Nasal";

It seems that the problem is in the function getprop. I guess getprop is a
core API, so something may be fundamentally wrong in my setup. I'll list
some details at the end of this email. BTW, I got the same error in Windows
Vista.

Did anyone encountered similar error before? May someone please advice on
how to locate the problem area and resolve this issue?

Thanks a lot,
Robert Fu

---------------------- my build environment ------------------------------

1. MinGW and Msys on Windows XP (and Vista)

2. gcc 3.4.5

3. pthread is from pthreads-w32-2-8-0-release.exe downloaded from
http://sources.redhat.com/pthreads-win32

4. I followed steps on a FlightGear Msys build Wiki page to get
   GLUT from  http://mywebpage.netscape.com/PtrPck/glutming.zip
   OpenAL from http://plausible.org/andy/fgfs-mingw-libs.tar.gz (Andy's
libs) for compilation
   but at runtime OpenAL32.dll is needed from pre-built
FlightGear-0.9.11-pre1 or OpenAL win32 installer

The following packages are built by myself:

1. SDL-1.2.12
2. plib-1.8.4
3. cmake-2.4.7
4. Open Scene Graph 2.0
5. SimGear-0.3 (source code from CVS)
6. FlightGear-0.9 (source code from CVS)
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Flightgear-users mailing list
Flightgear-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-users

Reply via email to