Building QtDBus

Stromek stromek at realtime.sk
Sun Oct 22 20:00:08 CEST 2006


On Sun, Oct 22, 2006 at 06:27:14PM +0200, Christian Ehrlicher wrote:
> Stromek schrieb:
> > Hi all,
> > 
> > I have a comment regarding QtDBus building. At
> > <http://www.kdelibs.com/wiki/index.php/QtDBus> there is stated, check
> > out qt-copy/tools/qdbus from kdesvn, set
> > environment
> > variable DBUSDIR, call qmake and then build. However, I do not see any
> > code in *.pro files that should take this into account and indeed
> > "mingw32-make" says that dbus/dbus.h cannot be find. (Could someone
> > post a better procedure for building qdbus or maybe help me to write one?)
> > 
> > I can overcome this by editing generated makefiles and adding path for
> > dbus includes and libs. Unfortunately in this case, building qdbus fails with lots of
> > linking errors, see attached log file. I do not have a clue why those
> > references are missing. I get the same errors even if I compile dbus by
> > myself. Ideas anyone?
> > 
> > I am not a developer of
> > kdelibs and relating stuff but I'm enthusiast:) who wants to help
> > speedup
> > kdelibs on windows. The site kdelibs.com is great place with information on how
> > to build the whole beast but I think the information is little
> > bit messy and should be cleaned up to have better written procedure how to
> > build it.
> > 
> You need windbus from sf.net/projects/windbus (check out svn, apply
> windows-patch.diff & compile with cmake, install, apply
> qt-qdbus-win32.patch to qt sources, change path if it's not c:/Programme
> in src.pro and compile qdbus)

Thanks for your answer. I was using windbus both precompiled and
also compiled by myself using mingw. If compiling manually,
windows-patch.diff is applied automatically (I checked it and it was
applied). So, I was doing exactly what you have written except of
applying qt-qdbus-win32.patch.

Regarding qt-qdbus-win32.patch, it is little bit screwed because it
patches all files but qdbus.pro (there is incorrect path,
tools/qdbus/qdbus.pro instead of tools/qdbus/tools/qdbus/qdbus.pro).
This patch "just" modifies *.pro files to
reference dbus includes and libs, still not accepting environment
variable DBUSDIR. It does not solve those "undefined reference to
_RTC_CheckEsp" errors during linking.

Btw. this patching step should be stated on wiki or maybe this could be
committed to kdesvn qt-copy/tools/qdbus.

Still, I'll try to overcome those linking problems. Anyway, if someone has any
suggestions they are welcome :-)

-- 
Stromek



More information about the Kde-windows mailing list