can't build qdbus from qt-copy

Bill Hoffman bill.hoffman at kitware.com
Fri Jul 14 14:26:11 CEST 2006


I did an out of source build for qdbus and can not get qdbus to build.


First problem:

> kitware at dash17:~/Software/kde-qt-copy/qt-copy/tools/qdbus/tools$
> ~/Dashboards/Support/qt-copy-install/bin/qmake 
> kitware at dash17:~/Software/kde-qt-copy/qt-copy/tools/qdbus/tools$ make
> /home/kitware/Dashboards/Support/qt-copy-install/bin/qmake dbus.pro -unix
> -o Makefile.dbus
> make -f Makefile.dbus 
> make[1]: Entering directory
> `/home/kitware/Software/kde-qt-copy/qt-copy/tools/qdbus/tools'
> g++ -c -pipe -g -Wall -W -D_REENTRANT  -DQT_XML_LIB -DQT_CORE_LIB
> -DQT_SHARED -I/projects/Dashboards/Support/qt-copy-install/mkspecs/linux-g++ -I.
> -I/projects/Dashboards/Support/qt-copy-install/include/QtCore
> -I/projects/Dashboards/Support/qt-copy-install/include/QtXml
> -I/projects/Dashboards/Support/qt-copy-install/include
> -I/home/kitware/Dashboards/Support/qt-copy-install/include/QtDBus -I. -I. -o dbus.o dbus.cpp
> dbus.cpp:32:18: error: QtDBus: No such file or directory
> dbus.cpp:33:33: error: private/qdbusutil_p.h: No such file or directory
> dbus.cpp:35: error: 'QDBusConnection' does not name a type
> dbus.cpp: In function 'void listObjects(const QString&, const QString&)':
> dbus.cpp:39: error: 'QDBusInterface' was not declared in this scope
> dbus.cpp:39: error: expected `;' before 'iface'
> ....

So, I added  -I/usr/lib/dbus-1.0/include/ to the Makefile by hand as qmake did
not seem to do it for me in an out of source context.


Next I ran into this:


g++ -Wl,-rpath,/home/kitware/Dashboards/Support/qt-copy-install/lib -Wl,-rpath,/home/kitware/Dashboards/Support/qt-copy-install/lib -shared -Wl,-soname,libQtDBus_debug.so.4 -o libQtDBus_debug.so.4.2.0 tmp/debug-shared/qdbusconnection.o tmp/debug-shared/qdbusconnectioninterface.o tmp/debug-shared/qdbuserror.o tmp/debug-shared/qdbusintegrator.o tmp/debug-shared/qdbusmessage.o tmp/debug-shared/qdbusserver.o tmp/debug-shared/qdbusabstractinterface.o tmp/debug-shared/qdbusinterface.o tmp/debug-shared/qdbusxmlparser.o tmp/debug-shared/qdbusutil.o tmp/debug-shared/qdbusintrospection.o tmp/debug-shared/qdbusabstractadaptor.o tmp/debug-shared/qdbusthread.o tmp/debug-shared/qdbusinternalfilters.o tmp/debug-shared/qdbusmetaobject.o tmp/debug-shared/qdbusxmlgenerator.o tmp/debug-shared/qdbusmisc.o tmp/debug-shared/qdbusargument.o tmp/debug-shared/qdbusreply.o tmp/debug-shared/qdbusmetatype.o tmp/debug-shared/qdbusextratypes.o tmp/debug-shared/moc_qdbusconnectioninterface.o tmp/debug-shared/mo
c_qdbusserver.o tmp/debug-shared/moc_qdbusabstractinterface.o tmp/debug-shared/moc_qdbusabstractadaptor.o tmp/debug-shared/moc_qdbusconnection_p.o   -L/home/kitware/Software/kde-qt-copy/qt-copy-build/lib ws2_32.lib advapi32.lib netapi32.lib -lQtXml_debug -L/home/kitware/Software/kde-qt-copy/qt-copy-build/lib -lQtCore_debug -lz -lm -lglib-2.0 -ldl -lpthread 
g++: ws2_32.lib: No such file or directory
g++: advapi32.lib: No such file or directory
g++: netapi32.lib: No such file or directory

It seems that it is trying to link to windows libraries on unix.

I think the two odd things I am doing are:

1. out of source build of qt-copy

2. I am not installing into the default directory, as I do not
want to use root to install.

I am now stuck here:

g++ -Wl,-rpath,/home/kitware/Dashboards/Support/qt-copy-install/lib -Wl,-rpath,/home/kitware/Dashboards/Support/qt-copy-install/lib -o ../../../bin/dbusxml2cpp .obj/debug-shared/dbusxml2cpp.o    -L/home/kitware/Software/kde-qt-copy/qt-copy-build/lib -lQtDBus_debug -L/home/kitware/Software/kde-qt-copy/qt-copy-build/lib -lQtXml_debug -lQtCore_debug -lz -lm -lglib-2.0 -ldl -lpthread
/home/kitware/Software/kde-qt-copy/qt-copy-build/lib/libQtDBus_debug.so: undefined reference to `dbus_message_iter_get_fixed_array'
/home/kitware/Software/kde-qt-copy/qt-copy-build/lib/libQtDBus_debug.so: undefined reference to `dbus_connection_send_with_reply'
/home/kitware/Software/kde-qt-copy/qt-copy-build/lib/libQtDBus_debug.so: undefined reference to `dbus_message_iter_get_element_type'
/home/kitware/Software/kde-qt-copy/qt-copy-build/lib/libQtDBus_debug.so: undefined reference to `dbus_message_get_type'
/home/kitware/Software/kde-qt-copy/qt-copy-build/lib/libQtDBus_debug.so: undefined reference to `dbus_server_set_timeout_functions'
/home/kitware/Software/kde-qt-copy/qt-copy-build/lib/libQtDBus_debug.so: undefined reference to `dbus_pending_call_set_notify'
/home/kitware/Software/kde-qt-copy/qt-copy-build/lib/libQtDBus_debug.so: undefined reference to `dbus_message_ref'

Are there instructions for building qdbus/qt-copy that work?  Do I have to use an
in-source build?

Thanks.

-Bill



More information about the Kde-buildsystem mailing list