How can I run a Qt applicaton on ivi-shell?

Johan Helsing johan.helsing at
Wed Dec 6 05:41:39 EST 2017

Also, it's a good idea to post the application output, and also the output with WAYLAND_DEBUG=1, and perhaps a stack trace if appropriate.

It's hard to give meaningful advice when all we now is "couldn't run".


Johan Helsing

From: genivi-ivi-layer-management <genivi-ivi-layer-management-bounces at> on behalf of zhangyang <zhangyang-0206 at>
Sent: Wednesday, December 6, 2017 10:34:06 AM
To: Yang Zhonghua
Cc: genivi-ivi-layer-management at
Subject: Re:How can I run a Qt applicaton on ivi-shell?

Hi yang:
1. If you want your qt application run with ivi-shell, you should export QT_WAYLAND_SHELL_INTEGRATION=ivi-shell first.

2. I don't know your qt version, if it is >= 5.7,  you can set QT_IVI_SURFACE_ID to specify ivi-surface-id for your qt app. follows this:
else if it is <5.7, you should apply genivi-ivi patch here:

3. Be sure your ubuntu already have genivi-ivi-extension support

good luck!

At 2017-12-06 09:30:09, "Yang Zhonghua" <happy2discover at> wrote:
>Hi guys,
>I am new to wayland.
>The ivi-shell demo could run correctly on Ubuntu 17.10 so far.
>1. I made a hello-world Qt Quick2 application and tried to make it managed
>by ivi-shell.
>2. Two fullscreen applications could run on diffrent layers at the same
>time. The bottom one could show directly when the top one exits.
>I copied weston.ini in ivi-shell folder and added the following lines.
>But the hello-world Qt Quick2 application couldn't run on ivi-shell.
>AFAIK, the Qt application should make a request to generate surface-id.
>Anybody knows how to do it? Thanks so much!
>I've been stuck for almost one month...
>genivi-ivi-layer-management mailing list
>genivi-ivi-layer-management at
genivi-ivi-layer-management mailing list
genivi-ivi-layer-management at

More information about the genivi-ivi-layer-management mailing list