Re: QtwaylandCompositor initialize error

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

 



Hi Suzuki-san

I’m very sorry that I  have another question.
Does Qt Compositor support  ivi-wm protocol?
Or how can I make Qt Compositor support ivi-wm protocol?

My Goal is to use Qt Wayland Compositor to instead of Weston.
When I kill Weston, start qt compositor(example: minimal-qml),
Then I  try to start agl-windowmanager , the error message “ivi_wm is not available” is output.
the detail error message is as bellow
--------------------
May  8 17:32:28 m3ulcb daemon.info afbd-windowmanager-service@0.1[4276]: ivi_wm not available
May  8 17:32:28 m3ulcb daemon.info afbd-windowmanager-service@0.1[4276]: [Warning] The ilm_control_context is already destroyed
May  8 17:32:28 m3ulcb daemon.info afbd-windowmanager-service@0.1[4276]: [3081716.595] [wm ERROR] [wm_layer_control.cpp, init(), Line:88] >>> Wait to start weston ...
--------------------
It seems that agl-windowmanager -service  needs wayland-ivi-extension’s ivi_wm protocol.
Weston support  ivi-wm, so agl-windowmanager-service can work with Weston well,
and QtCompositor does not support  ivi-wm, so agl-windowmanager-service can’t work.

Then  I compared the protocols supported by QtCompositor and Weston,
The Weston just supports ivi-application and ivi-hmi-controller.
And QtCompositor supports ivi-application and ivi-controller.
Maybe I should make QtCompositor use ivi-controller protocol. ( the ivi-controller is supported by QtCompositor, but it seems no one use it)
Can you give me some advices?
Thanks.

-----------------------------------------
Wayland-ivi-extension supports the bellow protocols:
ivi-application.xml
ivi-input.xml
ivi-share.xml
ivi-wm.xml

QtCompositor supports the bellow protocols:
ivi-application.xml
ivi-controller.xml
https://doc.qt.io/qt-5.9/qtwaylandcompositor-attribution-wayland-ivi-extension-protocol.html

Weston supports the bellow protocols:
ivi-application.xml
ivi-hmi-controller.xml
-----------------------------------------

Best Regards
Zhou Mingying


From: automotive-discussions-bounces@xxxxxxxxxxxxxxxxxxxxxxxxx <automotive-discussions-bounces@xxxxxxxxxxxxxxxxxxxxxxxxx> On Behalf Of Zhou, Mingying
Sent: Friday, June 21, 2019 4:06 PM
To: Tasuku Suzuki <Tasuku.Suzuki@xxxxxx>; automotive-discussions@xxxxxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  QtwaylandCompositor initialize error

Hi Suzuki-san

Thank you very much
When I add kms and gbm, it seems that the program can work.
Thanks.

Best regards
Zhou Mingying

From: Tasuku Suzuki <Tasuku.Suzuki@xxxxxx<mailto:Tasuku.Suzuki@xxxxxx>>
Sent: Thursday, June 20, 2019 9:26 PM
To: Zhou, Mingying/周 明英 <zhoumy@xxxxxxxxxxxxxx<mailto:zhoumy@xxxxxxxxxxxxxx>>; automotive-discussions@xxxxxxxxxxxxxxxxxxxxxxxxx<mailto:automotive-discussions@xxxxxxxxxxxxxxxxxxxxxxxxx>
Subject: RE:  QtwaylandCompositor initialize error


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.
https://code.qt.io/cgit/qt/qtbase.git/tree/src/plugins/platforms/eglfs/deviceintegration/deviceintegration.pro?h=5.9

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<mailto:automotive-discussions-bounces@xxxxxxxxxxxxxxxxxxxxxxxxx> <automotive-discussions-bounces@xxxxxxxxxxxxxxxxxxxxxxxxx<mailto:automotive-discussions-bounces@xxxxxxxxxxxxxxxxxxxxxxxxx>> が Zhou, Mingying <zhoumy@xxxxxxxxxxxxxx<mailto:zhoumy@xxxxxxxxxxxxxx>> の代理で送信
送信日時: 2019年6月20日 21:17
宛先: automotive-discussions@xxxxxxxxxxxxxxxxxxxxxxxxx<mailto: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)}<mailto:$%7b@bb.utils.contains('DISTRO_FEATURES',%20'opengl',%20'gles2',%20'',%20d)%7d>"
+ PACKAGECONFIG_GL = "${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gles2 eglfs', '', d)}<mailto:$%7b@bb.utils.contains('DISTRO_FEATURES',%20'opengl',%20'gles2%20eglfs',%20'',%20d)%7d>"

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<mailto: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