Re: D-Bus on Windows 10
Igor Plastov <[email protected]>
| Newsgroups | gmane.comp.freedesktop.dbus |
|---|---|
| Message-ID | <CAGTgnLf_eMirgN95gxZCfZ4CZo--yzpspELzvAyyzqqNw9hX3A@mail.gmail.com> |
Hi Nikolaus, Some time ago, I had a need to add IPC control to one of my Qt-applications, I selected D-Bus. I had made some investigation for Qt5.5 under Windows10 - no one of Qt D-Bus examples "from the box" did not work. After that I switched to D-Bus implementation from Glib. It works ok. I used one of an examples for glib. I have added a separate thread where all D-Bus handlers are working. The main issue was to include glib- libs, because they are using variable name "signals" (which is used in Qt as a keyword). I use workaround like this: #ifndef MAINWINDOW_H #define MAINWINDOW_H #include <QMainWindow> #include <QHostAddress> #include<QMenuBar> #include<QPushButton> #include<QtGui> #include<QByteArray> #include <QTextCodec> #include <QString> #undef signals // <- Workaround. #include <glib.h> #include <gio.h> ....................................................... Best regards, Igor ср, 10 мар. 2021 г. в 16:58, Nikolaos Sourligas <[email protected]>: > Hi all, > > I am currently working on a cross platform Qt project and I would like to > use the D-Bus IPC mechanism. On Linux it works nice as expected but I am > not sure how it works on Windows 10. > > So, I started looking around for some information on how to use D-Bus on > Windows but I didn't find any useful information. D-Bus Windows port > working as stable as in Linux ? How can I manually compile dbus source code > on Windows from this official repository ? > > https://gitlab.freedesktop.org/dbus/dbus > > I will appreciate any guidance and instructions how to make dbus work on > Windows. > > Thanks. > _______________________________________________ > dbus mailing list > [email protected] > https://lists.freedesktop.org/mailman/listinfo/dbus > _______________________________________________ dbus mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dbus