Error running qdbus2xml

Simon Hausmann hausmann at kde.org
Thu Apr 12 13:23:38 CEST 2007


On Thursday 12 April 2007 06:54:10 Christian Ehrlicher wrote:
> Andreas Pakulat schrieb:
> > Hi,
> >
> > and my odysee is still not over :)
> >
> > Attached is the output of make, it seems qdbus2xml has a problem and the
> > resulting org.kde.KWallet.xml file is actually empty.
> >
> > Any ideas?
>
> You forgot to patch/rebuild qdbuscpp2xml after applying the patch from
> windbus (QtDBus-win32-qt43.patch).
> I sent it to qt-bugs a while ago but it was not fixed in 4.3.0beta -
> maybe we should add this patch to qt-copy?

Sorry, we fixed this by accident only for the file case, not the process case. 
We let QIODevice do the newline handling though, so to Qt 4.3 we've applied 
the attached patch.

Simon
-------------- next part --------------
--- //depot/qt/4.3/tools/qdbus/tools/qdbuscpp2xml/qdbuscpp2xml.cpp	Thu Apr 12 13:22:27 CEST 2007
+++ //depot/qt/4.3/tools/qdbus/tools/qdbuscpp2xml/qdbuscpp2xml.cpp	Thu Apr 12 13:22:27 CEST 2007

@@ -366,7 +366,7 @@
         else {
             // run moc on this file
             QProcess proc;
-            proc.start(QLibraryInfo::location(QLibraryInfo::BinariesPath) + QLatin1String("/moc"), QStringList() << QFile::decodeName(argv[i]));
+            proc.start(QLibraryInfo::location(QLibraryInfo::BinariesPath) + QLatin1String("/moc"), QStringList() << QFile::decodeName(argv[i]), QIODevice::ReadOnly | QIODevice::Text);
 
             if (!proc.waitForStarted()) {
                 fprintf(stderr, PROGRAMNAME ": could not execute moc! Aborting.\n");
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-windows/attachments/20070412/7d1ff9bc/attachment.pgp 


More information about the Kde-windows mailing list