Quantcast
Channel: Qt DevNet forums: Installation and Deployment
Viewing all articles
Browse latest Browse all 2113

cannot build qt3d

$
0
0
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] make2: *** [.obj/qrenderaspect.o] Error 1 make2: Leaving directory `/home/deep/qt5/src/render’ make1: Leaving directory `/home/deep/qt5/src’ make1: *** [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.

Viewing all articles
Browse latest Browse all 2113

Trending Articles