Re: [Flightgear-devel] Building SimGear on Mac OS X 10.4.2

2005-09-05 Thread Erik Hofman

Markus Morawitz wrote:

Hello Eric,

you said that you missed same emails.
Here is a email with respect to a patch 


These changes have been committed now.

Erik

___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d


[Flightgear-devel] Re: Flightgear-devel Digest, Vol 29, Issue 4

2005-09-05 Thread Steve Knoblock


I thought about trying to do some birds a while ago and figured 
that even a simple 3d model was probably unnecessary - a few 

I think bird hazard to place around airports is a great idea. I lived
in Delaware once, and at Dover AFB, flocks of birds would always rise
up when one of the galaxies would come over a farm field on approach;
up they would go and then just when you thought they might reach the
aircraft, they would settle down again.

There are eye-candy birds in Star Wars Battlefront for example, which
appear to be flat planes with textures that flap. The textures must be
transparent to define the birds shape.

Steve



___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d


[Flightgear-devel] MSVC build error

2005-09-05 Thread bass pumped
Hi all,

I'm trying to get flightgear 9.8 built in Windows.  I'm using MSVC 7
for the build.  I ran into the following errors from the Nasal code.

start output

from the following code:-

static struct {
naCFunction func;
char* name;
} propfuncs[] = {
{ f_getType, _getType },
{ f_getName, _getName },
{ f_getIndex, _getIndex },
{ f_getValue, _getValue },
{ f_setValue, _setValue },
{ f_setIntValue, _setIntValue },
{ f_setBoolValue, _setBoolValue },
{ f_setDoubleValue, _setDoubleValue },
{ f_getParent, _getParent },
{ f_getChild, _getChild },
{ f_getChildren, _getChildren },
{ f_removeChild, _removeChild },
{ f_getNode, _getNode },
{ f_new, _new },
{ f_globals, _globals },
{ 0, 0 }
};


in nasal-props.cxx and


static struct { char* name; naCFunction func; } funcs[] = {
{ getprop,   f_getprop },
{ setprop,   f_setprop },
{ print, f_print },
{ _fgcommand, f_fgcommand },
{ settimer,  f_settimer },
{ _cmdarg,  f_cmdarg },
{ _interpolate,  f_interpolate },
{ rand,  f_rand },
{ 0, 0 }
};

in NasalSys.cxx

  Compiling...
nasal-props.cxx
g:\Flightgear_build\FlightGear\FlightGear\src\Scripting\nasal-props.cxx(197)
: warning C4800: 'int' : forcing value to bool 'true' or 'false'
(performance warning)
g:\Flightgear_build\FlightGear\FlightGear\src\Scripting\nasal-props.cxx(217)
: error C2440: 'initializing' : cannot convert from 'naRef (__cdecl
*)(naContext,naRef,int,naRef *)' to 'naCFunction'
None of the functions with this name in scope match the target type
g:\Flightgear_build\FlightGear\FlightGear\src\Scripting\nasal-props.cxx(218)
: error C2440: 'initializing' : cannot convert from 'naRef (__cdecl
*)(naContext,naRef,int,naRef *)' to 'naCFunction'
None of the functions with this name in scope match the target type
g:\Flightgear_build\FlightGear\FlightGear\src\Scripting\nasal-props.cxx(219)
: error C2440: 'initializing' : cannot convert from 'naRef (__cdecl
*)(naContext,naRef,int,naRef *)' to 'naCFunction'
None of the functions with this name in scope match the target type
g:\Flightgear_build\FlightGear\FlightGear\src\Scripting\nasal-props.cxx(220)
: error C2440: 'initializing' : cannot convert from 'naRef (__cdecl
*)(naContext,naRef,int,naRef *)' to 'naCFunction'
None of the functions with this name in scope match the target type
g:\Flightgear_build\FlightGear\FlightGear\src\Scripting\nasal-props.cxx(221)
: error C2440: 'initializing' : cannot convert from 'naRef (__cdecl
*)(naContext,naRef,int,naRef *)' to 'naCFunction'
None of the functions with this name in scope match the target type
g:\Flightgear_build\FlightGear\FlightGear\src\Scripting\nasal-props.cxx(222)
: error C2440: 'initializing' : cannot convert from 'naRef (__cdecl
*)(naContext,naRef,int,naRef *)' to 'naCFunction'
None of the functions with this name in scope match the target type
g:\Flightgear_build\FlightGear\FlightGear\src\Scripting\nasal-props.cxx(223)
: error C2440: 'initializing' : cannot convert from 'naRef (__cdecl
*)(naContext,naRef,int,naRef *)' to 'naCFunction'
None of the functions with this name in scope match the target type
g:\Flightgear_build\FlightGear\FlightGear\src\Scripting\nasal-props.cxx(224)
: error C2440: 'initializing' : cannot convert from 'naRef (__cdecl
*)(naContext,naRef,int,naRef *)' to 'naCFunction'
None of the functions with this name in scope match the target type
g:\Flightgear_build\FlightGear\FlightGear\src\Scripting\nasal-props.cxx(225)
: error C2440: 'initializing' : cannot convert from 'naRef (__cdecl
*)(naContext,naRef,int,naRef *)' to 'naCFunction'
None of the functions with this name in scope match the target type
g:\Flightgear_build\FlightGear\FlightGear\src\Scripting\nasal-props.cxx(226)
: error C2440: 'initializing' : cannot convert from 'naRef (__cdecl
*)(naContext,naRef,int,naRef *)' to 'naCFunction'
None of the functions with this name in scope match the target type
g:\Flightgear_build\FlightGear\FlightGear\src\Scripting\nasal-props.cxx(227)
: error C2440: 'initializing' : cannot convert from 'naRef (__cdecl
*)(naContext,naRef,int,naRef *)' to 'naCFunction'
None of the functions with this name in scope match the target type
g:\Flightgear_build\FlightGear\FlightGear\src\Scripting\nasal-props.cxx(228)
: error C2440: 'initializing' : cannot convert from 'naRef (__cdecl
*)(naContext,naRef,int,naRef *)' to 'naCFunction'
None of the functions with this name in scope match the target type
g:\Flightgear_build\FlightGear\FlightGear\src\Scripting\nasal-props.cxx(229)
: error C2440: 'initializing' : cannot convert from 'naRef (__cdecl
*)(naContext,naRef,int,naRef *)' to 'naCFunction'
None of the functions with this name in scope match the target type
g:\Flightgear_build\FlightGear\FlightGear\src\Scripting\nasal-props.cxx(230)
: error C2440: 'initializing' : cannot convert from 'naRef (__cdecl

