Thanks for the demo -- it was helpful getting started with Qt + D-Bus. On my systems, it didn't work out of the box...
On Ubuntu 23, there was one missing build dependency: $> sudo apt-get install libgl1-mesa-dev
On Windows 10:
-
Install the expat library: C:\...\> vcpkg install expat
-
Get D-Bus source from https://dbus.freedesktop.org/releases/dbus/
-
Build D-Bus starting with:
C:\...\> cmake -B .\build -S . -DCMAKE_TOOLCHAIN_FILE=<path to vcpkg>/scripts/buildsystems/vcpkg.cmake
-
Run D-Bus with:
C:\...\> .\build\bin\release\dbus-daemon.exe --config-file=.\build\bus\session.conf
-
In the demo, implement import/export for common component as detailed here: https://doc.qt.io/qt-6/sharedlibrary.html
-
Run the demo, making sure to allow the Qt binary to find dbus-1.dll (and libexpat.dll) created in step 3.
Fun exercise!
Thanks for the demo -- it was helpful getting started with Qt + D-Bus. On my systems, it didn't work out of the box...
On Ubuntu 23, there was one missing build dependency:
$> sudo apt-get install libgl1-mesa-devOn Windows 10:
Install the expat library:
C:\...\> vcpkg install expatGet D-Bus source from https://dbus.freedesktop.org/releases/dbus/
Build D-Bus starting with:
C:\...\> cmake -B .\build -S . -DCMAKE_TOOLCHAIN_FILE=<path to vcpkg>/scripts/buildsystems/vcpkg.cmakeRun D-Bus with:
C:\...\> .\build\bin\release\dbus-daemon.exe --config-file=.\build\bus\session.confIn the demo, implement import/export for common component as detailed here: https://doc.qt.io/qt-6/sharedlibrary.html
Run the demo, making sure to allow the Qt binary to find dbus-1.dll (and libexpat.dll) created in step 3.
Fun exercise!