Re: QtwaylandCompositor initialize error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,


Can you check config.summary file which is generated during configure in qtbase?

When gbm is available and enabled, a plugin called libqeglfs-kms-integration.so will be built.


I recommend you to start simpler Qt apps such as qmlscene first with -platform eglfs. If it works, any QtWaylandCompositor apps should work with eglfs as a wayland compositor.

Best Regards,

--

Tasuku Suzuki
Director of Engineering, Japan

tQCS K.K. - the Qt Consulting Solution
8F, Shinagawa Grand Central Tower, 2-16-4 Konan, Minato-ku, Tokyo, 108-0075 Japan
M. +81 70 4001 0910 | Skype. Tasuku.Suzuki




差出人: automotive-discussions-bounces@xxxxxxxxxxxxxxxxxxxxxxxxx <automotive-discussions-bounces@xxxxxxxxxxxxxxxxxxxxxxxxx> が Zhou, Mingying <zhoumy@xxxxxxxxxxxxxx> の代理で送信
送信日時: 2019年6月20日 21:17
宛先: automotive-discussions@xxxxxxxxxxxxxxxxxxxxxxxxx
件名: QtwaylandCompositor initialize error
 
Hi

When I use the example code minimal-qml(qtwaylandcompositor example),
The bellow error message is output.
-------------
m3ulcb:~/wayland/minimal-qml#killall weston
m3ulcb:~/wayland/minimal-qml# ./minimal-qml -platform eglfs
Could not initialize egl display
Aborted (core dumped)
-------------

And I check the reason is that file "/run/user/0/wayland-0" is not found.
The strace detail is appendix "strace.log".
Do anyone met the same problem before?
Or Can you give me any advice to deal with this problem?


The below is the details
1 Before I run the command ./minimal-qml,
  I add the eglfs to qtbase_%.bbappend, and make new agl-demo-platform image.
- PACKAGECONFIG_GL = "${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gles2', '', d)}"
+ PACKAGECONFIG_GL = "${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gles2 eglfs', '', d)}"

2 After building image, I write it to a sd card, and start AGL.
And I check that the eglfs plugin is installed.(See below )
-------------------------------------------------------
m3ulcb:~/wayland/minimal-qml# rpm -ql qtbase-plugins-5.9.7+git0+81b29a44d2-r0.aarch64
/usr
/usr/lib
/usr/lib/qt5
/usr/lib/qt5/plugins
/usr/lib/qt5/plugins/bearer
/usr/lib/qt5/plugins/bearer/libqconnmanbearer.so
/usr/lib/qt5/plugins/bearer/libqgenericbearer.so
/usr/lib/qt5/plugins/bearer/libqnmbearer.so
/usr/lib/qt5/plugins/egldeviceintegrations
/usr/lib/qt5/plugins/egldeviceintegrations/libqeglfs-emu-integration.so
/usr/lib/qt5/plugins/generic
/usr/lib/qt5/plugins/generic/libqevdevkeyboardplugin.so
/usr/lib/qt5/plugins/generic/libqevdevmouseplugin.so
/usr/lib/qt5/plugins/generic/libqevdevtabletplugin.so
/usr/lib/qt5/plugins/generic/libqevdevtouchplugin.so
/usr/lib/qt5/plugins/generic/libqtuiotouchplugin.so
/usr/lib/qt5/plugins/imageformats
/usr/lib/qt5/plugins/imageformats/libqjpeg.so
/usr/lib/qt5/plugins/platforminputcontexts
/usr/lib/qt5/plugins/platforminputcontexts/libibusplatforminputcontextplugin.so
/usr/lib/qt5/plugins/platforms
/usr/lib/qt5/plugins/platforms/libqeglfs.so
/usr/lib/qt5/plugins/platforms/libqminimal.so
/usr/lib/qt5/plugins/platforms/libqminimalegl.so
/usr/lib/qt5/plugins/platforms/libqoffscreen.so
/usr/lib/qt5/plugins/platforms/libqvnc.so
/usr/lib/qt5/plugins/sqldrivers
/usr/lib/qt5/plugins/sqldrivers/libqsqlite.so
-------------------------------------------------------

2 the env of my environment is
-------------
m3ulcb:~# export QT_QPA_EGLFS_KMS_CONFIG="/etc/kms.conf"                                       
m3ulcb:~# export XDG_RUNTIME_DIR=/run/user/0                                   
m3ulcb:~# env                                  
LD_LIBRARY_PATH=/usr/lib                                       
EDITOR=vi                                      
XDG_SESSION_ID=c1                                      
HUSHLOGIN=FALSE                                
USER=root                                      
PWD=/home/0                                    
HOME=/home/0                                   
QT_QPA_EGLFS_KMS_CONFIG=/etc/kms.conf                                  
MAIL=/var/spool/mail/root                                      
SHELL=/bin/sh                                  
TERM=xterm                                     
SHLVL=1                                
QT_QPA_PLATFORM=wayland                                
LOGNAME=root                                   
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/0/bus                                     
XDG_RUNTIME_DIR=/run/user/0                                    
PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin                                      
PS1=\h:\w\$                                    
_=/usr/bin/env 
---------------------



Best regards, Zhou Mingying
-----------------------------------------------------------------------------
Nanjing Fujitsu Nanda Software Tech. Co., Ltd.(FNST)
No.6 Wenzhu Road, Nanjing, 210012, China
TEL: +86+25-86630566-8498
COINS: 79988498
FAX: +86+25-83317685
Mail: zhoumy@xxxxxxxxxxxxxx
-----------------------------------------------------------------------------




_______________________________________________
automotive-discussions mailing list
automotive-discussions@xxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linuxfoundation.org/mailman/listinfo/automotive-discussions

[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux