Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Type error in qtqml.h when buidling Qt5GStreamer



  • Hi,

    I am trying to build Qt5GStreamer from its source for cross compilation purpose.
    I have configuration done, but errors occur when trying to make it.

    error: expected constructor, destructor, or type conversion before ‘(’ token
    QT_DEPRECATED_VERSION_X_5_14("Use qmlRegisterAnonymousType instead") int qmlRegisterType()
    ...
    .../qt5/include/QtQml/qqml.h:593:46: error: expected constructor, destructor, or type conversion before ‘(’ token
    Q_QML_EXPORT QT_DEPRECATED_VERSION_X_5_14("Use qmlAttachedPropertiesObject(QObject *, QQmlAttachedPropertiesFunc, bool")
    ../qt5/include/QtQml/qqml.h:595:46: error: expected constructor, destructor, or type conversion before ‘(’ token
    Q_QML_EXPORT QT_DEPRECATED_VERSION_X_5_14("Use qmlAttachedPropertiesObject(QObject *, QQmlAttachedPropertiesFunc, bool")

    in QtQml/qtqml.h, QT_DEPRECATED_VERSION_X_5_14 has a type error.

    What can I do to solve the problem? I don't want to switch to a older version Qt.

    Thanks in advance.


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    The QtGStreamer module is in unmaintained mode for quite some times. There are likely simpler options.

    Can you tell what you would like to do with it ?


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    The QtGStreamer module is in unmaintained mode for quite some times. There are likely simpler options.

    Can you tell what you would like to do with it ?



  • @SGaist Thanks for response. I realized that QtGStreamer is out-of-date for a while, so I switched to another method and solve my problem.
    Anyway, thanks for your help.


Log in to reply