qt5 application is not work with frame-buffer backend.

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

qt5 application is not work with frame-buffer backend.

Jump to solution
2,803 Views
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?

Labels (4)
1 Solution
1,193 Views
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

View solution in original post

4 Replies
1,193 Views
LuisCasado
NXP Employee
NXP Employee

Hello,

Have you tried? ./application -qws

Luis

1,193 Views
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 Kudos
1,193 Views
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 Kudos
1,194 Views
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