Qt Example in Different Environment with imx6DL

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Qt Example in Different Environment with imx6DL

1,633 Views
jerry_py_liu
Contributor I

Hi,

I build 3 images with different environment such as DISTRO=fsl-imx-x11, fsl-imx-fb, and fsl-imx-wayland.

Then I tested 2dpainting, a Qt example, and it located at /usr/share/qt5/example/opengl/2dpainting/ .

However, I find this sample can only work with Wayland but not x11 and fb.

We found the sample has 2 window for Native and OpenGL.

In x11 and fb environment, there is only Native window working but OpenGL not.

In Wayland environment, there are two window working simultaneously.

 

Why it has the difference in these environment?

And How to make it work in x11 and fb?

Thanks!

Labels (4)
Tags (2)
0 Kudos
Reply
4 Replies

1,349 Views
turker
Contributor IV

qtbase configuration log might provide some hints. You can check if log.do_configure for x11 and fb images differ from the wayland image. Example below:

Qt Gui:
...
  EGL .................................... yes
  OpenVG ................................. no
  OpenGL:
    Desktop OpenGL ....................... no
    OpenGL ES 2.0 ........................ yes
    OpenGL ES 3.0 ........................ yes
    OpenGL ES 3.1 ........................ yes
    OpenGL ES 3.2 ........................ yes
...
QPA backends:
  DirectFB ............................... no
  EGLFS .................................. yes
  EGLFS details:
    EGLFS OpenWFD ........................ no
    EGLFS i.Mx6 .......................... no
    EGLFS i.Mx6 Wayland .................. no
    EGLFS RCAR ........................... no
    EGLFS EGLDevice ...................... no
    EGLFS GBM ............................ no
    EGLFS Mali ........................... no
    EGLFS Raspberry Pi ................... no
    EGL on X11 ........................... no
  LinuxFB ................................ yes

0 Kudos
Reply

1,349 Views
joanxie
NXP TechSupport
NXP TechSupport

as default, only wayland supports dual frame buffer,eglfs and X11 are only support single, if you want to use FB as backend, maybe you can refer to the patch as below, in the bsp, it seems only wayland supports this

https://gitlab.com/pteam/korvins-qtbase/commit/87d2fa5f849b0877b75d29113ec7dd3613827904

0 Kudos
Reply

1,349 Views
joanxie
NXP TechSupport
NXP TechSupport

what bsp version or gpu version do you use?

0 Kudos
Reply

1,349 Views
jerry_py_liu
Contributor I

Hi,

BSP version is 4.9.88 and I don't know how to confirm GPU version.

I run gpuinfo.sh and the result is:

---- Running < gpuinfo.sh > test ----
GPU Info
gpu : 0
model : 880
revision : 5106
product : 0
eco : 0
gpu : 8
model : 320
revision : 5007
product : 0
eco : 0
VIDEO MEMORY:
gcvPOOL_SYSTEM:
Free : 113155584 B
Used : 21062144 B
MinFree : 82883816 B
MaxUsed : 51333912 B
Total : 134217728 B
gcvPOOL_CONTIGUOUS:
Used : 0 B
gcvPOOL_VIRTUAL:
Used : 0 B
NON PAGED MEMORY:
Used : 0 B
CMA memory info
type n pages bytes
cma 33794 138420224
0 Kudos
Reply