RE: [Flightgear-devel] MSVC build error

2005-09-05 Thread Jim Alberico
bass,

I had the same error when 9.8 was first released.  Working from lame memory
on the fix now, but I may be able to point you in the right direction.

Seems like I had to change the project settings under Configuration
Properties--C/C++--Advanced--Calling Convention.  The right setting is
probably _cdecl (/Gd). You'll probably want to make sure all subprojects
share that setting, and you'll probably want to do a clean build of
everything after the change.

Hope this helps.  It didn't take me long to get past the problemjust
some experimenting with the project settings (under properties).

As for the moonpos.cxx, that problem also sounds familiar.  Try adding it
back in to the project in the appropriate place (probably the same place you
found it).  Seems like MSVC was initially confused about that for some
reason, and the fix was that simple.

Jim A

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of bass pumped
 Sent: Monday, September 05, 2005 6:35 PM
 To: FlightGear developers discussions
 Subject: [Flightgear-devel] MSVC build error


 Hi all,

 I'm trying to get flightgear 9.8 built in Windows.  I'm using MSVC 7
 for the build.  I ran into the following errors from the Nasal code.


 Is there anyway I can debug this?

 I also had a problem where it said it couldn't find the moonpos.cxx
 file. I deleted that file from the solution, but I'm not sure if I'll
 run into problems when it starts linking flightgear.

 Any help would be great!

 Thank you.

 ___
 Flightgear-devel mailing list
 Flightgear-devel@flightgear.org
 http://mail.flightgear.org/mailman/listinfo/flightgear-devel
 2f585eeea02e2c79d7b1d8c4963bae2d

___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d


RE: [Flightgear-devel] MSVC build error

2005-09-05 Thread Jim Alberico
Another thought:
Struct Member Alignment, under Code Generation.

JA
 
 Seems like I had to change the project settings under Configuration
 Properties--C/C++--Advanced--Calling Convention.  The right setting is
 probably _cdecl (/Gd). You'll probably want to make sure all subprojects
 share that setting, and you'll probably want to do a clean build of
 everything after the change.
 
...
 
 Jim A
 

___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d


Re: [Flightgear-devel] MSVC build error

2005-09-05 Thread Andy Ross
bass pumped wrote:
 I'm trying to get flightgear 9.8 built in Windows.  I'm using MSVC 7
 for the build.  I ran into the following errors from the Nasal code.

 [...]

 cannot convert from 'naRef (__cdecl*)(naContext,naRef,int,naRef *)' to 
 'naCFunction'

This looks like a version skew problem.  That function
signature (with four arguments) is the one from the current CVS
version.  The 0.9.8 Nasal interpreter used a different API with
only two arguments.

It looks to me like you're compiling CVS FlightGear (or a
relatively recent snapshot) with an older SimGear.

Andy

___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d