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

qtwayland fails to build with clang on Linux

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.7.0 Beta
    • 5.7
    • QPA: Wayland
    • None
    • Arch Linux, clang 3.8.0 (from trunk)

    Description

      Trying to build QtWayland with clang on Linux I get the following error messages:

      /home/code/autobuild/qt5-dev/qtwayland/src/compositor/global/qwaylandextension.h:120:11: error: no matching constructor for initialization of 'QWaylandExtension'
      : QWaylandExtension(dd)
      ^ ~~
      /home/code/autobuild/qt5-dev/qtwayland/src/compositor/global/qwaylandextension.h:70:46: note: candidate constructor (the implicit copy constructor) not viable: cannot convert argument of incomplete type 'QWaylandExtensionTemplatePrivate' to 'const QWaylandExtension'
      class _attribute_((visibility("default"))) QWaylandExtension : public QWaylandObject
      ^
      /home/code/autobuild/qt5-dev/qtwayland/src/compositor/global/qwaylandextension.h:76:5: note: candidate constructor not viable: cannot convert argument of incomplete type 'QWaylandExtensionTemplatePrivate' to 'QWaylandObject *'
      QWaylandExtension(QWaylandObject *container);
      ^
      /home/code/autobuild/qt5-dev/qtwayland/src/compositor/global/qwaylandextension.h:88:5: note: candidate constructor not viable: cannot convert argument of incomplete type 'QWaylandExtensionTemplatePrivate' to 'QWaylandExtensionPrivate &'
      QWaylandExtension(QWaylandExtensionPrivate &dd);
      ^
      /home/code/autobuild/qt5-dev/qtwayland/src/compositor/global/qwaylandextension.h:75:5: note: candidate constructor not viable: requires 0 arguments, but 1 was provided
      QWaylandExtension();
      ^
      /home/code/autobuild/qt5-dev/qtwayland/src/compositor/global/qwaylandextension.h:89:5: note: candidate constructor not viable: requires 2 arguments, but 1 was provided
      QWaylandExtension(QWaylandObject *container, QWaylandExtensionPrivate &dd);
      ^
      /home/code/autobuild/qt5-dev/qtwayland/src/compositor/global/qwaylandextension.h:124:11: error: no matching constructor for initialization of 'QWaylandExtension'
      : QWaylandExtension(container,dd)
      ^ ~~~~~~~~~~~~
      /home/code/autobuild/qt5-dev/qtwayland/src/compositor/global/qwaylandextension.h:89:5: note: candidate constructor not viable: cannot convert argument of incomplete type 'QWaylandExtensionTemplatePrivate' to 'QWaylandExtensionPrivate &'
      QWaylandExtension(QWaylandObject *container, QWaylandExtensionPrivate &dd);
      ^
      /home/code/autobuild/qt5-dev/qtwayland/src/compositor/global/qwaylandextension.h:76:5: note: candidate constructor not viable: requires single argument 'container', but 2 arguments were provided
      QWaylandExtension(QWaylandObject *container);
      ^
      /home/code/autobuild/qt5-dev/qtwayland/src/compositor/global/qwaylandextension.h:88:5: note: candidate constructor not viable: requires single argument 'dd', but 2 arguments were provided
      QWaylandExtension(QWaylandExtensionPrivate &dd);
      ^
      /home/code/autobuild/qt5-dev/qtwayland/src/compositor/global/qwaylandextension.h:70:46: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 2 were provided
      class _attribute_((visibility("default"))) QWaylandExtension : public QWaylandObject
      ^
      /home/code/autobuild/qt5-dev/qtwayland/src/compositor/global/qwaylandextension.h:75:5: note: candidate constructor not viable: requires 0 arguments, but 2 were provided
      QWaylandExtension();
      ^
      2 errors generated.

      Attachments

        Activity

          People

            johanhelsing Johan Helsing
            hunger Tobias Hunger
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: