qdbus not finding dbus headers

Ben Crawford crawford_ben at yahoo.ca
Sun Dec 3 04:51:02 CET 2006


I am trying to get things running but have run into some problems.  Everything in the Tutorial so far has worked perfectly, that is until I try to compile qdbus.  I've spent lots of time trying to find a suitable work around.  I did see that some people were having problems with this before but I the solutions that have been suggested aren't working for me.  I'm running XP and using MinGW.  Here is what I get when things go wrong.

C:\Qt\4.2.1\tools\qdbus>mingw32-make
cd src && mingw32-make -f Makefile
mingw32-make[1]: Entering directory `C:/Qt/4.2.1/tools/qdbus/src'
mingw32-make -f Makefile.Release
mingw32-make[2]: Entering directory `C:/Qt/4.2.1/tools/qdbus/src'
g++ -c -O2 -O2 -frtti -fexceptions -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_S
HARED -DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DQDBUS_MAKEDLL -DDBUS_API_S
UBJECT_TO_CHANGE -DQT_DLL -DQT_NO_DEBUG -DQT_XML_LIB -DQT_CORE_LIB -DQT_THREAD_S
UPPORT -I"C:/Qt/4.2.1/include/QtCore" -I"C:/Qt/4.2.1/include/QtCore" -I"C:/Qt/4.
2.1/include/QtXml" -I"C:/Qt/4.2.1/include/QtXml" -I"C:/Qt/4.2.1/include" -I"." -
I"C:/Qt/4.2.1/include/ActiveQt" -I"tmp" -I"." -I"..\..\..\mkspecs\win32-g++" -o
tmp\obj\release_shared\qdbusconnection.o qdbusconnection.cpp
In file included from qdbusconnection.cpp:33:
qdbusconnection_p.h:52:23: dbus/dbus.h: No such file or directory
In file included from qdbusconnection.cpp:33:
qdbusconnection_p.h:80: error: ISO C++ forbids declaration of `DBusWatch' with n
o type
qdbusconnection_p.h:80: error: expected `;' before '*' token
qdbusconnection_p.h:127: error: `DBusTimeout' was not declared in this scope
qdbusconnection_p.h:127: error: template argument 2 is invalid
qdbusconnection_p.h:127: error: ISO C++ forbids declaration of `TimeoutHash' wit
h no type
qdbusconnection_p.h:138: error: variable or field `setConnection' declared void
qdbusconnection_p.h:138: error: expected `;' before '(' token
qdbusconnection_p.h:139: error: variable or field `setServer' declared void
qdbusconnection_p.h:139: error: expected `;' before '(' token
qdbusconnection_p.h:199: error: field `error' has incomplete type
qdbusconnection_p.h:205: error: ISO C++ forbids declaration of `DBusConnection'
with no type
qdbusconnection_p.h:205: error: expected `;' before '*' token
qdbusconnection_p.h:206: error: ISO C++ forbids declaration of `DBusServer' with
 no type
qdbusconnection_p.h:206: error: expected `;' before '*' token
qdbusconnection_p.h:212: error: `DBusTimeout' was not declared in this scope
qdbusconnection_p.h:212: error: template argument 1 is invalid
qdbusconnection_p.h:212: error: ISO C++ forbids declaration of `pendingTimeouts'
 with no type
qdbusconnection_p.h:228: error: `DBusHandlerResult' does not name a type
qdbusconnection_p.h:229: error: variable or field `messageResultReceived' declar
ed void
qdbusconnection_p.h:229: error: expected `;' before '(' token
qdbusconnection_p.h: In constructor `QDBusConnectionPrivate::Watcher::Watcher()'
:
qdbusconnection_p.h:79: error: class `QDBusConnectionPrivate::Watcher' does not
have any field named `watch'
qdbusconnection.cpp: In destructor `QDBusConnectionManager::~QDBusConnectionMana
ger()':
qdbusconnection.cpp:106: error: `dbus_shutdown' undeclared (first use this funct
ion)
qdbusconnection.cpp:106: error: (Each undeclared identifier is reported only onc
e for each function it appears in.)
qdbusconnection.cpp: In static member function `static QDBusConnection QDBusConn
ection::connectToBus(QDBusConnection::BusType, const QString&)':
qdbusconnection.cpp:321: error: `DBusConnection' undeclared (first use this func
tion)
qdbusconnection.cpp:321: error: `c' undeclared (first use this function)
qdbusconnection.cpp:324: error: `DBUS_BUS_SYSTEM' undeclared (first use this fun
ction)
qdbusconnection.cpp:324: error: 'class QDBusConnectionPrivate' has no member nam
ed 'error'
qdbusconnection.cpp:324: error: `dbus_bus_get_private' undeclared (first use thi
s function)
qdbusconnection.cpp:327: error: `DBUS_BUS_SESSION' undeclared (first use this fu
nction)
qdbusconnection.cpp:327: error: 'class QDBusConnectionPrivate' has no member nam
ed 'error'
qdbusconnection.cpp:330: error: `DBUS_BUS_STARTER' undeclared (first use this fu
nction)
qdbusconnection.cpp:330: error: 'class QDBusConnectionPrivate' has no member nam
ed 'error'
qdbusconnection.cpp:333: error: 'class QDBusConnectionPrivate' has no member nam
ed 'setConnection'
qdbusconnection.cpp: In static member function `static QDBusConnection QDBusConn
ection::connectToBus(const QString&, const QString&)':
qdbusconnection.cpp:366: error: 'class QDBusConnectionPrivate' has no member nam
ed 'setConnection'
qdbusconnection.cpp:366: error: 'class QDBusConnectionPrivate' has no member nam
ed 'error'
qdbusconnection.cpp:366: error: `dbus_connection_open' undeclared (first use thi
s function)
qdbusconnection.cpp: In member function `bool QDBusConnection::send(const QDBusM
essage&) const':
qdbusconnection.cpp:406: error: 'class QDBusConnectionPrivate' has no member nam
ed 'connection'
qdbusconnection.cpp: In member function `bool QDBusConnection::callWithCallback(
const QDBusMessage&, QObject*, const char*, int) const':
qdbusconnection.cpp:436: error: 'class QDBusConnectionPrivate' has no member nam
ed 'connection'
qdbusconnection.cpp: In member function `QDBusMessage QDBusConnection::call(cons
t QDBusMessage&, QDBus::CallMode, int) const':
qdbusconnection.cpp:467: error: 'class QDBusConnectionPrivate' has no member nam
ed 'connection'
qdbusconnection.cpp: In member function `bool QDBusConnection::connect(const QSt
ring&, const QString&, const QString&, const QString&, const QString&, QObject*,
 const char*)':
qdbusconnection.cpp:530: error: 'class QDBusConnectionPrivate' has no member nam
ed 'connection'
qdbusconnection.cpp: In member function `bool QDBusConnection::disconnect(const
QString&, const QString&, const QString&, const QString&, const QString&, QObjec
t*, const char*)':
qdbusconnection.cpp:584: error: 'class QDBusConnectionPrivate' has no member nam
ed 'connection'
qdbusconnection.cpp: In member function `bool QDBusConnection::registerObject(co
nst QString&, QObject*, QFlags<QDBusConnection::RegisterOption>)':
qdbusconnection.cpp:641: error: 'class QDBusConnectionPrivate' has no member nam
ed 'connection'
qdbusconnection.cpp: In member function `void QDBusConnection::unregisterObject(
const QString&, QDBusConnection::UnregisterMode)':
qdbusconnection.cpp:709: error: 'class QDBusConnectionPrivate' has no member nam
ed 'connection'
qdbusconnection.cpp: In member function `QObject* QDBusConnection::objectRegiste
redAt(const QString&) const':
qdbusconnection.cpp:751: error: 'class QDBusConnectionPrivate' has no member nam
ed 'connection'
qdbusconnection.cpp: In member function `bool QDBusConnection::isConnected() con
st':
qdbusconnection.cpp:797: error: 'class QDBusConnectionPrivate' has no member nam
ed 'connection'
qdbusconnection.cpp:797: error: 'class QDBusConnectionPrivate' has no member nam
ed 'connection'
qdbusconnection.cpp:797: error: `dbus_connection_get_is_connected' undeclared (f
irst use this function)
mingw32-make[2]: *** [tmp\obj\release_shared\qdbusconnection.o] Error 1
mingw32-make[2]: Leaving directory `C:/Qt/4.2.1/tools/qdbus/src'
mingw32-make[1]: *** [release] Error 2
mingw32-make[1]: Leaving directory `C:/Qt/4.2.1/tools/qdbus/src'
mingw32-make: *** [sub-src-make_default-ordered] Error 2


Thanks for any help.
Ben



__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/kde-windows/attachments/20061202/77e3ebc6/attachment.html 


More information about the Kde-windows mailing list