Qt D-bus Error , How to use Qt D-Bus under windows ?
-
@Alex42 Have you tried this windows dbus port from freedesktop.org?
Never tried it. Might be better than that archived dbus code you found on google. -
@Alex42 Have you tried this windows dbus port from freedesktop.org?
Never tried it. Might be better than that archived dbus code you found on google. -
@idlefrog yes i tried it, but i don't found more explanation about to run dbus-daemon on windows
-
@Alex42 I strongly believe you'd have it done faster by setting up interprocess communication using TCP socket. But then again, it is Windows, so who knows.
I agree with @artwaw. Check out the fortune example client and server.
-
I agree with @artwaw. Check out the fortune example client and server.
-
@mchinand, As you see, the problem it's not in the TCP/IP ( local server / socket ,shared memory ,QProcess class, QT Network ) , the problem it's how to run d-bus daemon on the windows , ( or how to use Qt D-Bus under Windows )
@Alex42 said in Qt D-bus Error , How to use Qt D-Bus under windows ?:
the problem it's how to run d-bus daemon on the windows , ( or how to use Qt D-Bus under Windows )
This is outside of Qt. I suggest you also search on the Internet.
-
@Alex42 said in Qt D-bus Error , How to use Qt D-Bus under windows ?:
how to use Qt D-bus on windows ?
In your main.cpp, before any other Qt code, paste this:
int main(int argc, char *argv[]) { #ifdef Q_OS_WINDOWS // This variable comes from dbus-env.bat qputenv("DBUS_SESSION_BUS_ADDRESS", "autolaunch:"); #endif
If you also have all the DBus files, DLLs etc. in the same directory as your .exe, it will work.