Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Cannot build qt3d

    Installation and Deployment
    2
    2
    947
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      deepgadhia last edited by

      hello,
      I am trying to build qt3d using Qt5.4.0 sdk,but i got following errors.

      In file included from /home/deep/Qt5.4.0/5.4/gcc_64/include/QtCore/qobject.h:48:0,
      from /home/deep/Qt5.4.0/5.4/gcc_64/include/QtCore/qabstractanimation.h:37,
      from /home/deep/Qt5.4.0/5.4/gcc_64/include/QtCore/QtCore:4,
      from ../../include/Qt3DRenderer/Qt3DRendererDepends:3:
      /home/deep/Qt5.4.0/5.4/gcc_64/include/QtCore/qmetatype.h: In instantiation of 'constexpr int qMetaTypeId() [with T = QSurface*]':
      /home/deep/Qt5.4.0/5.4/gcc_64/include/QtCore/qvariant.h:678:44: required from 'static T QtPrivate::QVariantValueHelper<T>::metaType(const QVariant&) [with T = QSurface*]'
      /home/deep/Qt5.4.0/5.4/gcc_64/include/QtCore/qvariant.h:105:39: required from 'static ReturnType QtPrivate::MetaTypeInvoker<Derived, Argument, ReturnType>::invoke(Argument) [with Derived = QtPrivate::QVariantValueHelper<QSurface*>; Argument = const QVariant&; ReturnType = QSurface*]'
      /home/deep/Qt5.4.0/5.4/gcc_64/include/QtCore/qvariant.h:817:64: required from 'T qvariant_cast(const QVariant&) [with T = QSurface*]'
      /home/deep/Qt5.4.0/5.4/gcc_64/include/QtCore/qvariant.h:343:36: required from 'T QVariant::value() const [with T = QSurface*]'
      backend/qrenderaspect.cpp:346:39: required from here
      /home/deep/Qt5.4.0/5.4/gcc_64/include/QtCore/qmetatype.h:1648:5: error: static assertion failed: Type is not registered, please use the Q_DECLARE_METATYPE macro to make it known to Qt's meta-object system
      /home/deep/Qt5.4.0/5.4/gcc_64/include/QtCore/qmetatype.h: In instantiation of 'static constexpr int QMetaTypeId2<T>::qt_metatype_id() [with T = QSurface*]':
      /home/deep/Qt5.4.0/5.4/gcc_64/include/QtCore/qmetatype.h:1649:44: required from 'constexpr int qMetaTypeId() [with T = QSurface*]'
      /home/deep/Qt5.4.0/5.4/gcc_64/include/QtCore/qvariant.h:678:44: required from 'static T QtPrivate::QVariantValueHelper<T>::metaType(const QVariant&) [with T = QSurface*]'
      /home/deep/Qt5.4.0/5.4/gcc_64/include/QtCore/qvariant.h:105:39: required from 'static ReturnType QtPrivate::MetaTypeInvoker<Derived, Argument, ReturnType>::invoke(Argument) [with Derived = QtPrivate::QVariantValueHelper<QSurface*>; Argument = const QVariant&; ReturnType = QSurface*]'
      /home/deep/Qt5.4.0/5.4/gcc_64/include/QtCore/qvariant.h:817:64: required from 'T qvariant_cast(const QVariant&) [with T = QSurface*]'
      /home/deep/Qt5.4.0/5.4/gcc_64/include/QtCore/qvariant.h:343:36: required from 'T QVariant::value() const [with T = QSurface*]'
      backend/qrenderaspect.cpp:346:39: required from here
      /home/deep/Qt5.4.0/5.4/gcc_64/include/QtCore/qmetatype.h:1509:97: error: 'qt_metatype_id' is not a member of 'QMetaTypeId<QSurface*>'
      /home/deep/Qt5.4.0/5.4/gcc_64/include/QtCore/qmetatype.h:1509:100: error: body of constexpr function 'static constexpr int QMetaTypeId2<T>::qt_metatype_id() [with T = QSurface*]' not a return-statement
      /home/deep/Qt5.4.0/5.4/gcc_64/include/QtCore/qmetatype.h: In static member function 'static constexpr int QMetaTypeId2<T>::qt_metatype_id() [with T = QSurface*]':
      /home/deep/Qt5.4.0/5.4/gcc_64/include/QtCore/qmetatype.h:1509:100: warning: control reaches end of non-void function [-Wreturn-type]
      make[2]: *** [.obj/qrenderaspect.o] Error 1
      make[2]: Leaving directory /home/deep/qt5/src/render' make[1]: Leaving directory /home/deep/qt5/src'
      make[1]: *** [sub-render-make_first] Error 2
      make: *** [sub-src-make_first] Error 2
      04:13:11: The process "/usr/bin/make" exited with code 2.
      Error while building/deploying project qt3d (kit: Desktop Qt 5.4.0 GCC 64bit)
      When executing step "Make"
      04:13:11: Elapsed time: 00:12.

      1 Reply Last reply Reply Quote 0
      • A
        agocs last edited by

        Qt3D requires Qt 5.5 and will not build with 5.4.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post