[Development] Error in compilation while compiling qt5 with qt3d

Svenn-Arne Dragly s at dragly.com
Thu Jan 22 10:40:55 CET 2015


Hi,

In my experience you also need to check out the dev branch of qtbase, 
qtdeclarative, qtimageformats (optional) and qtxmlpatterns. Afterwards I 
configure and compile with

make module-qt3d

This is on linux, and I'm not sure if it works with nmake, but that way 
you only compile the necessary submodules of Qt for Qt3D, reducing the 
chances of having trouble with other interdependencies between the Qt 
modules.

I think I had the same error as you get before, and that it was caused 
by not checking out the dev branch in the qtbase folder.


Best regards,
Svenn-Arne

On 22. jan. 2015 10:30, Arjun Das wrote:
> Hi,
>
> I Checked out dev branch of qt and dev branch of qt3d as per the 
> previous email. 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:
> backend\rendertexture.cpp(248) : error C2039: 
> 'TextureComparisonOperators' : is not a member of 'QOpenGLTexture'
> d:\qt5\qtbase\include\qtgui\../../src/gui/opengl/qopengltexture.h(51) 
> : see declaration of 'QOpenGLTexture'
> backend\rendertexture.cpp(248) : error C2065: 
> 'TextureComparisonOperators' : undeclared identifier
> backend\rendertexture.cpp(249) : error C2039: 'setComparisonFunction' 
> : is not a member of 'QOpenGLTexture'
> d:\qt5\qtbase\include\qtgui\../../src/gui/opengl/qopengltexture.h(51) 
> : see declaration of 'QOpenGLTexture'
> backend\rendertexture.cpp(249) : error C2039: 'ComparisonFunction' : 
> is not a member of 'QOpenGLTexture'
> d:\qt5\qtbase\include\qtgui\../../src/gui/opengl/qopengltexture.h(51) 
> : see declaration of 'QOpenGLTexture'
> backend\rendertexture.cpp(249) : error C2061: syntax error : 
> identifier 'ComparisonFunction'
> backend\rendertexture.cpp(250) : error C2039: 'setComparisonMode' : is 
> not a member of 'QOpenGLTexture'
> d:\qt5\qtbase\include\qtgui\../../src/gui/opengl/qopengltexture.h(51) 
> : see declaration of 'QOpenGLTexture'
> backend\rendertexture.cpp(250) : error C2039: 'ComparisonMode' : is 
> not a member of 'QOpenGLTexture'
> d:\qt5\qtbase\include\qtgui\../../src/gui/opengl/qopengltexture.h(51) 
> : see declaration of 'QOpenGLTexture'
> backend\rendertexture.cpp(250) : error C2061: syntax error : 
> identifier 'ComparisonMode'
>
> Thanks
>
> Regards
> Arjun
>
>
> On Wed, Jan 21, 2015 at 12:31 AM, Sean Harmer <sean.harmer at kdab.com 
> <mailto:sean.harmer at kdab.com>> wrote:
>
>     On Tuesday 20 January 2015 22:39:09 Arjun Das wrote:
>     > 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:
>
>     Be sure to get a recent checkout of the dev branch of qtbase. The
>     metatype
>     declaration of QSurface was added fairly recently. Qt 5.4 is not
>     new enough.
>
>     Cheers,
>
>     Sean
>     --
>     Dr Sean Harmer | sean.harmer at kdab.com
>     <mailto:sean.harmer at kdab.com> | Managing Director UK
>     Klarälvdalens Datakonsult AB, a KDAB Group company
>     Tel. Sweden (HQ) +46-563-540090, USA +1-866-777-KDAB(5322)
>     KDAB - Qt Experts - Platform-independent software solutions
>
>
>
>
> _______________________________________________
> Development mailing list
> Development at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/development

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20150122/9de46aea/attachment.html>


More information about the Development mailing list