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

error: invalid application of 'sizeof' to an incomplete type 'TestNamespace::Qt3DCore::QEntity'

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P0: Blocker
    • 6.0
    • 6.0.0 Alpha
    • Qt3D
    • None
    • 2615cf4f3c4c0bc4d4ce4938987975d852276e49

    Description

      agent:2020/08/17 07:30:16 build.go:302: In file included from .moc/moc_qraycasterhit.cpp:10:
      agent:2020/08/17 07:30:16 build.go:302: In file included from .moc/../picking/qraycasterhit.h:43:
      agent:2020/08/17 07:30:16 build.go:302: In file included from ../../include/Qt3DCore/qcomponent.h:1:
      agent:2020/08/17 07:30:16 build.go:302: In file included from ../../include/Qt3DCore/../../src/core/nodes/qcomponent.h:43:
      agent:2020/08/17 07:30:16 build.go:302: In file included from ../../include/Qt3DCore/qnode.h:1:
      agent:2020/08/17 07:30:16 build.go:302: In file included from ../../include/Qt3DCore/../../src/core/nodes/qnode.h:43:
      agent:2020/08/17 07:30:16 build.go:302: In file included from ../../include/Qt3DCore/qnodeid.h:1:
      agent:2020/08/17 07:30:16 build.go:302: In file included from ../../include/Qt3DCore/../../src/core/nodes/qnodeid.h:44:
      agent:2020/08/17 07:30:16 build.go:302: In file included from /Users/qt/work/install/include/QtCore/QDebug:1:
      agent:2020/08/17 07:30:16 build.go:302: In file included from /Users/qt/work/install/include/QtCore/qdebug.h:48:
      agent:2020/08/17 07:30:16 build.go:302: In file included from /Users/qt/work/install/include/QtCore/qtextstream.h:43:
      agent:2020/08/17 07:30:16 build.go:302: In file included from /Users/qt/work/install/include/QtCore/qiodevice.h:45:
      agent:2020/08/17 07:30:16 build.go:302: In file included from /Users/qt/work/install/include/QtCore/qobject.h:54:
      agent:2020/08/17 07:30:16 build.go:302: /Users/qt/work/install/include/QtCore/qmetatype.h:1388:23: error: invalid application of 'sizeof' to an incomplete type 'TestNamespace::Qt3DCore::QEntity'
      agent:2020/08/17 07:30:16 build.go:302:         static_assert(sizeof(T), "Type argument of Q_DECLARE_METATYPE(T*) must be fully defined");
      agent:2020/08/17 07:30:16 build.go:302:                       ^~~~~~~~~
      agent:2020/08/17 07:30:16 build.go:302: /Users/qt/work/install/include/QtCore/qmetatype.h:1669:25: note: in instantiation of template class 'TestNamespace::QtPrivate::IsPointerToTypeDerivedFromQObject<TestNamespace::Qt3DCore::QEntity *>' requested here
      agent:2020/08/17 07:30:16 build.go:302:                      | (IsPointerToTypeDerivedFromQObject<T>::Value ? QMetaType::PointerToQObject : 0)
      agent:2020/08/17 07:30:16 build.go:302:                         ^
      agent:2020/08/17 07:30:16 build.go:302: /Users/qt/work/install/include/QtCore/qmetatype.h:2729:17: note: in instantiation of template class 'TestNamespace::QtPrivate::QMetaTypeTypeFlags<TestNamespace::Qt3DCore::QEntity *>' requested here
      agent:2020/08/17 07:30:16 build.go:302:     /*.flags=*/ QMetaTypeTypeFlags<T>::Flags,
      agent:2020/08/17 07:30:16 build.go:302:                 ^
      agent:2020/08/17 07:30:16 build.go:302: /Users/qt/work/install/include/QtCore/qmetatype.h:2849:39: note: in instantiation of static data member 'TestNamespace::QtPrivate::QMetaTypeForType<TestNamespace::Qt3DCore::QEntity *>::metaType' requested here
      agent:2020/08/17 07:30:16 build.go:302:         return &QMetaTypeForType<Ty>::metaType;
      agent:2020/08/17 07:30:16 build.go:302:                                       ^
      agent:2020/08/17 07:30:16 build.go:302: .moc/moc_qraycasterhit.cpp:158:1: note: in instantiation of variable template specialization 'TestNamespace::qt_incomplete_metaTypeArray<qt_meta_stringdata_Qt3DRender__QRayCasterHit_t, TestNamespace::QtPrivate::TypeAndForceComplete<TestNamespace::Qt3DRender::QRayCasterHit::HitType, std::__1::integral_constant<bool, true> >, TestNamespace::QtPrivate::TypeAndForceComplete<TestNamespace::Qt3DCore::QNodeId, std::__1::integral_constant<bool, true> >, TestNamespace::QtPrivate::TypeAndForceComplete<TestNamespace::Qt3DCore::QEntity *, std::__1::integral_constant<bool, true> >, TestNamespace::QtPrivate::TypeAndForceComplete<float, std::__1::integral_constant<bool, true> >, TestNamespace::QtPrivate::TypeAndForceComplete<TestNamespace::QVector3D, std::__1::integral_constant<bool, true> >, TestNamespace::QtPrivate::TypeAndForceComplete<TestNamespace::QVector3D, std::__1::integral_constant<bool, true> >, TestNamespace::QtPrivate::TypeAndForceComplete<unsigned int, std::__1::integral_constant<bool, true> >, TestNamespace::QtPrivate::TypeAndForceComplete<unsigned int, std::__1::integral_constant<bool, true> >, TestNamespace::QtPrivate::TypeAndForceComplete<unsigned int, std::__1::integral_constant<bool, true> >, TestNamespace::QtPrivate::TypeAndForceComplete<unsigned int, std::__1::integral_constant<bool, true> >, TestNamespace::QtPrivate::TypeAndForceComplete<TestNamespace::QString, std::__1::integral_constant<bool, false> > >' requested here
      agent:2020/08/17 07:30:16 build.go:302: qt_incomplete_metaTypeArray<qt_meta_stringdata_Qt3DRender__QRayCasterHit_t
      agent:2020/08/17 07:30:16 build.go:302: ^
      agent:2020/08/17 07:30:16 build.go:302: ../../include/Qt3DCore/../../src/core/nodes/qcomponent.h:50:7: note: forward declaration of 'TestNamespace::Qt3DCore::QEntity'
      agent:2020/08/17 07:30:16 build.go:302: class QEntity;
      agent:2020/08/17 07:30:16 build.go:302:       ^
      agent:2020/08/17 07:30:16 build.go:302: 1 error generated.
      

      Build log: https://testresults.qt.io/logs/qt/qt3d/d6a2b44aaea7241422d28f905fcab43f3bdd088b/MacOSMacOS_10_14x86_64MacOSMacOS_10_14x86_64Clangqtci-macos-10.14-x86_64-dfab29DisableTests_UseLegacyInstructions/dee8c4b2548150ef0f355c3c4f3c1a1daf6bbbf6/build_1597648896/log.txt.gz

      Details: https://testresults.qt.io/coin/integration/qt/qt3d/tasks/1597648853
      Tested changes (refs/builds/qtci/dev/1597648850):
      https://codereview.qt-project.org/c/qt/qt3d/+/310436/1 Update dependencies on 'dev' in qt/qt3d

      Attachments

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

        Activity

          People

            anmaatta Antti Määttä
            janihe Jani Heikkinen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes