Skip to content

Running The Sample on Linux and Windows #1

Description

@thehoglet

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:

  1. Install the expat library: C:\...\> vcpkg install expat

  2. Get D-Bus source from https://dbus.freedesktop.org/releases/dbus/

  3. Build D-Bus starting with:

    C:\...\> cmake -B .\build -S . -DCMAKE_TOOLCHAIN_FILE=<path to vcpkg>/scripts/buildsystems/vcpkg.cmake

  4. Run D-Bus with:

    C:\...\> .\build\bin\release\dbus-daemon.exe --config-file=.\build\bus\session.conf

  5. In the demo, implement import/export for common component as detailed here: https://doc.qt.io/qt-6/sharedlibrary.html

  6. Run the demo, making sure to allow the Qt binary to find dbus-1.dll (and libexpat.dll) created in step 3.

Fun exercise!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions