[Interest] How to run Qt application on Wayland-ivi-extension

Yang Zhonghua happy2discover at gmail.com
Thu Dec 7 06:23:35 CET 2017


Hi Macieira,

First of all, thank you for your time.

I followed your advice, after launching Weston(ivi-shell):


I executed the following lines:

    export QT_QPA_PLATFORM=wayland
    ./hello-qt-quick2

And I got:

    Using Wayland-EGL

But nothing happened in the screen.
​
I did it again with "WAYLAND_DEBUG=1". Here are the logs:

[1000557.894]  -> wl_display at 1.get_registry(new id wl_registry at 2)
[1000558.359]  -> wl_display at 1.sync(new id wl_callback at 3)
[1000559.076] wl_display at 1.delete_id(3)
[1000559.244] wl_registry at 2.global(1, "wl_compositor", 3)
[1000559.443]  -> wl_registry at 2.bind(1, "wl_compositor", 3, new id
[unknown]@4)
[1000559.638] wl_registry at 2.global(2, "wl_subcompositor", 1)
[1000559.791] wl_registry at 2.global(3, "wl_scaler", 2)
[1000559.929] wl_registry at 2.global(4, "presentation", 1)
[1000560.061] wl_registry at 2.global(5, "wl_data_device_manager", 2)
[1000560.238]  -> wl_registry at 2.bind(5, "wl_data_device_manager", 1, new id
[unknown]@5)
[1000560.418] wl_registry at 2.global(6, "wl_shm", 1)
[1000560.554]  -> wl_registry at 2.bind(6, "wl_shm", 1, new id [unknown]@6)
[1000560.719] wl_registry at 2.global(7, "wl_viv", 1)
[1000560.854] wl_registry at 2.global(8, "wl_viv", 1)
[1000560.987] wl_registry at 2.global(9, "wl_output", 2)
[1000561.171]  -> wl_registry at 2.bind(9, "wl_output", 2, new id [unknown]@7)
[1000561.399]  -> wl_display at 1.sync(new id wl_callback at 8)
[1000561.500] wl_registry at 2.global(10, "wl_seat", 4)
[1000561.697]  -> wl_registry at 2.bind(10, "wl_seat", 3, new id [unknown]@9)
[1000561.925]  -> wl_data_device_manager at 5.get_data_device(new id
wl_data_device at 10, wl_seat at 9)
[1000562.098] wl_registry at 2.global(11, "wl_input_panel", 1)
[1000562.323] wl_registry at 2.global(12, "wl_input_method", 1)
[1000562.462] wl_registry at 2.global(13, "wl_text_input_manager", 1)
[1000562.637]  -> wl_registry at 2.bind(13, "wl_text_input_manager", 1, new id
[unknown]@11)
[1000562.814] wl_registry at 2.global(14, "ivi_application", 1)
[1000562.954] wl_registry at 2.global(15, "ivi_hmi_controller", 1)
[1000563.089] wl_callback at 3.done(1)
[1000563.595] wl_display at 1.delete_id(8)
[1000563.725] wl_output at 7.geometry(0, 0, -1, -1, 0, "unknown", "DISP4 BG",
0)
[1000563.980] wl_output at 7.scale(1)
[1000564.060] wl_output at 7.mode(3, 1280, 800, 64216)
[1000564.200] wl_output at 7.done()
[1000564.331] wl_callback at 8.done(1)
[1000564.412] wl_seat at 9.capabilities(6)
[1000564.591]  -> wl_seat at 9.get_keyboard(new id wl_keyboard at 8)
[1000564.761]  -> wl_seat at 9.get_touch(new id wl_touch at 3)
[1000564.926] wl_seat at 9.name("default")
[1000565.548]  -> wl_shm at 6.create_pool(new id wl_shm_pool at 12, fd 6, 4096)
[1000566.152]  -> wl_shm_pool at 12.resize(8832)
[1000566.437]  -> wl_shm_pool at 12.resize(18624)
Using Wayland-EGL
[1000661.193]  -> wl_display at 1.get_registry(new id wl_registry at 13)
[1000661.324]  -> wl_display at 1.sync(new id wl_callback at 14)
[1000661.769] wl_display at 1.delete_id(14)
[1000661.829] wl_registry at 13.global(1, "wl_compositor", 3)
[1000661.892] wl_registry at 13.global(2, "wl_subcompositor", 1)
[1000661.948] wl_registry at 13.global(3, "wl_scaler", 2)
[1000661.999] wl_registry at 13.global(4, "presentation", 1)
[1000662.048] wl_registry at 13.global(5, "wl_data_device_manager", 2)
[1000662.099] wl_registry at 13.global(6, "wl_shm", 1)
[1000662.196] wl_registry at 13.global(7, "wl_viv", 1)
[1000662.254]  -> wl_registry at 13.bind(7, "wl_viv", 1, new id [unknown]@15)
[1000662.324] wl_registry at 13.global(8, "wl_viv", 1)
[1000662.378]  -> wl_registry at 13.bind(8, "wl_viv", 1, new id [unknown]@16)
[1000662.444] wl_registry at 13.global(9, "wl_output", 2)
[1000662.494] wl_registry at 13.global(10, "wl_seat", 4)
[1000662.545] wl_registry at 13.global(11, "wl_input_panel", 1)
[1000662.594] wl_registry at 13.global(12, "wl_input_method", 1)
[1000662.643] wl_registry at 13.global(13, "wl_text_input_manager", 1)
[1000662.692] wl_registry at 13.global(14, "ivi_application", 1)
[1000662.741] wl_registry at 13.global(15, "ivi_hmi_controller", 1)
[1000662.791] wl_callback at 14.done(1)
[1000844.474]  -> wl_compositor at 4.create_surface(new id wl_surface at 14)
[1000844.663]  -> wl_surface at 14.set_buffer_scale(1)
[1000844.811]  -> wl_surface at 14.set_buffer_transform(0)
[1000844.865]  -> wl_surface at 14.commit()
[1000845.421] wl_keyboard at 8.keymap(1, fd 6, 45094)
[1000878.143]  -> wl_compositor at 4.create_surface(new id wl_surface at 17)
[1000889.400]  -> wl_surface at 17.destroy()
[1000978.832]  -> wl_viv at 16.create_buffer(new id wl_buffer at 18, 326, 273,
1344, 212, 6, 7, 6)
[1000979.893]  -> wl_surface at 14.frame(new id wl_callback at 19)
[1000979.994]  -> wl_surface at 14.attach(wl_buffer at 18, 0, 0)
[1000980.070]  -> wl_surface at 14.damage(0, 0, 326, 273)
[1000980.144]  -> wl_surface at 14.commit()

B.R.&Thanks,
Yang Zhonghua
happy2discover at gmail.com


On Tue, Dec 5, 2017 at 12:24 AM, Thiago Macieira <thiago.macieira at intel.com>
wrote:

> On Monday, 4 December 2017 01:08:19 PST Yang Zhonghua wrote:
> > Hi,
> >
> > I have installed Wayland, Weston and Wayland-ivi-extension.
> > Then I got stuck...
> > I don't know how to run Qt application on Wayland-ivi-extension.
> >
> > Does anybody could give some advice? Thanks so much!
>
> Set in your environment:
>
> QT_QPA_PLATFORM=wayland
>
> --
> Thiago Macieira - thiago.macieira (AT) intel.com
>   Software Architect - Intel Open Source Technology Center
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20171207/6f17d97b/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ivi-shell.jpg
Type: image/jpeg
Size: 178222 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20171207/6f17d97b/attachment.jpg>


More information about the Interest mailing list