[Development] Building Qt3D
Ben Beckwith
ben at beckwithclan.com
Fri Jan 16 21:28:39 CET 2015
Howdy!
I'm trying to build the latest Qt3D and I'm runing into following issue:
g++ -c -pipe -g -fvisibility=hidden -fvisibility-inlines-hidden -std=c++0x
-fno-exceptions -Wall -W -D_REENTRANT -fPIC -DQT_NO_MTDEV
-DQT3DRENDERER_LIBRARY -DQT_BUILD_3DRENDERER_LIB -DQT_BUILDING_QT
-DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT
-DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS
-DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_NO_EXCEPTIONS
-D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_3DCORE_LIB -DQT_OPENGL_LIB
-DQT_WIDGETS_LIB -DQT_OPENGLEXTENSIONS_LIB -DQT_GUI_LIB -DQT_CORE_LIB
-I/media/RaidData/qt/qt5/qtbase/mkspecs/linux-g++ -I. -I../../include
-I../../include/Qt3DRenderer -I../../include/Qt3DRenderer/5.5.0
-I../../include/Qt3DRenderer/5.5.0/Qt3DRenderer -Ibackend
-Ibackend/framegraph -Ibackend/jobs -Ifrontend
-Ifrontend/framegraph-components -Iio -Idefaults
-I/media/RaidData/qt/qt5/qtbase/include/QtGui/5.4.1
-I/media/RaidData/qt/qt5/qtbase/include/QtGui/5.4.1/QtGui
-I../../include/Qt3DCore/5.5.0 -I../../include/Qt3DCore/5.5.0/Qt3DCore
-I../../include/Qt3DCore -I/media/RaidData/qt/qt5/qtbase/include
-I/media/RaidData/qt/qt5/qtbase/include/QtOpenGL
-I/media/RaidData/qt/qt5/qtbase/include/QtWidgets
-I/media/RaidData/qt/qt5/qtbase/include/QtOpenGLExtensions
-I/media/RaidData/qt/qt5/qtbase/include/QtGui
-I/media/RaidData/qt/qt5/qtbase/include/QtCore/5.4.1
-I/media/RaidData/qt/qt5/qtbase/include/QtCore/5.4.1/QtCore
-I/media/RaidData/qt/qt5/qtbase/include/QtCore -I.moc -o
.obj/qrenderaspect.o backend/qrenderaspect.cpp
In file included from
/media/RaidData/qt/qt5/qtbase/include/QtCore/qglobal.h:1:0,
from
../../include/Qt3DRenderer/../../src/render/qt3drenderer_global.h:45,
from ../../include/Qt3DRenderer/qt3drenderer_global.h:1,
from backend/qrenderaspect.h:45,
from backend/qrenderaspect.cpp:42:
/media/RaidData/qt/qt5/qtbase/include/QtCore/../../src/corelib/kernel/qmetatype.h:
In instantiation of ‘constexpr int qMetaTypeId() [with T = QSurface*]’:
/media/RaidData/qt/qt5/qtbase/include/QtCore/../../src/corelib/kernel/qvariant.h:678:44:
required from ‘static T QtPrivate::QVariantValueHelper<T>::metaType(const
QVariant&) [with T = QSurface*]’
/media/RaidData/qt/qt5/qtbase/include/QtCore/../../src/corelib/kernel/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*]’
/media/RaidData/qt/qt5/qtbase/include/QtCore/../../src/corelib/kernel/qvariant.h:817:64:
required from ‘T qvariant_cast(const QVariant&) [with T = QSurface*]’
/media/RaidData/qt/qt5/qtbase/include/QtCore/../../src/corelib/kernel/qvariant.h:343:36:
required from ‘T QVariant::value() const [with T = QSurface*]’
backend/qrenderaspect.cpp:303:39: required from here
/media/RaidData/qt/qt5/qtbase/include/QtCore/../../src/corelib/global/qglobal.h:684:47:
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
#define Q_STATIC_ASSERT_X(Condition, Message)
static_assert(bool(Condition), Message)
^
/media/RaidData/qt/qt5/qtbase/include/QtCore/../../src/corelib/kernel/qmetatype.h:1648:5:
note: in expansion of macro ‘Q_STATIC_ASSERT_X’
Q_STATIC_ASSERT_X(QMetaTypeId2<T>::Defined, "Type is not registered,
please use the Q_DECLARE_METATYPE macro to make it known to Qt's
meta-object system");
^
In file included from
/media/RaidData/qt/qt5/qtbase/include/QtCore/qmetatype.h:1:0,
from
/media/RaidData/qt/qt5/qtbase/include/QtCore/../../src/corelib/kernel/qobject.h:48,
from
/media/RaidData/qt/qt5/qtbase/include/QtCore/qobject.h:1,
from
/media/RaidData/qt/qt5/qtbase/include/QtCore/QObject:1,
from
../../include/Qt3DCore/../../src/core/aspects/qabstractaspect.h:45,
from ../../include/Qt3DCore/qabstractaspect.h:1,
from backend/qrenderaspect.h:46,
from backend/qrenderaspect.cpp:42:
/media/RaidData/qt/qt5/qtbase/include/QtCore/../../src/corelib/kernel/qmetatype.h:
In instantiation of ‘static constexpr int QMetaTypeId2<T>::qt_metatype_id()
[with T = QSurface*]’:
/media/RaidData/qt/qt5/qtbase/include/QtCore/../../src/corelib/kernel/qmetatype.h:1649:44:
required from ‘constexpr int qMetaTypeId() [with T = QSurface*]’
/media/RaidData/qt/qt5/qtbase/include/QtCore/../../src/corelib/kernel/qvariant.h:678:44:
required from ‘static T QtPrivate::QVariantValueHelper<T>::metaType(const
QVariant&) [with T = QSurface*]’
/media/RaidData/qt/qt5/qtbase/include/QtCore/../../src/corelib/kernel/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*]’
/media/RaidData/qt/qt5/qtbase/include/QtCore/../../src/corelib/kernel/qvariant.h:817:64:
required from ‘T qvariant_cast(const QVariant&) [with T = QSurface*]’
/media/RaidData/qt/qt5/qtbase/include/QtCore/../../src/corelib/kernel/qvariant.h:343:36:
required from ‘T QVariant::value() const [with T = QSurface*]’
backend/qrenderaspect.cpp:303:39: required from here
/media/RaidData/qt/qt5/qtbase/include/QtCore/../../src/corelib/kernel/qmetatype.h:1509:97:
error: ‘qt_metatype_id’ is not a member of ‘QMetaTypeId<QSurface*>’
static inline Q_DECL_CONSTEXPR int qt_metatype_id() { return
QMetaTypeId<T>::qt_metatype_id(); }
^
/media/RaidData/qt/qt5/qtbase/include/QtCore/../../src/corelib/kernel/qmetatype.h:1509:100:
error: body of constexpr function ‘static constexpr int
QMetaTypeId2<T>::qt_metatype_id() [with T = QSurface*]’ not a
return-statement
static inline Q_DECL_CONSTEXPR int qt_metatype_id() { return
QMetaTypeId<T>::qt_metatype_id(); }
^
/media/RaidData/qt/qt5/qtbase/include/QtCore/../../src/corelib/kernel/qmetatype.h:
In static member function ‘static constexpr int
QMetaTypeId2<T>::qt_metatype_id() [with T = QSurface*]’:
/media/RaidData/qt/qt5/qtbase/include/QtCore/../../src/corelib/kernel/qmetatype.h:1509:100:
warning: control reaches end of non-void function [-Wreturn-type]
static inline Q_DECL_CONSTEXPR int qt_metatype_id() { return
QMetaTypeId<T>::qt_metatype_id(); }
^
make[2]: *** [.obj/qrenderaspect.o] Error 1
make[2]: Leaving directory `/media/RaidData/qt/qt5/qt3d/src/render'
make[1]: *** [sub-render-make_first] Error 2
make[1]: Leaving directory `/media/RaidData/qt/qt5/qt3d/src'
make: *** [sub-src-make_first] Error 2
I'm building on Ubuntu 14.04. I git the Qt 5.4.1 source and then git the
Qt3D source (dev branch). Here's my config line:
./configure -debug -force-debug-info -plugin-sql-psql -opensource -opengl
-skip qtwebkit -skip qtwebkit-examples -skip qtwebengine -qt-xcb -qt-libpng
-qt-libjpeg -cups -openssl \
Thanks,
Ben Beckwith
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20150116/00d818c4/attachment.html>
More information about the Development
mailing list