qt5 application is not work with frame-buffer backend.

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

qt5 application is not work with frame-buffer backend.

ソリューションへジャンプ
4,217件の閲覧回数
seyoungkim
Contributor II

i have some question about qt5 cross-compile with i.mx6ulevk kit.

i want to remove x11 so i set back-end to frame buffer and bitbake fsl-image-qt5.

and then i set the cross-compile environment with QtCreator. it's fine.

but where i try to execute my application at target board (imx6ulevk ) it's not work with below message.

"Could not connect to display"

i tried too.

>export DISPLAY:0.0

>xhost +

./application-name -platform qws

./application-name -platform xcb

all result are same. :smileysad:

Is there something missing what i did?

ラベル(4)
1 解決策
2,607件の閲覧回数
gary_bisson
Senior Contributor III

Hi,

You need to build the 'linuxfb' Qt back-end. The eglfs one will not work on mx6ul since there's no GPU.

Regards,

Gary

元の投稿で解決策を見る

4 返答(返信)
2,607件の閲覧回数
LuisCasado
NXP Employee
NXP Employee

Hello,

Have you tried? ./application -qws

Luis

2,607件の閲覧回数
seyoungkim
Contributor II

thank Luis.

i have tried like this... same... :smileysad:

root@imx6ulevk:~# ./t1 -qws

This application failed to start because it could not find or load the Qt platform plugin "xcb".

Available platform plugins are: eglfs, minimal, minimalegl, offscreen.

Reinstalling the application may fix this problem.

Aborted

0 件の賞賛
返信
2,607件の閲覧回数
seyoungkim
Contributor II

and I have tried to like this... it's same too with error message...

root@imx6ulevk:~# ./t1 -platform eglfs

MESA-LOADER: malformed or no PCI ID

gbm: failed to open any driver (search paths /usr/lib/dri)

gbm: Last dlopen error: /usr/lib/dri/vivante_dri.so: cannot open shared object file: No such file or directy

failed to load driver: vivante

gbm: failed to open any driver (search paths /usr/lib/dri)

gbm: Last dlopen error: /usr/lib/dri/kms_swrast_dri.so: cannot open shared object file: No such file or diry

failed to load driver: kms_swrast

gbm: failed to open any driver (search paths /usr/lib/dri)

gbm: Last dlopen error: /usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directoy

failed to load swrast driver

failed to load module: /usr/lib/gbm/gbm_gallium_drm.so: cannot open shared object file: No such file or diry

Could not initialize egl display

Aborted

0 件の賞賛
返信
2,608件の閲覧回数
gary_bisson
Senior Contributor III

Hi,

You need to build the 'linuxfb' Qt back-end. The eglfs one will not work on mx6ul since there's no GPU.

Regards,

Gary