[Development] Error in compilation while compiling qt5 with qt3d

Arjun Das arjundas.27586 at gmail.com
Tue Jan 20 18:09:09 CET 2015


Hi,

I am a beginner to QT framework, however i have solved all errors till now.
But I am stuck on this one. Compilation of qt5 with qt3d module is failing
for me in windows. I have given the following configuration:

configure -debug-and-release -opensource -platform win32-msvc2012 -opengl
desktop -nomake examples -nomake tests

nmake

The following error occurs after a long time of compilation of all other
modules.Once it reaches qt3d:

c:\build\qt5\qtbase\include\qtcore\../../../../../qt5/qtbase/src/corelib/kernel/qmetatype.h(1648)
: error C2338: Type is not registered, please use the Q_DECLARE_METATYPE
macro to make it known to Qt's meta-object system

c:\build\qt5\qtbase\include\qtcore\../../../../../qt5/qtbase/src/corelib/kernel/qvariant.h(678)
: see reference to function template instantiation 'int
qMetaTypeId<T>(void)' being compiled
        with
        [
            T=QSurface *
        ]

c:\build\qt5\qtbase\include\qtcore\../../../../../qt5/qtbase/src/corelib/kernel/qvariant.h(677)
: while compiling class template member function 'QSurface
QtPrivate::QVariantValueHelper<T>::metaType(const QVariant &)'
        with
        [
            T=QSurface *
        ]

c:\build\qt5\qtbase\include\qtcore\../../../../../qt5/qtbase/src/corelib/kernel/qvariant.h(105)
: see reference to function template instantiation 'QSurface
QtPrivate::QVariantValueHelper<T>::metaType(const QVariant &)' being
compiled
        with
        [
            T=QSurface *
        ]

c:\build\qt5\qtbase\include\qtcore\../../../../../qt5/qtbase/src/corelib/kernel/qvariant.h(698)
: see reference to class template instantiation
'QtPrivate::QVariantValueHelper<T>' being compiled
        with
        [
            T=QSurface *
        ]

c:\build\qt5\qtbase\include\qtcore\../../../../../qt5/qtbase/src/corelib/kernel/qvariant.h(817)
: see reference to class template instantiation
'QtPrivate::QVariantValueHelperInterface<T>' being compiled
        with
        [
            T=QSurface *
        ]

c:\build\qt5\qtbase\include\qtcore\../../../../../qt5/qtbase/src/corelib/kernel/qvariant.h(343)
: see reference to function template instantiation 'T
qvariant_cast<T>(const QVariant &)' being compiled
        with
        [
            T=QSurface *
        ]
        C:\qt5\qt3d\src\render\backend\qrenderaspect.cpp(327) : see
reference to function template instantiation 'T
QVariant::value<QSurface*>(void) const' being compiled
        with
        [
            T=QSurface *
        ]
rendertexture.cpp
C:\qt5\qt3d\src\render\backend\rendertexture.cpp(248) : error C2039:
'TextureComparisonOperators' : is not a member of 'QOpenGLTexture'

c:\build\qt5\qtbase\include\qtgui\../../../../../qt5/qtbase/src/gui/opengl/qopengltexture.h(51)
: see declaration of 'QOpenGLTexture'
C:\qt5\qt3d\src\render\backend\rendertexture.cpp(248) : error C2065:
'TextureComparisonOperators' : undeclared identifier
C:\qt5\qt3d\src\render\backend\rendertexture.cpp(249) : error C2039:
'setComparisonFunction' : is not a member of 'QOpenGLTexture'

c:\build\qt5\qtbase\include\qtgui\../../../../../qt5/qtbase/src/gui/opengl/qopengltexture.h(51)
: see declaration of 'QOpenGLTexture'
C:\qt5\qt3d\src\render\backend\rendertexture.cpp(249) : error C2039:
'ComparisonFunction' : is not a member of 'QOpenGLTexture'

c:\build\qt5\qtbase\include\qtgui\../../../../../qt5/qtbase/src/gui/opengl/qopengltexture.h(51)
: see declaration of 'QOpenGLTexture'
C:\qt5\qt3d\src\render\backend\rendertexture.cpp(249) : error C2061: syntax
error : identifier 'ComparisonFunction'
C:\qt5\qt3d\src\render\backend\rendertexture.cpp(250) : error C2039:
'setComparisonMode' : is not a member of 'QOpenGLTexture'

c:\build\qt5\qtbase\include\qtgui\../../../../../qt5/qtbase/src/gui/opengl/qopengltexture.h(51)
: see declaration of 'QOpenGLTexture'
C:\qt5\qt3d\src\render\backend\rendertexture.cpp(250) : error C2039:
'ComparisonMode' : is not a member of 'QOpenGLTexture'

c:\build\qt5\qtbase\include\qtgui\../../../../../qt5/qtbase/src/gui/opengl/qopengltexture.h(51)
: see declaration of 'QOpenGLTexture'
C:\qt5\qt3d\src\render\backend\rendertexture.cpp(250) : error C2061: syntax
error : identifier 'ComparisonMode'
platformsurfacefilter.cpp
C:\qt5\qt3d\src\render\backend\platformsurfacefilter.cpp(47) : fatal error
C1083: Cannot open include file: 'QPlatformSurfaceEvent': No such file or
directory


Thanks

Regards
Arjun
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20150120/f7159b88/attachment.html>


More information about the Development mailing list