[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freedesktop-dbus
Subject:    [D-Bus] cross-compiling qt bindings of dbus 0.62
From:       Roberto Farina <farina () cefriel ! it>
Date:       2006-06-28 14:01:18
Message-ID: 44A28BAE.301 () cefriel ! it
[Download RAW message or body]

Hi everybody,
trying to cross compile dbus 0.62 for a ppc environment with a gcc 3.3.3
  the compilation fails on qt/src/qdbusbus.moc.
attached a patch that fix the problem.

A couple of issues when cross-compiling:

during configure, the following tests fails:
posix getpwnam_r
abstract socket namespace
and I needed to rce their result in configure.in in order to overcome
the problem.
the same way, an error is issued entering the bus directory: it seems it
links against the system expat library, not the crosscompiled one.

Best regards
Roberto

-- 
Roberto Farina
CEFRIEL ­ Politecnico di Milano
Via Fucini, 2 · 20133 Milano (Italy)
p. +39 02 23954 345 - f. +39 02 23954 254
e. roberto.farina@cefriel.it - w. www.cefriel.it

["qdbusbus.patch" (text/x-patch)]

--- qdbusbus.moc	2006-06-28 14:40:34.000000000 +0200
+++ qdbusbus.moc	2006-06-28 14:44:39.000000000 +0200
@@ -105,8 +105,8 @@
         case 5: nameOwnerChanged(*reinterpret_cast< \
QString*>(_a[1]),*reinterpret_cast< QString*>(_a[2]),*reinterpret_cast< \
QString*>(_a[3])); break;  case 6: { QDBusReply<QString> _r = hello();
             if (_a[0]) *reinterpret_cast< QDBusReply<QString>*>(_a[0]) = _r; }  \
                break;
-        case 7: { QDBusReply<> _r = reloadConfig();
-            if (_a[0]) *reinterpret_cast< QDBusReply<>*>(_a[0]) = _r; }  break;
+        case 7: { QDBusReply<void> _r = reloadConfig();
+            if (_a[0]) *reinterpret_cast< QDBusReply<void>*>(_a[0]) = _r; }  break;
         case 8: { QDBusReply<QStringList> _r = listNames();
             if (_a[0]) *reinterpret_cast< QDBusReply<QStringList>*>(_a[0]) = _r; }  \
                break;
         case 9: { QDBusReply<bool> _r = nameHasOwner(*reinterpret_cast< \
QString*>(_a[1])); @@ -121,10 +121,10 @@
             if (_a[0]) *reinterpret_cast< QDBusReply<RequestNameReply>*>(_a[0]) = \
                _r; }  break;
         case 14: { QDBusReply<QStringList> _r = listQueuedOwners(*reinterpret_cast< \
                QString*>(_a[1]));
             if (_a[0]) *reinterpret_cast< QDBusReply<QStringList>*>(_a[0]) = _r; }  \
                break;
-        case 15: { QDBusReply<> _r = addMatch(*reinterpret_cast< QString*>(_a[1]));
-            if (_a[0]) *reinterpret_cast< QDBusReply<>*>(_a[0]) = _r; }  break;
-        case 16: { QDBusReply<> _r = removeMatch(*reinterpret_cast< \
                QString*>(_a[1]));
-            if (_a[0]) *reinterpret_cast< QDBusReply<>*>(_a[0]) = _r; }  break;
+        case 15: { QDBusReply<void> _r = addMatch(*reinterpret_cast< \
QString*>(_a[1])); +            if (_a[0]) *reinterpret_cast< \
QDBusReply<void>*>(_a[0]) = _r; }  break; +        case 16: { QDBusReply<void> _r = \
removeMatch(*reinterpret_cast< QString*>(_a[1])); +            if (_a[0]) \
                *reinterpret_cast< QDBusReply<void>*>(_a[0]) = _r; }  break;
         case 17: { QDBusReply<QByteArray> _r = \
                connectionSELinuxSecurityContext(*reinterpret_cast< \
                QString*>(_a[1]));
             if (_a[0]) *reinterpret_cast< QDBusReply<QByteArray>*>(_a[0]) = _r; }  \
                break;
         case 18: { QDBusReply<uint> _r = connectionUnixProcessID(*reinterpret_cast< \
QString*>(_a[1]));



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic