Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-106571

qt_add_dbus_adaptor and qt_add_dbus_interface regression

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 6.5.0 Beta1
    • 6.5
    • D-Bus
    • None
    • Linux/X11
    • 1c2f055074 (qt/qtbase/dev) 1c2f055074 (qt/tqtc-qtbase/dev)

    Description

      I'm working on a fix so you can assign this issue to me.

      Recent changes to qdbusxml2cpp break qt_add_dbus_adaptor and qt_add_dbus_interface.

      The problem is in Qt6DBusMacros.cmake.

      The 5th parameter for qt6_add_dbus_adaptor and the third parameter for qt_add_dbus_interface don't handle possible filename with relative path.

      Example:

      If the project-included CMakeLists.txt is in a subfolder called src/ that contains all the qt6_add_dbus_adaptor / qt_add_dbus_interface, and the actual interface header and xml's are in subdirs under src/, the following:

      qt_add_dbus_adaptor(SOURCES dbus/org.mpris.MediaPlayer2.xml core/mpris2.h mpris::Mpris2 core/mpris2_root Mpris2Root)

      Results in build_directory/src/moc_core/mpris2_root.cpp and the build fails.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            jonaski Jonas Kvinge
            jonaski Jonas Kvinge
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes