arm - Qt application trying to load platform plugin "xcb" instead of "eglfs" -


built raspberry pi 2 linux distro including qt5.4 + qtwebkit + qml plugin using yocto on fido branch see tutorial

testing following qml script

root@raspberrypi2:~# more webkit3.qml  import qtquick 2.0 import qtquick.controls 1.0 import qtwebkit 3.0  scrollview {     width: 640     height: 480     webview {         id: webview         url: "http://qt-project.org"         anchors.fill: parent         onnavigationrequested: {             // detect url scheme prefix, external link             var schemare = /^\w+:/;             if (schemare.test(request.url)) {                 request.action = webview.acceptrequest;             } else {                 request.action = webview.ignorerequest;                 // delegate request.url here             }         }     } } 

the error message

this application failed start because not find or load qt platform plugin "xcb"

looks it's still try start xcb plugin relates x11 whereas specified eglfs (??)

root@raspberrypi2:~# /usr/bin/qt5/qmlscene  webkit3.qml -platform eglfs unable query physical screen size, defaulting 100 dpi. override, set qt_qpa_eglfs_physical_width , qt_qpa_eglfs_physical_height (in millimeters). application failed start because not find or load qt platform plugin "xcb".  available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen.  reinstalling application may fix problem. 

any ideas why getting issue?

qt5 plugins platforms installed

root@raspberrypi2:/usr/lib/qt5/plugins/platforms# ls -al drwxr-xr-x    2 root     root          4096 jun 12 12:59 . drwxr-xr-x   18 root     root          4096 jun 12 13:03 .. -rwxr-xr-x    1 root     root        601864 jun 11 15:19 libqeglfs.so -rwxr-xr-x    1 root     root        499564 jun 11 15:19 libqlinuxfb.so -rwxr-xr-x    1 root     root         20576 jun 11 15:19 libqminimal.so -rwxr-xr-x    1 root     root        478500 jun 11 15:19 libqminimalegl.so -rwxr-xr-x    1 root     root        465740 jun 11 15:19 libqoffscreen.so 

please not refer me this or this issues. message same not don't think same cause.

maybe qmlscene eating arguments -- pass -platform option before name of qml file, or set qt_qpa_platform environment variable eglfs instead of command line parameter.

for future, might want make eglfs default choice configuring qt -qpa eglfs.


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -