Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-602

Qt3DInput build error: declaration of 'axisCount' overrides a 'final' function

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • None
    • PySide
    • None

    Description

      On Linux, git dev branch with qt5-3d installed Qt3DInput fails to build with this error:
       

      [ 92%] Running generator for Qt3DInput...
      [ 97%] Built target QtCharts
      qt.shiboken: (3dinput) Duplicate type entry: 'QTransform'
      qt.shiboken: (3dinput) Duplicate type entry: 'QKeyEvent'
      qt.shiboken: (3dinput) Duplicate type entry: 'QMouseEvent'
      qt.shiboken: (3dinput) Duplicate type entry: 'QWheelEvent'
      [ 98%] Built target Qt3DLogic
      (3dinput) clang_parseTranslationUnit2(0x0, cmd[14]=-nostdinc -isystem/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/7.2.1/../../../../include/c++/7.2.1 -isystem/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/7.2.1/../../../../include/c++/7.2.1/x86_64-pc-linux-gnu -isystem/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/7.2.1/../../../../include/c++/7.2.1/backward -isystem/usr/local/include -isystem/usr/lib/clang/5.0.1/include -isystem/usr/include -std=c++14 -fPIC -fno-exceptions -Wno-constant-logical-operand -I/home/schueller/projects/aur-scripts/pyside2-git/src/pyside2-git/sources/pyside2/PySide2 -I/usr/include/qt/ /tmp/Qt3DInput_global_wVExHB.hpp)
      [ 98%] Built target QtQuickWidgets
      Generating class model...                    qt.shiboken: (3dinput) enum 'QLocale::DataSizeFormat' does not have a type entry or is not an enum
      qt.shiboken: (3dinput) enum 'QFileDevice::FileTime' does not have a type entry or is not an enum
      qt.shiboken: (3dinput) enum 'QTimeZone::MaxUtcOffsetSecs' does not have a type entry or is not an enum
      [WARNING]
      Generating enum model...                     [OK]
      Generating namespace model...                qt.shiboken: (3dinput) enum 'Qt3DCore::QSkeletonLoader::Status' does not have a type entry or is not an enum
      [WARNING]
      Resolving typedefs...                        [OK]
      qt.shiboken: (3dinput) skipping field 'QSysInfo::MacintoshVersion' with unmatched type 'const QSysInfo::MacVersion'
      qt.shiboken: (3dinput) glClearBufferfi(uint,int,float,int): Cannot use parameter 3 as an array: Type does not have indirections.
      Fixing class inheritance...                  qt.shiboken: (3dinput) template baseclass 'QGenericMatrix<2, 2, float>' of 'QMatrix2x2' is not known
      qt.shiboken: (3dinput) template baseclass 'QGenericMatrix<2, 3, float>' of 'QMatrix2x3' is not known
      qt.shiboken: (3dinput) template baseclass 'QGenericMatrix<2, 4, float>' of 'QMatrix2x4' is not known
      qt.shiboken: (3dinput) template baseclass 'QGenericMatrix<3, 2, float>' of 'QMatrix3x2' is not known
      qt.shiboken: (3dinput) template baseclass 'QGenericMatrix<3, 3, float>' of 'QMatrix3x3' is not known
      qt.shiboken: (3dinput) template baseclass 'QGenericMatrix<3, 4, float>' of 'QMatrix3x4' is not known
      qt.shiboken: (3dinput) template baseclass 'QGenericMatrix<4, 2, float>' of 'QMatrix4x2' is not known
      [WARNING]
      qt.shiboken: (3dinput) template baseclass 'QGenericMatrix<4, 3, float>' of 'QMatrix4x3' is not known
      Detecting inconsistencies in class model...  [WARNING]
      [OK]
      qt.shiboken: (3dinput) type 'QPyTextObject' is specified in typesystem, but not defined. This could potentially lead to compilation errors.
      qt.shiboken: (3dinput) signature 'fromType()' for function modification in 'QMetaEnum' not found. No candidates were found. Member functions: QMetaEnum(), enclosingMetaObject()const, isFlag()const, isScoped()const, isValid()const, key(int)const, keyCount()const, keyToValue(const char*,bool*)const, keysToValue(const char*,bool*)const, name()const, scope()const, value(int)const, valueToKey(int)const, valueToKeys(int)const, QMetaEnum(QMetaEnum)
      qt.shiboken: (3dinput) signature 'winEventFilter(MSG*,long*)' for function modification in 'QCoreApplication' not found. No candidates were found. Member functions: QCoreApplication(QStringList), QCoreApplication(QCoreApplication), QCoreApplication(int&,char**,int), addLibraryPath(QString), applicationDirPath(), applicationFilePath(), applicationName(), applicationNameChanged(), applicationPid(), applicationVersion(), applicationVersionChanged(), arguments(), blockSignals(bool), childEvent(QChildEvent*), children()const, closingDown(), connect(const QObject*,QMetaMethod,const QObject*,QMetaMethod,Qt::ConnectionType), connect(const QObject*,const char*,const QObject*,const char*,Qt::ConnectionType), connect(const QObject*,const char*,const char*,Qt::ConnectionType)const, connectNotify(QMetaMethod), customEvent(QEvent*), deleteLater(), destroyed(QObject*), disconnect(QMetaObject::Connection), disconnect(const QObject*,const char*)const, disconnect(const QObject*,QMetaMethod,const QObject*,QMetaMethod), disconnect(const QObject*,const char*,const QObject*,const char*), disconnect(const char*,const QObject*,const char*)const, disconnectImpl(const QObject*,void**,const QObject*,void**,const QMetaObject*), disconnectNotify(QMetaMethod), dumpObjectInfo(), dumpObjectInfo()const, dumpObjectTree(), dumpObjectTree()const, dynamicPropertyNames()const, event(QEvent*), eventDispatcher(), eventFilter(QObject*,QEvent*), exec(), exit(int), flush(), forwardEvent(QObject*,QEvent*,QEvent*), hasPendingEvents(), inherits(const char*)const, installEventFilter(QObject*), installTranslator(QTranslator*), instance(), isQuitLockEnabled(), isSetuidAllowed(), isSignalConnected(QMetaMethod)const, isWidgetType()const, isWindowType()const, killTimer(int), libraryPaths(), metaObject()const, moveToThread(QThread*), notify(QObject*,QEvent*), notifyInternal(QObject*,QEvent*), notifyInternal2(QObject*,QEvent*), objectName()const, operator=(QCoreApplication), organizationDomain(), organizationDomainChanged(), organizationName(), organizationNameChanged(), parent()const, postEvent(QObject*,QEvent*,int), processEvents(QFlags<QEventLoop::ProcessEventsFlag>), processEvents(QFlags<QEventLoop::ProcessEventsFlag>,int), property(const char*)const, qt_static_metacall(QObject*,QMetaObject::Call,int,void**), quit(), receivers(const char*)const, registerUserData(), removeEventFilter(QObject*), removeLibraryPath(QString), removePostedEvents(QObject*,int), removeTranslator(QTranslator*), sendEvent(QObject*,QEvent*), sendPostedEvents(QObject*,int), sendSpontaneousEvent(QObject*,QEvent*), sender()const, senderSignalIndex()const, setApplicationName(QString), setApplicationVersion(QString), setAttribute(Qt::ApplicationAttribute,bool), setEventDispatcher(QAbstractEventDispatcher*), setLibraryPaths(QStringList), setObjectName(QString), setOrganizationDomain(QString), setOrganizationName(QString), setParent(QObject*), setProperty(const char*,QVariant), setQuitLockEnabled(bool), setSetuidAllowed(bool), signalsBlocked()const, startTimer(int,Qt::TimerType), startingUp(), testAttribute(Qt::ApplicationAttribute), thread()const, timerEvent(QTimerEvent*), translate(const char*,const char*,const char*,int)
      qt.shiboken: (3dinput) signature 'parent()const' for function modification in 'QSortFilterProxyModel' not found. Possible candidates: parent(QModelIndex)const in QSortFilterProxyModel
      
      qt.shiboken: (3dinput) Typedef used on signal Qt3DInput::QAxisAccumulator::sourceAxisTypeChanged(Qt3DInput::QAxisAccumulator::SourceAxisType sourceAxisType)
      Done, 7974ms, 23 warnings (584 known issues)
      Scanning dependencies of target Qt3DInput
      [ 98%] Building CXX object PySide2/Qt3DInput/CMakeFiles/Qt3DInput.dir/PySide2/Qt3DInput/qt3dinput_wrapper.cpp.o
      [ 98%] Building CXX object PySide2/Qt3DInput/CMakeFiles/Qt3DInput.dir/PySide2/Qt3DInput/qt3dinput_qabstractactioninput_wrapper.cpp.o
      In file included from /home/schueller/projects/aur-scripts/pyside2-git/src/pyside2-git/sources/pyside2/build-py2/PySide2/Qt3DInput/PySide2/Qt3DInput/qt3dinput_wrapper.cpp:76:
      /home/schueller/projects/aur-scripts/pyside2-git/src/pyside2-git/sources/pyside2/build-py2/PySide2/Qt3DInput/PySide2/Qt3DInput/qt3dinput_qmousedevice_wrapper.h:54:17: error: declaration of
            'axisCount' overrides a 'final' function
          virtual int axisCount() const;
                      ^
      /usr/include/qt/Qt3DInput/qmousedevice.h:72:9: note: overridden virtual function is here
          int axisCount() const Q_DECL_FINAL;
              ^
      In file included from /home/schueller/projects/aur-scripts/pyside2-git/src/pyside2-git/sources/pyside2/build-py2/PySide2/Qt3DInput/PySide2/Qt3DInput/qt3dinput_wrapper.cpp:76:
      /home/schueller/projects/aur-scripts/pyside2-git/src/pyside2-git/sources/pyside2/build-py2/PySide2/Qt3DInput/PySide2/Qt3DInput/qt3dinput_qmousedevice_wrapper.h:55:17: error: declaration of
            'axisIdentifier' overrides a 'final' function
          virtual int axisIdentifier(const QString & name) const;
                      ^
      /usr/include/qt/Qt3DInput/qmousedevice.h:76:9: note: overridden virtual function is here
          int axisIdentifier(const QString &name) const Q_DECL_FINAL;
              ^
      In file included from /home/schueller/projects/aur-scripts/pyside2-git/src/pyside2-git/sources/pyside2/build-py2/PySide2/Qt3DInput/PySide2/Qt3DInput/qt3dinput_wrapper.cpp:76:
      /home/schueller/projects/aur-scripts/pyside2-git/src/pyside2-git/sources/pyside2/build-py2/PySide2/Qt3DInput/PySide2/Qt3DInput/qt3dinput_qmousedevice_wrapper.h:56:25: error: declaration of
            'axisNames' overrides a 'final' function
          virtual QStringList axisNames() const;
                              ^
      /usr/include/qt/Qt3DInput/qmousedevice.h:74:17: note: overridden virtual function is here
          QStringList axisNames() const Q_DECL_FINAL;
                      ^
      In file included from /home/schueller/projects/aur-scripts/pyside2-git/src/pyside2-git/sources/pyside2/build-py2/PySide2/Qt3DInput/PySide2/Qt3DInput/qt3dinput_wrapper.cpp:76:
      /home/schueller/projects/aur-scripts/pyside2-git/src/pyside2-git/sources/pyside2/build-py2/PySide2/Qt3DInput/PySide2/Qt3DInput/qt3dinput_qmousedevice_wrapper.h:57:17: error: declaration of
            'buttonCount' overrides a 'final' function
          virtual int buttonCount() const;
                      ^
      /usr/include/qt/Qt3DInput/qmousedevice.h:73:9: note: overridden virtual function is here
          int buttonCount() const Q_DECL_FINAL;
              ^
      In file included from /home/schueller/projects/aur-scripts/pyside2-git/src/pyside2-git/sources/pyside2/build-py2/PySide2/Qt3DInput/PySide2/Qt3DInput/qt3dinput_wrapper.cpp:76:
      /home/schueller/projects/aur-scripts/pyside2-git/src/pyside2-git/sources/pyside2/build-py2/PySide2/Qt3DInput/PySide2/Qt3DInput/qt3dinput_qmousedevice_wrapper.h:58:17: error: declaration of
            'buttonIdentifier' overrides a 'final' function
          virtual int buttonIdentifier(const QString & name) const;
                      ^
      /usr/include/qt/Qt3DInput/qmousedevice.h:77:9: note: overridden virtual function is here
          int buttonIdentifier(const QString &name) const Q_DECL_FINAL;
              ^
      In file included from /home/schueller/projects/aur-scripts/pyside2-git/src/pyside2-git/sources/pyside2/build-py2/PySide2/Qt3DInput/PySide2/Qt3DInput/qt3dinput_wrapper.cpp:76:
      /home/schueller/projects/aur-scripts/pyside2-git/src/pyside2-git/sources/pyside2/build-py2/PySide2/Qt3DInput/PySide2/Qt3DInput/qt3dinput_qmousedevice_wrapper.h:59:25: error: declaration of
            'buttonNames' overrides a 'final' function
          virtual QStringList buttonNames() const;
                              ^
      /usr/include/qt/Qt3DInput/qmousedevice.h:75:17: note: overridden virtual function is here
          QStringList buttonNames() const Q_DECL_FINAL;
                      ^
      In file included from /home/schueller/projects/aur-scripts/pyside2-git/src/pyside2-git/sources/pyside2/build-py2/PySide2/Qt3DInput/PySide2/Qt3DInput/qt3dinput_wrapper.cpp:77:
      /home/schueller/projects/aur-scripts/pyside2-git/src/pyside2-git/sources/pyside2/build-py2/PySide2/Qt3DInput/PySide2/Qt3DInput/qt3dinput_qkeyboarddevice_wrapper.h:54:17: error: declaration of
            'axisCount' overrides a 'final' function
          virtual int axisCount() const;
                      ^
      /usr/include/qt/Qt3DInput/qkeyboarddevice.h:65:9: note: overridden virtual function is here
          int axisCount() const Q_DECL_FINAL;
              ^
      In file included from /home/schueller/projects/aur-scripts/pyside2-git/src/pyside2-git/sources/pyside2/build-py2/PySide2/Qt3DInput/PySide2/Qt3DInput/qt3dinput_wrapper.cpp:77:
      /home/schueller/projects/aur-scripts/pyside2-git/src/pyside2-git/sources/pyside2/build-py2/PySide2/Qt3DInput/PySide2/Qt3DInput/qt3dinput_qkeyboarddevice_wrapper.h:55:17: error: declaration of
            'axisIdentifier' overrides a 'final' function
          virtual int axisIdentifier(const QString & name) const;
                      ^
      /usr/include/qt/Qt3DInput/qkeyboarddevice.h:69:9: note: overridden virtual function is here
          int axisIdentifier(const QString &name) const Q_DECL_FINAL;
              ^
      In file included from /home/schueller/projects/aur-scripts/pyside2-git/src/pyside2-git/sources/pyside2/build-py2/PySide2/Qt3DInput/PySide2/Qt3DInput/qt3dinput_wrapper.cpp:77:
      /home/schueller/projects/aur-scripts/pyside2-git/src/pyside2-git/sources/pyside2/build-py2/PySide2/Qt3DInput/PySide2/Qt3DInput/qt3dinput_qkeyboarddevice_wrapper.h:56:25: error: declaration of
            'axisNames' overrides a 'final' function
          virtual QStringList axisNames() const;
                              ^
      /usr/include/qt/Qt3DInput/qkeyboarddevice.h:67:17: note: overridden virtual function is here
          QStringList axisNames() const Q_DECL_FINAL;
                      ^
      In file included from /home/schueller/projects/aur-scripts/pyside2-git/src/pyside2-git/sources/pyside2/build-py2/PySide2/Qt3DInput/PySide2/Qt3DInput/qt3dinput_wrapper.cpp:77:
      /home/schueller/projects/aur-scripts/pyside2-git/src/pyside2-git/sources/pyside2/build-py2/PySide2/Qt3DInput/PySide2/Qt3DInput/qt3dinput_qkeyboarddevice_wrapper.h:57:17: error: declaration of
            'buttonCount' overrides a 'final' function
          virtual int buttonCount() const;
                      ^
      /usr/include/qt/Qt3DInput/qkeyboarddevice.h:66:9: note: overridden virtual function is here
          int buttonCount() const Q_DECL_FINAL;
              ^
      In file included from /home/schueller/projects/aur-scripts/pyside2-git/src/pyside2-git/sources/pyside2/build-py2/PySide2/Qt3DInput/PySide2/Qt3DInput/qt3dinput_wrapper.cpp:77:
      /home/schueller/projects/aur-scripts/pyside2-git/src/pyside2-git/sources/pyside2/build-py2/PySide2/Qt3DInput/PySide2/Qt3DInput/qt3dinput_qkeyboarddevice_wrapper.h:58:17: error: declaration of
            'buttonIdentifier' overrides a 'final' function
          virtual int buttonIdentifier(const QString & name) const;
                      ^
      /usr/include/qt/Qt3DInput/qkeyboarddevice.h:70:9: note: overridden virtual function is here
          int buttonIdentifier(const QString &name) const Q_DECL_FINAL;
              ^
      In file included from /home/schueller/projects/aur-scripts/pyside2-git/src/pyside2-git/sources/pyside2/build-py2/PySide2/Qt3DInput/PySide2/Qt3DInput/qt3dinput_wrapper.cpp:77:
      /home/schueller/projects/aur-scripts/pyside2-git/src/pyside2-git/sources/pyside2/build-py2/PySide2/Qt3DInput/PySide2/Qt3DInput/qt3dinput_qkeyboarddevice_wrapper.h:59:25: error: declaration of
            'buttonNames' overrides a 'final' function
          virtual QStringList buttonNames() const;
                              ^
      /usr/include/qt/Qt3DInput/qkeyboarddevice.h:68:17: note: overridden virtual function is here
          QStringList buttonNames() const Q_DECL_FINAL;
                      ^
      12 errors generated.
      make[2]: *** [PySide2/Qt3DInput/CMakeFiles/Qt3DInput.dir/build.make:137: PySide2/Qt3DInput/CMakeFiles/Qt3DInput.dir/PySide2/Qt3DInput/qt3dinput_wrapper.cpp.o] Error 1
      make[2]: *** Waiting for unfinished jobs....
      make[1]: *** [CMakeFiles/Makefile2:2079: PySide2/Qt3DInput/CMakeFiles/Qt3DInput.dir/all] Error 2
      make: *** [Makefile:130: all] Error 2
      
      ```
      

      (qt is 5.10)

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            jschueller Julien Schueller
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes