QtDbus windows Qt 5.2.1 MinGW dbus-1.8.0
-
hello,
src library assembled with no problem, copy the source files to the appropriate folders, creator pulled syntax in the project added QT + = dbus, but when you compile error "Project ERROR: Unknown module (s) in QT: dbus" perhaps adding module need to prescribe something? -
Hi and welcome to devnet,
IIRC, the dbus module is not built on windows by default, you have to do it yourself
-
thanks for the reply.
I know that is not built for windows
I have built QtDbus
and a copy Qt5DBus.dl Qt5DBusd.dl in / bin
libQt5DBus.a libQt5DBusd.a Qt5DBus.prl Qt5DBusd.prl in / Lieb
and other folders and files ...but when you compile your example, I get Project ERROR: Unknown module (s) in QT: dbus
-
Don't copy things like that, do a mingw32-make install
-
Thank you very much, it really helped.
compilation of examples
there is another problem with QT_NO_DBUS -
[quote author="red_spider" date="1393496113"]
compilation of examples
there is another problem with QT_NO_DBUS [/quote]What do you mean ?
-
problem with #ifndef QT_NO_DBUS in src....
I added to the project DEFINES -= QT_NO_DBUS but this does not solve the problem@class LibInterfaceAdapter : public QDBusAbstractAdaptor
{
Q_OBJECT
@
.......
error: expected class-name before '{' token -
It means that Qt was build with QT_NO_DBUS, so you will need to rebuild Qt with dbus enabled
-
thank you very much for your help,all projects build successful,
but ... dbus daemon will not start and no connections -
For that, I would recommend to ask the dbus developers
-
@red_spider Can you please tell me how can I build DBus module for windows?
-
IIRC, the latest version (Qt 5.4) should have the module pre-built, did you check ?
-
@SGaist Actually I want it for WinRT specifically. The binary which I obtained from [1] does not contain dbus module. So, I tried building Qt 5.4.1 for WinRT and DBus support is not enabled in the output. I don't know how to enable it. Any parameter to be passed while configuring?
[1] http://download.qt.io/official_releases/qt/5.4/5.4.1/qt-opensource-windows-x86-winrt-5.4.1.exe
Thanks -
This post is deleted!
-
@SGaist said:
IIRC, the latest version (Qt 5.4) should have the module pre-built, did you check ?
Hello,
I am using the latest version 5.4 and i am still getting the following error when trying to load one of the dbus examples..."Project ERROR: Unknown module(s) in QT: dbus"
I have been seeing other people say that we still have to build it ourselves for 5.4, but i'm also seeing a lot of mixed comments on dbus in general. For a brief time now I've been having issues trying to resolve this problem, so i was wondering if anyone could point me in the right direction for getting the dbus module to work on a Win7 64bit machine
-
Did you install DBus first ?
-
No i did not, i thought QtDBus.lib was built into Qt 5x
Do you know how i would go about doing that on a windows machine at the DBus website they say the windows port is merged into the freedesktop dbus development branch but the link to their github is broken and the only available downloads that i can see are for linux.