> On Thu, 20 Jun 2019 12:17:34 +0000 > "Zhou, Mingying" <zhoumy@xxxxxxxxxxxxxx> wrote: > > > 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? > > Hi Mingying, > > The weston socket is in /run/platform/display/wayland-0 > > During normal boot, a user session is initialized for running > applications. The creation of this user session normally creates the > link /run/user/UID/wayland-O -> /run/platform/display/wayland-O > > Using SSH or console, when I boot on master, I see the link created for > root. > Hi José Thanks for your reply. "/run/user/UID/wayland-O " file is created when reboot . This file is created by Weston. My Goal is replace Weston by QtWaylandCompositor(example: minimal-qml), So I run the command "killall weston" to stop Weston. When I stop the Weston, the file "/run/user/UID/wayland-O " disappeared. So when I run the command "./minimal-qml -platform eglfs", error message is output and aborted. I guess a Qt program may create the socket file "/run/user/UID/wayland-O ", but I do not know which program. If as Weston, ./minimal-qml should first create the socket file then connect it, but now it seems connect it first. Best regard Zhou Mingying > > > > 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/libibusplatforminputcontextplugi > n.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