Qt Example in Different Environment with imx6DL

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Qt Example in Different Environment with imx6DL

1,369件の閲覧回数
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!

ラベル(4)
タグ(2)
0 件の賞賛
返信
4 返答(返信)

1,085件の閲覧回数
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 件の賞賛
返信

1,085件の閲覧回数
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 件の賞賛
返信

1,085件の閲覧回数
joanxie
NXP TechSupport
NXP TechSupport

what bsp version or gpu version do you use?

0 件の賞賛
返信

1,085件の閲覧回数
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 件の賞賛
返信