qt api fails to compile
Christopher Blauvelt
cblauvelt at gmail.com
Sat May 6 08:04:15 PDT 2006
I've had a problem trying to compile the dbus-qt bindings. I get the
following error message:
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I.. -DQT_SHARED
-I/home/kde4/qt-unstable/include
-I/home/kde4/qt-unstable/include/QtCore
-I/home/kde4/qt-unstable/include/QtXml -DDBUS_COMPILATION
-DDBUS_API_SUBJECT_TO_CHANGE=1 -g -O2 -MT qdbusbus.lo -MD -MP -MF
.deps/qdbusbus.Tpo -c qdbusbus.cpp -fPIC -DPIC -o .libs/qdbusbus.o
In file included from qdbusabstractinterface.h:34,
from qdbusbus.h:37,
from qdbusbus.cpp:32:
/home/kde4/qt-unstable/include/QtCore/qglobal.h: In instantiation of
`QForeachContainer<const QVariantList&>':
qdbustypehelper_p.h:138: instantiated from here
/home/kde4/qt-unstable/include/QtCore/qglobal.h:1586: error: forming
reference to reference type `const QVariantList&'
/home/kde4/qt-unstable/include/QtCore/qglobal.h:1589: error: `const
QVariantList&' is not a class, struct, or union type
/home/kde4/qt-unstable/include/QtCore/qglobal.h:1589: error: `const
QVariantList&' is not a class, struct, or union type
qdbustypehelper_p.h: In static member function `static QList<T>
QDBusTypeHelper<T>::fromVariantList(const QVariantList&)':
qdbustypehelper_p.h:138: error: 'class QForeachContainer<const
QVariantList&>' has no member named 'i'
qdbustypehelper_p.h:138: error: 'class QForeachContainer<const
QVariantList&>' has no member named 'e'
qdbustypehelper_p.h:138: error: 'class QForeachContainer<const
QVariantList&>' has no member named 'i'
qdbustypehelper_p.h:138: error: 'class QForeachContainer<const
QVariantList&>' has no member named 'i'
I noticed that this is similar to a previous thread mentioned earlier
this month but a solution was not reached. Additionally,
qdbustypehelper_p.h only has 73 lines so maybe line 138 is the output
from the precompiler.
I'm using the qt version 4.1.3 from kde-svn.
Chris
More information about the dbus
mailing list