I'm trying to develop a graphic application based in Qt (5.6) Quick 2 which uses openGL. My device is an iMX6UL and doesn't have a GPU, as image I have the FSL Yocto Krogoth 2.1 fsl-image-qt5. Reading manuals from FSL I discovered that I could use Qt Quick 2D Renderer to run Qt Quick 2 apps with a dummy libraries of openGL.
I built the 2D Renderer by doing qmake; make; make install; without errors using the qmake made by meta-toolchain-qt5. Then, before run the application, I set the environment variables QMLSCENE_DEVICE=softwarecontext and QT_QPA_PLATFORM=linuxfb.
But unfortunately get the next error:
This plugin does not support createPlatformOpenGLContext!
Failed to create OpenGL context for format QSurfaceFormat(version 2.0, options QFlags(), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize 8, samples -1, swapBehavior 2, swapInterval 1, profile 0)
I also tried with QT_QPA_PLATFORM=eglfs, but get:
So, what I'm missing?? How can I verify if qt is configured with openGL es2 and if Qt 2D Renderer is correctly installed??