paparazzi-devel
[Top][All Lists]
Advanced

[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: Wed, 7 Dec 2011 07:40:15 +1030

Eduard

I am surprised you find this does not work.

The structure packing would naturally be pack(8) when built on linux with a 64 
bit compiler. ie you dont need to tell it to do any special alignment because 
it will be aligned on 8 byte boundaries anyway otherwise integers (which take 8 
bytes in 64bit)  would not be aligned in memory.

Eric 



On 07/12/2011, at 1:05 AM, Eduard Iten wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Am 06.12.2011 14:35, schrieb Eric Parsonage:
>> Eduard
>> 
>> I pushed a change that should fix this problem on 64 bit linux.
>> 
>> It would be great if you could test it for me on 64 bit linux. I
>> have already tested it on OSX
> Hi Eric,
> 
> no, it doe's not work on 64bit Linux, I just tested it. It works with
> paparazzi on 64bit linux and fgfs in a 32bit virtual machine.
> I think this problem is not so easy to resolve, at least not if you
> got a multi computer setup. Look at the lines here, also in your change:
> 
> index b5515c8..0faf811 100644
> - --- a/sw/simulator/flight_gear.h
> +++ b/sw/simulator/flight_gear.h
> @@ -211,7 +211,9 @@ struct FGNetMiniFDM {
> #define FG_NET_GUI_VERSION 7
> #define FG_NET_GUI_MAX_TANKS 4
> 
> - -#ifdef __x86_64__
> +// FIXME: Flightgear on OSX is still 32 bit get rid
> +// off these pragmas when it goes to 64 bit.
> +#ifdef __x86_64__ && __APPLE__
> #pragma pack(push)
> #pragma pack(4)
> #endif
> @@ -249,7 +251,7 @@ struct FGNetGUI {
>   float course_deviation_deg; // degrees off target course
>   float gs_deviation_deg;     // degrees off target glide slope
> };
> - -#ifdef __x86_64__
> +#ifdef __x86_64__ && __APPLE__
> #pragma pack(push)
> #pragma pack(pop)
> #endif
> 
> For me on 64bit oneiric with both paparazzi and fgfs being 64bit, the
> pack(4) have to be pack(8) to work (of course, you also have to drop
> the __APPLE__ part.
> 
> Regards, Edi
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
> 
> iQEcBAEBAgAGBQJO3ignAAoJELogHzrHo8cKUj0H+wbGdmkEqjjRVhnk7gEQs7nn
> MM5XvXL9FM2tSJ4LJMsK+EbrT5YyHPYVJhLklzLP49BBT8u33q6H8FR5e51bkyCl
> ERNA3eDgEJaadslV+qBmzGG+rW/V7+LEFMa/izwlANWxITevHg18B6vDS/Z9EbC4
> Ot8a54yJAwEFc2/1IPz6bwMalO8QFJz+INxPH+ThceGY0K+NaReIBVbo83duXHf5
> bxCmEh1XemFEo1BDAiYb3YuF2lCLJvTAcuhEMPbfp/lo1/IzdCfYTwSUIUkIQ72C
> SAomU4hXr4Yq8sseBnttXyqdvnwOAvr8iClgEZGaNsX6hdACCXQk9ilIeSA98qs=
> =E6Y+
> -----END PGP SIGNATURE-----
> 
> _______________________________________________
> Paparazzi-devel mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/paparazzi-devel




reply via email to

[Prev in Thread] Current Thread [Next in Thread]