[Development] Qt3D wip/newapi branch on Android

Sean Harmer sean.harmer at kdab.com
Mon Oct 27 13:47:18 CET 2014


On Monday 27 Oct 2014 13:35:45 Ayberk Özgür wrote:
> Dear All,
> 
> I succeeded in compiling the wip/newapi branch with today's 5.4.0
> snapshot on desktop, but on Android I'm getting the following errors
> (actually a much longer list):
> 
> /usr/local/src/qt3d-wip-newapi/src/render/backend/qgraphicshelpergl3.cpp: In
> member function 'virtual void
> Qt3D::Render::QGraphicsHelperGL3::initializeHelper(QOpenGLContext*,
> QAbstractOpenGLFunctions*)':
> /usr/local/src/qt3d-wip-newapi/src/render/backend/qgraphicshelpergl3.cpp:66:
> 64: error: invalid static_cast from type 'QAbstractOpenGLFunctions*' to type
> 'QOpenGLFunctions_3_2_Core*'
>       m_funcs = static_cast<QOpenGLFunctions_3_2_Core*>(functions);
>                                                                  ^
> /usr/local/src/qt3d-wip-newapi/src/render/backend/qgraphicshelpergl3.cpp:67:
> 28: error: invalid use of incomplete type 'class QOpenGLFunctions_3_2_Core'
> const bool ok = m_funcs->initializeOpenGLFunctions();
>                              ^
> In file included from
> /usr/local/src/qt3d-wip-newapi/src/render/backend/qgraphicshelpergl3.cpp:44:
> 0:
> /usr/local/src/qt3d-wip-newapi/src/render/backend/qgraphicshelpergl3_p.h:52
> :7: error: forward declaration of 'class QOpenGLFunctions_3_2_Core'
>   class QOpenGLFunctions_3_2_Core;
>         ^
> /usr/local/src/qt3d-wip-newapi/src/render/backend/qgraphicshelpergl3.cpp:72:
> 31: error: invalid use of incomplete type 'class
> QOpenGLExtension_ARB_tessellation_shader'
>           m_tessFuncs.reset(new QOpenGLExtension_ARB_tessellation_shader);
>                                 ^
> In file included from
> /usr/local/src/qt3d-wip-newapi/src/render/backend/qgraphicshelpergl3.cpp:44:
> 0:
> /usr/local/src/qt3d-wip-newapi/src/render/backend/qgraphicshelpergl3_p.h:53
> :7: error: forward declaration of 'class
> QOpenGLExtension_ARB_tessellation_shader'
>   class QOpenGLExtension_ARB_tessellation_shader;
>         ^
> /usr/local/src/qt3d-wip-newapi/src/render/backend/qgraphicshelpergl3.cpp:73:
> 20: error: invalid use of incomplete type 'class
> QOpenGLExtension_ARB_tessellation_shader'
>           m_tessFuncs->initializeOpenGLFunctions();
>                      ^
> In file included from
> /usr/local/src/qt3d-wip-newapi/src/render/backend/qgraphicshelpergl3.cpp:44:
> 0:
> /usr/local/src/qt3d-wip-newapi/src/render/backend/qgraphicshelpergl3_p.h:53
> :7: error: forward declaration of 'class
> QOpenGLExtension_ARB_tessellation_shader'
>   class QOpenGLExtension_ARB_tessellation_shader;
> 
> Should I expect any Android functionality at this point, or is it
> planned for the future and not available now?

We haven't tested on android yet and as you can see it's trying to initialize 
the desktop OpenGL 3.2 based helper class for some reason. Paul is looking 
into issues on running on ES 2 based systems. Once that is working making it 
work on Android should not be difficult.

I'd expect basic support before Christmas for Android and also hopefully iOS 
once James is back from the US DevDays.

Of course if you want to help solving these issues then you're more than 
welcome to help out :)

Cheers,

Sean

-- 
Dr Sean Harmer | 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



More information about the Development mailing list