[Flightgear-devel] Re: type conversion problem for amd64
From: Erik Hofman > George Patterson wrote: > > Tonight I "cvs checkout" the simgear sources tonight from cvs to > > recompile FlightGear. I was getting the following error. (Also got the > > same error in swap_test.* but worked around that problem by remove the > > file and references to it. > Could you test the latest version in CVS, there was some restructuring > of this code and I think this is solved now. Erik, it works fine for me under Debian/Sarge AMD64. George, what toolchain are you using ? $ gcc --version gcc (GCC) 3.4.4 20050314 (prerelease) (Debian 3.4.3-13) $ uname -a Linux host 2.6.13 #1 Sun Aug 28 19:57:26 PDT 2005 x86_64 GNU/Linux ___ Flightgear-devel mailing list Flightgear-devel@flightgear.org http://mail.flightgear.org/mailman/listinfo/flightgear-devel 2f585eeea02e2c79d7b1d8c4963bae2d
[Flightgear-devel] OT: Simgear and SGFile usage in FGFS
Unless I'm missing something, someone has committed bad code to CVS. The "ch" variable on line 377 is of class SGIOChannel, which doesn't support the eof() method, and not of class SGFILE, which does. ~/fs/source/utils/GPSsmooth$ make if g++ -DHAVE_CONFIG_H -I. -I. -I../../src/Include -I../../src -I/usr/X11R6/include -I/usr/local//include -g -O2 -D_REENTRANT -MT MIDG-II.o -MD -MP -MF ".deps/MIDG-II.Tpo" -c -o MIDG-II.o MIDG-II.cxx; \ then mv -f ".deps/MIDG-II.Tpo" ".deps/MIDG-II.Po"; else rm -f ".deps/MIDG-II.Tpo"; exit 1; fi MIDG-II.cxx: In member function `int MIDGTrack::next_message(SGIOChannel*, MIDGpos*, MIDGatt*)': MIDG-II.cxx:377: error: `eof' undeclared (first use this function) MIDG-II.cxx:377: error: (Each undeclared identifier is reported only once for each function it appears in.) make: *** [MIDG-II.o] Error 1 ___ Flightgear-devel mailing list Flightgear-devel@flightgear.org http://mail.flightgear.org/mailman/listinfo/flightgear-devel 2f585eeea02e2c79d7b1d8c4963bae2d
Re: [Flightgear-devel] 2 Questions: Terrain data? Flight Sim 200x aircraft?
Mike Kopack wrote: Hey gang, I'm needing to integrate with a 3rd party planning system that does terrain avoidance routing. I do not know yet what format their system needs the terrain data in, but I was hoping somebody could point me to the original terrain data location that was used to create the terrain models for Flight Gear. Hopefully there will be an easy way to convert between the two so the terrain in my FG demonstration will match up with where their planner things hills and water and such are. FlightGear uses SRTM data: ftp://e0mss21u.ecs.nasa.gov/srtm/ As far as I know, this is the best most complete terrain data set that is freely available. Second, while investigating some stuff for another project, I ran across a reference where somebody used a MS Flight Sim aircraft model for a Predator UAV and used it on Flight Gear. Unfortunately, it didn't explain how they did it. How would I go about doing this (since my project is to control a UAV, it would be a lot more credible to show the customer a Predator on the screen than a Piper Cub!) We have quite a few skilled 3d modelers here. If you can't find an existing model to adapt, perhaps someone here would be willing to build you one for a nominal fee? Curt. -- Curtis Olsonhttp://www.flightgear.org/~curt HumanFIRST Program http://www.humanfirst.umn.edu/ FlightGear Project http://www.flightgear.org Unique text:2f585eeea02e2c79d7b1d8c4963bae2d ___ Flightgear-devel mailing list Flightgear-devel@flightgear.org http://mail.flightgear.org/mailman/listinfo/flightgear-devel 2f585eeea02e2c79d7b1d8c4963bae2d
[Flightgear-devel] 2 Questions: Terrain data? Flight Sim 200x aircraft?
Hey gang, I'm needing to integrate with a 3rd party planning system that does terrain avoidance routing. I do not know yet what format their system needs the terrain data in, but I was hoping somebody could point me to the original terrain data location that was used to create the terrain models for Flight Gear. Hopefully there will be an easy way to convert between the two so the terrain in my FG demonstration will match up with where their planner things hills and water and such are. Second, while investigating some stuff for another project, I ran across a reference where somebody used a MS Flight Sim aircraft model for a Predator UAV and used it on Flight Gear. Unfortunately, it didn't explain how they did it. How would I go about doing this (since my project is to control a UAV, it would be a lot more credible to show the customer a Predator on the screen than a Piper Cub!) Thanks! --Mike Mike Kopack ISX Corporation 1800 Parkway Place, Suite 900 Marietta, GA 30067 678-581-2025 ___ Flightgear-devel mailing list Flightgear-devel@flightgear.org http://mail.flightgear.org/mailman/listinfo/flightgear-devel 2f585eeea02e2c79d7b1d8c4963bae2d
Re: [Flightgear-devel] type conversion problem for amd64
George Patterson wrote: Could you test the latest version in CVS, there was some restructuring of this code and I think this is solved now. Erik, I hate to to say it but "No cigar", same problem, same errors :-/ I'm not quiet sure what changed. George Patterson In simgear/source/simgear/misc/stdint.hhx: old --- #if (SIZEOF_LONG_INT == 8) inline void sgEndianSwap(unsigned long int *x) { *x = sg_bswap_64(*x); } #else inline void sgEndianSwap(unsigned long long *x) { *x = sg_bswap_64(*x); } #endif --- old --- should be changed to --- new --- inline void sgEndianSwap(uint64_t *x) { *x = sg_bswap_64(*x); } --- new --- the same applies to: inline void sgEndianSwap(unsigned short *x) { ulEndianSwap(x); } inline void sgEndianSwap(unsigned int *x) { ulEndianSwap(x); } which should be: inline void sgEndianSwap(uint16_t *x) { ulEndianSwap(x); } inline void sgEndianSwap(uint32_t *x) { ulEndianSwap(x); } regards, Oliver ___ Flightgear-devel mailing list Flightgear-devel@flightgear.org http://mail.flightgear.org/mailman/listinfo/flightgear-devel 2f585eeea02e2c79d7b1d8c4963bae2d
Re: [Flightgear-devel] type conversion problem for amd64
On Fri, 2005-09-23 at 10:16 +0200, Erik Hofman wrote: > George Patterson wrote: > > Hi All, > > > > Tonight I "cvs checkout" the simgear sources tonight from cvs to > > recompile FlightGear. I was getting the following error. (Also got the > > same error in swap_test.* but worked around that problem by remove the > > file and references to it. > > Could you test the latest version in CVS, there was some restructuring > of this code and I think this is solved now. Erik, I hate to to say it but "No cigar", same problem, same errors :-/ I'm not quiet sure what changed. George Patterson ___ Flightgear-devel mailing list Flightgear-devel@flightgear.org http://mail.flightgear.org/mailman/listinfo/flightgear-devel 2f585eeea02e2c79d7b1d8c4963bae2d
Re: [Flightgear-devel] type conversion problem for amd64
George Patterson wrote: Hi All, Tonight I "cvs checkout" the simgear sources tonight from cvs to recompile FlightGear. I was getting the following error. (Also got the same error in swap_test.* but worked around that problem by remove the file and references to it. Could you test the latest version in CVS, there was some restructuring of this code and I think this is solved now. Erik ___ Flightgear-devel mailing list Flightgear-devel@flightgear.org http://mail.flightgear.org/mailman/listinfo/flightgear-devel 2f585eeea02e2c79d7b1d8c4963bae2d