[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Paparazzi-devel] FlightGear not working
From: |
Eric Parsonage |
Subject: |
Re: [Paparazzi-devel] FlightGear not working |
Date: |
Tue, 6 Dec 2011 21:02:47 +1030 |
Hi Felix, Andreas
I put the alignment pragma in the code for OSX which is 64 bit. But the
official flightgear distribution for OSX is 32 bit. I needed to force the
structure to be aligned correctly for the 32 bit flight gear to be able to
decode the structure correctly.
Now you guys are moving to 64 bit linux and have flightgear built 64 bit then
the pragma needs putting inside some ifdefs that check for the operating
system being OSX. Hopefully eventually flightgear will be built 64 bit for osx.
Eric
On 06/12/2011, at 8:57 PM, Andreas Gaeb wrote:
> Am 05.12.2011 18:51, schrieb Felix Ruess:
>> I have no problems on Ubuntu Oneiric (32bit) and with flightgear
>> package 2.0.0-4ubuntu1.
>> But use the native-gui option like Stephen pointed out, and like it's
>> documented on the wiki.
>>
>> Maybe this is an issue on 64bit?
> Very likely, probably caused by different alignment of the members of
> the FGNetGui structure in sw/simulator/flight_gear.h. There is a #pragma
> pack(4) around the structure in Paparazzi, which is correct if you want
> to send to a 32bit FlightGear. For a 64bit FlightGear, you need to use
> #pragma pack(8), I suppose. Best of all would be to use #pragma pack(1)
> on both programs and any architecture, but that is only possible if you
> recompile FlightGear.
>
> Best regards,
> Andreas
>
> _______________________________________________
> Paparazzi-devel mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/paparazzi-devel
- [Paparazzi-devel] FlightGear not working, (continued)
- [Paparazzi-devel] FlightGear not working, Eduard Iten, 2011/12/04
- Re: [Paparazzi-devel] FlightGear not working, Stephen Dwyer, 2011/12/04
- Re: [Paparazzi-devel] FlightGear not working, Eduard Iten, 2011/12/05
- Re: [Paparazzi-devel] FlightGear not working, Chris Gough, 2011/12/05
- Re: [Paparazzi-devel] FlightGear not working, Eduard Iten, 2011/12/06
- Re: [Paparazzi-devel] FlightGear not working, Tilman Baumann, 2011/12/05
- Re: [Paparazzi-devel] FlightGear not working, Eduard Iten, 2011/12/05
- Re: [Paparazzi-devel] FlightGear not working, Felix Ruess, 2011/12/05
- Re: [Paparazzi-devel] FlightGear not working, Eduard Iten, 2011/12/06
- Re: [Paparazzi-devel] FlightGear not working, Andreas Gaeb, 2011/12/06
- Re: [Paparazzi-devel] FlightGear not working,
Eric Parsonage <=
- Re: [Paparazzi-devel] FlightGear not working, Eduard Iten, 2011/12/06
- Re: [Paparazzi-devel] FlightGear not working, Eric Parsonage, 2011/12/06
- Re: [Paparazzi-devel] FlightGear not working, Eduard Iten, 2011/12/06
- Re: [Paparazzi-devel] FlightGear not working, Felix Ruess, 2011/12/06
- Re: [Paparazzi-devel] FlightGear not working, Eduard Iten, 2011/12/06
- Re: [Paparazzi-devel] FlightGear not working, Eric Parsonage, 2011/12/06
- Re: [Paparazzi-devel] FlightGear not working, Eduard Iten, 2011/12/07
- Re: [Paparazzi-devel] FlightGear not working, Eric Parsonage, 2011/12/07
- Re: [Paparazzi-devel] FlightGear not working, Eduard Iten, 2011/12/07
- Re: [Paparazzi-devel] FlightGear not working, Eric Parsonage, 2011/12/07