RE: [Flightgear-devel] Problem with FG_ROOT in runfgfs.bat under cygwinbuild

2004-04-01 Thread Cooke N.
Innis,

Thanks for your .BAT file - it works!
So FG_ROOT needs to be set to \DATA ... that was the problem...I wonder if
this should be reflected in the documentation on building flightgear section
4.2?

-
SET FG_ROOT=c:\FlightGear\DATA
    

and invoke FlightGear (within the same Command shell, as environment
settings are only valid locally within the same shell) via 

fgfs --option1 --option2 

...Of course, you can create your own runfgfs.bat with Windows Editor using
the two lines above. 
--
Martin/David thanks for your replies,

Neil.





-Original Message-
From: Innis Cunningham [mailto:[EMAIL PROTECTED]
Sent: 01 April 2004 03:04
To: [EMAIL PROTECTED]
Subject: RE: [Flightgear-devel] Problem with FG_ROOT in runfgfs.bat
under cygwinbuild


Hi Neil
See below is my .bat file that I run from
the Flightgear folder under Cygwin

REM @ECHO OFF

REM Skip ahead to CONT1 if FG_ROOT has a value
IF NOT %FG_ROOT%.==. GOTO CONT1

SET TOP_ROOT=.
SET FG_ROOT=%TOP_ROOT%\DATA

:CONT1

REM Check for the existance of the executable
IF NOT EXIST %TOP_ROOT%\BIN\FGFS.EXE GOTO ERROR1

REM Now that FG_ROOT has been set, run the program
ECHO FG_ROOT = %FG_ROOT%
%TOP_ROOT%\BIN\FGFS.EXE

GOTO END

:ERROR1
ECHO Cannot find %TOP_ROOT%\BIN\FGFS.EXE
GOTO END

:END

HTH

Cheers
Innis

_
We've 100s of NEW questions! Play Millionaire online to win . Click here

  http://sites.ninemsn.com.au/minisite/millionaire/default.asp


___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel


[Flightgear-devel] Problem with FG_ROOT in runfgfs.bat under cygwin build

2004-03-31 Thread Cooke N.
Hi,
 
This is my first post so I apologise for it being trivial, I've built
FlightGear under windows xp/cygwin following all the instructions in the
manual (apart from building metakit which is not in the source files??).
It compiles but a runfgfs.bat file wasn't produced. No problem - I created
one with the two lines:
 
 SET FG_ROOT=c:\cygwin\usr\local\FlightGear
 %FG_ROOT%\BIN\FGFS.EXE
 
 but when I come to run it I get the following error:
  
 -
 C:\cygwin\usr\local\FlightGearSET FG_ROOT=c:\cygwin\usr\local\FlightGear
 
 C:\cygwin\usr\local\FlightGearc:\cygwin\usr\local\FlightGear\BIN\FGFS.EXE
 WARNING: ssgLoadAC: Failed to open
'./c:/cygwin/usr/local/FlightGear/data/Aircra
 ft/c172p/Models/c172p.ac' for reading
 Failed to load aircraft from Aircraft/c172p/Models/c172p.xml
 (Falling back to glider.ac.)
 WARNING: ssgLoadAC: Failed to open
'./c:/cygwin/usr/local/FlightGear/data/Models
 /Geometry/glider.ac' for reading
 Fatal error: Failed to load 3D model
  (received from )
 
 C:\cygwin\usr\local\FlightGearpause
 Press any key to continue . . .
 
 
So it looks like flightgear looks for the data path as ./c/ when
trying to use the environment variable FG_ROOT. Which isn't a recongised
windows path

Any suggestions?
 
Oh, I've tried a VS .NET build but no luck so farbut first things first
;-)!
 
Neil.
 

___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel