[Buildroot] the problem with Xorg, QT5 and imx vivant dirver

Zhaozhou Meng mengzhaozhou at gmail.com
Wed Aug 3 09:03:28 UTC 2016


Hi,

So if I want to use QT5 without Xorg:
I have to use eglfs support and OpenGL ES2 support, at the same time, can I
use the imx-gpu-viv driver for the acceleration ?
I have tried to set the Freescale imx libraries->imx-gpu-viv->output
option->Framebuffer, there is no problem during the building, but I don't
know if it will accelerate the output of QT5 ?


The second way that I have tired is to use QT5 under Xorg:
Xorg X Window Sytem -> X11R7 Drivers -> x86-video-fbdev &&
x86-video-fbturbo
Freescale imx libraries -> imx-gpu-viv -> output option -> Framebuffer
QT5 -> OpenGL API -> OpenGL ES 2.0 +
QT5 -> Xorg XCB support
QT5-> eglfs support

With the options above, there is no problems during the buidling or running
the Xorg and QT5 (-platform xcb and eglfs both work) on the nitrogen6
board. It works perfectly.

But I changed the option to this:
Xorg X Window Sytem -> X11R7 Drivers -> x86-video-imx-viv (with Mesa3D
selected automatic)
Freescale imx libraries -> imx-gpu-viv -> output option -> X11
QT5 -> OpenGL API -> OpenGL ES 2.0 +
QT5 -> Xorg XCB support
QT5-> eglfs support

With this option, I have the problem with QT Widget during the building.

I attache the config file and the infomations about build.

I didn't find the intresssting infomation in the output of building.

Thanks,

Best Regards
Zhaozhou


2016-08-02 21:30 GMT+02:00 Thomas Petazzoni <
thomas.petazzoni at free-electrons.com>:

> Hello,
>
> On Tue, 2 Aug 2016 17:21:25 +0200, Zhaozhou Meng wrote:
> > Hello,
> >
> > I'am new to buildroot and I'am working on the buildroot 2016.05 for a
> > project based on the board nitrogen6x, freescale imx6q.
> > I want to build the QT5 using eglfs, egl and opengl and the Xorg using
> the
> > imx vivant driver.
>
> eglfs is about using Qt5 *without* X.org.
>
> In Qt5, you have the following possibilities
>
>  - linuxfb (raw framebuffer, no acceleration)
>  - directfb
>  - xcb (which means with X.org support, potentially with OpenGL)
>  - eglfs (OpenGL ES without X.org, i.e by using EGL)
>
> > So I choosed :
> > X11 as freescale imx-gpu-viv output option ,
> > xf86-video-imx-viv as X11R7 driver,
> > QT5 Desktop Opengl as opengl support
>
> I don't think you can select Qt5 Desktop OpenGL, as this depends on
> full OpenGL support, while the i.MX6 GPU only provides OpenGL ES.
>
> > Another question is that when I choosed the xf86-video-imx-viv as X11R7
> > driver, the mesa3D is choosed, it means the imx vivant driver depends on
> > mesa3D ?
>
> I'm not sure to remember why Mesa3D is needed for the
> xf86-video-imx-viv. Maybe Gary can chime in.
>
> > The output of building like this:
> >
> > ln -s libQt5Widgets.so.5.6.0 libQt5Widgets.so
> > ln -s libQt5Widgets.so.5.6.0 libQt5Widgets.so.5
> > ln -s libQt5Widgets.so.5.6.0 libQt5Widgets.so.5.6
> > rm -f ../../lib/libQt5Widgets.so.5.6.0
> > mv -f libQt5Widgets.so.5.6.0  ../../lib/
> > rm -f ../../lib/libQt5Widgets.so
> > rm -f ../../lib/libQt5Widgets.so.5
> > rm -f ../../lib/libQt5Widgets.so.5.6
> > mv -f libQt5Widgets.so ../../lib/
> > mv -f libQt5Widgets.so.5 ../../lib/
> > mv -f libQt5Widgets.so.5.6 ../../lib/
> > Makefile:45 : la recette pour la cible « sub-src-make_first » a échouée
> > make[2]: *** [sub-src-make_first] Erreur 2
> > package/pkg-generic.mk:195 : la recette pour la cible
> > «
> /home/plateau/Zhaozhou/buildroot-2016.05/output/build/qt5base-5.6.0/.stamp_built
> > »
> > a échouée
> > make[1]: ***
> >
> [/home/plateau/Zhaozhou/buildroot-2016.05/output/build/qt5base-5.6.0/.stamp_built]
> > Erreur 2
> > Makefile:36 : la recette pour la cible « _all » a échouée
> > make: *** [_all] Erreur 2
>
> Please provide a longer build log: here you're not showing the
> interesting message.
>
> Alternatively, please provide the Buildroot .config file that allows to
> reproduce the issue.
>
> Best regards,
>
> Thomas
> --
> Thomas Petazzoni, CTO, Free Electrons
> Embedded Linux, Kernel and Android engineering
> http://free-electrons.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20160803/91a8ec09/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config
Type: application/octet-stream
Size: 89874 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20160803/91a8ec09/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: info_build
Type: application/octet-stream
Size: 98946 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20160803/91a8ec09/attachment-0003.obj>


More information about the buildroot mailing list