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

Compilation error with gcc 4.8: no matching function for call to QQuickControlPrivate::connect

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.12.0
    • Fix Version/s: 5.12.1
    • Component/s: Quick: Other
    • Labels:
      None
    • Platform/s:
      Linux/X11

      Description

      Can't build Qt 5.12.0 with gcc 4.8 on CentOS 7.4:

      qquickcontrol.cpp: In member function \u2018void QQuickControlPrivate::setContentItem_helper(QQuickItem*, bool)\u2019:
      qquickcontrol.cpp:416:115: error: no matching function for call to \u2018QQuickControlPrivate::connect(QQuickDeferredPointer<QQuickItem>&, void (QQuickItem::*)(qreal), QQuickControlPrivate* const, void (QQuickControlPrivate::*)())\u2019
               connect(contentItem, &QQuickItem::baselineOffsetChanged, this, &QQuickControlPrivate::updateBaselineOffset);
                                                                                                                         ^
      qquickcontrol.cpp:416:115: note: candidates are:
      In file included from /home/qt-everywhere-src-5.12.0/qtbase/include/QtCore/5.12.0/QtCore/private/qobject_p.h:1:0,
                       from /home/qt-everywhere-src-5.12.0/qtdeclarative/include/QtQml/5.12.0/QtQml/private/../../../../../src/qml/qml/qqmldata_p.h:55,
                       from /home/qt-everywhere-src-5.12.0/qtdeclarative/include/QtQml/5.12.0/QtQml/private/../../../../../src/qml/qml/qqmlnotifier_p.h:54,
                       from /home/qt-everywhere-src-5.12.0/qtdeclarative/include/QtQml/5.12.0/QtQml/private/../../../../../src/qml/qml/qqmlpropertycache_p.h:57,
                       from /home/qt-everywhere-src-5.12.0/qtdeclarative/include/QtQml/5.12.0/QtQml/private/qqmlpropertycache_p.h:1,
                       from /home/qt-everywhere-src-5.12.0/qtdeclarative/include/QtQml/5.12.0/QtQml/private/../../../../../src/qml/qml/qqmlglobal_p.h:56,
                       from /home/qt-everywhere-src-5.12.0/qtdeclarative/include/QtQml/5.12.0/QtQml/private/qqmlglobal_p.h:1,
                       from ../../include/QtQuickTemplates2/5.12.0/QtQuickTemplates2/private/../../../../../src/quicktemplates2/qtquicktemplates2global_p.h:52,
                       from ../../include/QtQuickTemplates2/5.12.0/QtQuickTemplates2/private/qtquicktemplates2global_p.h:1,
                       from qquickcontrol_p.h:54,
                       from qquickcontrol.cpp:37:
      /home/qt-everywhere-src-5.12.0/qtbase/include/QtCore/5.12.0/QtCore/private/../../../../../src/corelib/kernel/qobject_p.h:213:43: note: template<class Func1, class Func2> static QMetaObject::Connection QObjectPrivate::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const typename QtPrivate::FunctionPointer<Func2>::Object*, Func2, Qt::ConnectionType)
           static inline QMetaObject::Connection connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal,
                                                 ^
      /home/qt-everywhere-src-5.12.0/qtbase/include/QtCore/5.12.0/QtCore/private/../../../../../src/corelib/kernel/qobject_p.h:213:43: note:   template argument deduction/substitution failed:
      qquickcontrol.cpp:416:115: note:   mismatched types \u2018const typename QtPrivate::FunctionPointer<Func>::Object*\u2019 and \u2018QQuickDeferredPointer<QQuickItem>\u2019
               connect(contentItem, &QQuickItem::baselineOffsetChanged, this, &QQuickControlPrivate::updateBaselineOffset);
                                                                                                                         ^
      In file included from /home/qt-everywhere-src-5.12.0/qtbase/include/QtCore/5.12.0/QtCore/private/qobject_p.h:1:0,
                       from /home/qt-everywhere-src-5.12.0/qtdeclarative/include/QtQml/5.12.0/QtQml/private/../../../../../src/qml/qml/qqmldata_p.h:55,
                       from /home/qt-everywhere-src-5.12.0/qtdeclarative/include/QtQml/5.12.0/QtQml/private/../../../../../src/qml/qml/qqmlnotifier_p.h:54,
                       from /home/qt-everywhere-src-5.12.0/qtdeclarative/include/QtQml/5.12.0/QtQml/private/../../../../../src/qml/qml/qqmlpropertycache_p.h:57,
                       from /home/qt-everywhere-src-5.12.0/qtdeclarative/include/QtQml/5.12.0/QtQml/private/qqmlpropertycache_p.h:1,
                       from /home/qt-everywhere-src-5.12.0/qtdeclarative/include/QtQml/5.12.0/QtQml/private/../../../../../src/qml/qml/qqmlglobal_p.h:56,
                       from /home/qt-everywhere-src-5.12.0/qtdeclarative/include/QtQml/5.12.0/QtQml/private/qqmlglobal_p.h:1,
                       from ../../include/QtQuickTemplates2/5.12.0/QtQuickTemplates2/private/../../../../../src/quicktemplates2/qtquicktemplates2global_p.h:52,
                       from ../../include/QtQuickTemplates2/5.12.0/QtQuickTemplates2/private/qtquicktemplates2global_p.h:1,
                       from qquickcontrol_p.h:54,
                       from qquickcontrol.cpp:37:
      /home/qt-everywhere-src-5.12.0/qtbase/include/QtCore/5.12.0/QtCore/private/../../../../../src/corelib/kernel/qobject_p.h:225:36: note: static QMetaObject::Connection QObjectPrivate::connect(const QObject*, int, QtPrivate::QSlotObjectBase*, Qt::ConnectionType)
           static QMetaObject::Connection connect(const QObject *sender, int signal_index, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type);
                                          ^
      /home/qt-everywhere-src-5.12.0/qtbase/include/QtCore/5.12.0/QtCore/private/../../../../../src/corelib/kernel/qobject_p.h:225:36: note:   no known conversion for argument 2 from \u2018void (QQuickItem::*)(qreal) {aka void (QQuickItem::*)(double)}\u2019 to \u2018int\u2019
      make[3]: *** [.obj/qquickcontrol.o] Error 1
      make[3]: Leaving directory `/home/qt-everywhere-src-5.12.0/qtquickcontrols2/src/quicktemplates2'
      make[2]: *** [sub-quicktemplates2-make_first] Error 2
      make[2]: Leaving directory `/home/qt-everywhere-src-5.12.0/qtquickcontrols2/src'
      make[1]: *** [sub-src-make_first] Error 2
      make[1]: Leaving directory `/home/qt-everywhere-src-5.12.0/qtquickcontrols2'
      make: *** [module-qtquickcontrols2-make_first] Error 2 

        Attachments

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

          Activity

            People

            • Assignee:
              w00t Robin Burchell
              Reporter:
              dm.vodopyanov Dmitry Vodopyanov
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes