Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Cannot build qt3d
Qt 6.11 is out! See what's new in the release blog

Cannot build qt3d

Scheduled Pinned Locked Moved Installation and Deployment
2 Posts 2 Posters 1.4k Views 1 Watching
  • 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 Offline
    D Offline
    deepgadhia
    wrote on last edited by
    #1

    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
    0
    • A Offline
      A Offline
      agocs
      wrote on last edited by
      #2

      Qt3D requires Qt 5.5 and will not build with 5.4.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved