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: Eduard Iten
Subject: Re: [Paparazzi-devel] FlightGear not working
Date: Tue, 06 Dec 2011 15:35:19 +0100
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:8.0) Gecko/20111105 Thunderbird/8.0

-----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-----

Attachment: smime.p7s
Description: S/MIME Kryptografische Unterschrift


reply via email to

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