* [Buildroot] the problem with Xorg, QT5 and imx vivant dirver @ 2016-08-02 15:21 Zhaozhou Meng 2016-08-02 19:30 ` Thomas Petazzoni 0 siblings, 1 reply; 8+ messages in thread From: Zhaozhou Meng @ 2016-08-02 15:21 UTC (permalink / raw) To: buildroot 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. So I choosed : X11 as freescale imx-gpu-viv output option , xf86-video-imx-viv as X11R7 driver, QT5 Desktop Opengl as opengl support and others necessary packages, like gstreamer 1.0 but I didn't choose the opengl in gst1-plugins-bad. During the building, I have always the errors with qwidget.so like [sub-src-mak-first] error 2. Is there any conflict between the xorg and the QT5 or it is the other problem ? 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 ? Thanks all of you. 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20160802/4bb85fce/attachment.html> ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] the problem with Xorg, QT5 and imx vivant dirver 2016-08-02 15:21 [Buildroot] the problem with Xorg, QT5 and imx vivant dirver Zhaozhou Meng @ 2016-08-02 19:30 ` Thomas Petazzoni 2016-08-03 9:03 ` Zhaozhou Meng 0 siblings, 1 reply; 8+ messages in thread From: Thomas Petazzoni @ 2016-08-02 19:30 UTC (permalink / raw) To: buildroot 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 ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] the problem with Xorg, QT5 and imx vivant dirver 2016-08-02 19:30 ` Thomas Petazzoni @ 2016-08-03 9:03 ` Zhaozhou Meng 2016-08-03 9:53 ` Thomas Petazzoni 0 siblings, 1 reply; 8+ messages in thread From: Zhaozhou Meng @ 2016-08-03 9:03 UTC (permalink / raw) To: buildroot 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@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> ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] the problem with Xorg, QT5 and imx vivant dirver 2016-08-03 9:03 ` Zhaozhou Meng @ 2016-08-03 9:53 ` Thomas Petazzoni 2016-08-03 12:57 ` Gary Bisson 0 siblings, 1 reply; 8+ messages in thread From: Thomas Petazzoni @ 2016-08-03 9:53 UTC (permalink / raw) To: buildroot Hello, Cc'ing Gary, our i.MX6 expert. On Wed, 3 Aug 2016 11:03:28 +0200, Zhaozhou Meng wrote: > 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 ? Well, imx-gpu-viv is precisely what provides the OpenGL ES implementation. > 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 ? It will. > 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 No, you need to use the Vivante X.org driver. > Freescale imx libraries -> imx-gpu-viv -> output option -> Framebuffer No, you need to enable the X11 output (BR2_PACKAGE_IMX_GPU_VIV_OUTPUT_X11). > QT5 -> OpenGL API -> OpenGL ES 2.0 + > QT5 -> Xorg XCB support > QT5-> eglfs support eglfs support is not needed in this case, as far as I know. > 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'll fire up a build and see what happens. Gary, do you have an idea? Thomas -- Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] the problem with Xorg, QT5 and imx vivant dirver 2016-08-03 9:53 ` Thomas Petazzoni @ 2016-08-03 12:57 ` Gary Bisson 2016-08-03 15:42 ` Zhaozhou Meng 0 siblings, 1 reply; 8+ messages in thread From: Gary Bisson @ 2016-08-03 12:57 UTC (permalink / raw) To: buildroot Hi all, On Wed, Aug 3, 2016 at 11:53 AM, Thomas Petazzoni <thomas.petazzoni@free-electrons.com> wrote: > <snip> >> 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'll fire up a build and see what happens. Gary, do you have an idea? Yes I confirm it is not working. It has been reported by Antoine T?nart in the past, see this thread: http://lists.busybox.net/pipermail/buildroot/2016-March/154974.html At the end of the thread, two solutions were offered, none has been chosen yet. But as a summary, even if fixing the eglfs build can be done, at runtime you wouldn't be able to use it while X11 is running. Is this really what you want to do? In Yocto, my understanding is that they force the '-no-eglfs' configuration when X11 is enabled: https://github.com/Freescale/meta-fsl-arm/blob/master/qt5-layer/recipes-qt/qt5/qtbase_%25.bbappend#L12 Regards, Gary ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] the problem with Xorg, QT5 and imx vivant dirver 2016-08-03 12:57 ` Gary Bisson @ 2016-08-03 15:42 ` Zhaozhou Meng 2016-08-04 9:54 ` Gary Bisson 0 siblings, 1 reply; 8+ messages in thread From: Zhaozhou Meng @ 2016-08-03 15:42 UTC (permalink / raw) To: buildroot Thanks for the infomations that help me a lot. Not really for using the QT eglfs under X11. I know it will override the X11 if I do that, the elgfs is setted fullscreen display, beside that, is there other reason that I wouldn't be able to use it ? Regards, Zhaozhou 2016-08-03 14:57 GMT+02:00 Gary Bisson <gary.bisson@boundarydevices.com>: > Hi all, > > On Wed, Aug 3, 2016 at 11:53 AM, Thomas Petazzoni > <thomas.petazzoni@free-electrons.com> wrote: > > <snip> > >> 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'll fire up a build and see what happens. Gary, do you have an idea? > > Yes I confirm it is not working. It has been reported by Antoine > T?nart in the past, see this thread: > http://lists.busybox.net/pipermail/buildroot/2016-March/154974.html > > At the end of the thread, two solutions were offered, none has been chosen > yet. > > But as a summary, even if fixing the eglfs build can be done, at > runtime you wouldn't be able to use it while X11 is running. Is this > really what you want to do? > > In Yocto, my understanding is that they force the '-no-eglfs' > configuration when X11 is enabled: > > https://github.com/Freescale/meta-fsl-arm/blob/master/qt5-layer/recipes-qt/qt5/qtbase_%25.bbappend#L12 > > Regards, > Gary > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20160803/b7edc1d6/attachment.html> ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] the problem with Xorg, QT5 and imx vivant dirver 2016-08-03 15:42 ` Zhaozhou Meng @ 2016-08-04 9:54 ` Gary Bisson 2017-06-30 6:12 ` gomsis 0 siblings, 1 reply; 8+ messages in thread From: Gary Bisson @ 2016-08-04 9:54 UTC (permalink / raw) To: buildroot Hi, On Wed, Aug 3, 2016 at 5:42 PM, Zhaozhou Meng <mengzhaozhou@gmail.com> wrote: > Thanks for the infomations that help me a lot. > > Not really for using the QT eglfs under X11. > I know it will override the X11 if I do that, the elgfs is setted fullscreen > display, beside that, is there other reason that I wouldn't be able to use > it ? Please read the EGLFS definition from Qt documentation: http://doc.qt.io/qt-5/embedded-linux.html "EGLFS is a platform plugin for running Qt5 applications on top of EGL and OpenGL ES 2.0 without an actual windowing system (like X11 or Wayland)." The reason is that the windowing system such as X11 leverages the available GPU/graphics libraries (in this case the Vivante GPU3D) so EGLFS cannot access it at the same time. Regards, Gary ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] the problem with Xorg, QT5 and imx vivant dirver 2016-08-04 9:54 ` Gary Bisson @ 2017-06-30 6:12 ` gomsis 0 siblings, 0 replies; 8+ messages in thread From: gomsis @ 2017-06-30 6:12 UTC (permalink / raw) To: buildroot I have applied configuration below in buildroot 2017.08 I applied patch https://patchwork.ozlabs.org/patch/742261/ to enable webengine Target packages->Hardware handling->Freescale imx libraries->imx-gpu-vi Target packages->Graphic libraries-> QT5->opengl support and eglfs support I disable x11 and mesa3d. there is problem while compiling with this configuration when I run demobrowser from qt with eglfs it crash and says "Could not open egl display" when I run it with directfb, it accupies half of the CPU so GPU does not start. -- View this message in context: http://buildroot-busybox.2317881.n4.nabble.com/the-problem-with-Xorg-QT5-and-imx-vivant-dirver-tp142006p168690.html Sent from the Buildroot (busybox) mailing list archive at Nabble.com. ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2017-06-30 6:12 UTC | newest] Thread overview: 8+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2016-08-02 15:21 [Buildroot] the problem with Xorg, QT5 and imx vivant dirver Zhaozhou Meng 2016-08-02 19:30 ` Thomas Petazzoni 2016-08-03 9:03 ` Zhaozhou Meng 2016-08-03 9:53 ` Thomas Petazzoni 2016-08-03 12:57 ` Gary Bisson 2016-08-03 15:42 ` Zhaozhou Meng 2016-08-04 9:54 ` Gary Bisson 2017-06-30 6:12 ` gomsis
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox