Closed ZikiHero closed 2 years ago
Here's what I have:
IMAGE_INSTALL_append = " qtbase-plugins qtwayland-plugins"
IMAGE_INSTALL_append = " wpewebkit-qtwpe-qml-plugin qt-wpe-simple-browser"
I haven't tried in thud recently though. The QA issue gives a good hint, your PACKAGECONFIG is incorrect. Here's the right one: PACKAGECONFIG_append_pn-wpewebkit = " qtwpe"
You are a lifesaver. I had to remove qtwayland-plugins
but I was able to finally build it. I am new to yocto/bitbake and was struggling to get some web browser to stm for a week. Thanks for your help.
Cool. Please let us know how WPE performs on your platform :) I'll close this specific issue though, now that it appears to be fixed on your side.
So result is: Probably because I removed qtwayland-plugins
the qt-wpe-simple-browser
is unable to run with this error:
qt.qpa_xcb xcb_shm_create_segment() failed for size 33177600
When I try to build it with qtwayland-plugins
I get following:
ERROR: qtwayland-5.11.2+gitAUTOINC+297bcd005c-r0 do_configure: Error calling /opt/stlinux-weston/build-openstlinuxweston-stm32mp1/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-openstlinux_weston-linux-gnueabi/qtwayland/5.11.2+gitAUTOINC+297bcd005c-r0/recipe-sysroot-native/usr/bin/qmake -makefile -o Makefile /opt/stlinux-weston/build-openstlinuxweston-stm32mp1/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-openstlinux_weston-linux-gnueabi/qtwayland/5.11.2+gitAUTOINC+297bcd005c-r0/git/qtwayland.pro -- -no-feature-drm-egl-server -no-feature-libhybris-egl-server -no-feature-wayland-brcm -feature-wayland-client -feature-wayland-egl -feature-wayland-server -feature-xcomposite-egl -feature-xcomposite-glx
ERROR: qtwayland-5.11.2+gitAUTOINC+297bcd005c-r0 do_configure: Function failed: do_configure (log file is located at /opt/stlinux-weston/build-openstlinuxweston-stm32mp1/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-openstlinux_weston-linux-gnueabi/qtwayland/5.11.2+gitAUTOINC+297bcd005c-r0/temp/log.do_configure.4144)
ERROR: Logfile of failure stored in: /opt/stlinux-weston/build-openstlinuxweston-stm32mp1/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-openstlinux_weston-linux-gnueabi/qtwayland/5.11.2+gitAUTOINC+297bcd005c-r0/temp/log.do_configure.4144
Log data follows:
| DEBUG: Executing shell function qmake5_base_preconfigure
| DEBUG: Shell function qmake5_base_preconfigure finished
| DEBUG: Executing shell function do_configure
| NOTE: qmake prevar substitution: ' '
| NOTE: qmake configure substitution: ' -no-feature-drm-egl-server -no-feature-libhybris-egl-server -no-feature-wayland-brcm -feature-wayland-client -feature-wayland-egl -feature-wayland-server -feature-xcomposite-egl -feature-xcomposite-glx'
|
| Running configuration tests...
| Done running configuration tests.
|
| Configure summary:
|
| Qt Wayland Drivers:
| EGL .................................... yes
| Raspberry Pi ........................... no
| XComposite EGL ......................... yes
| XComposite GLX ......................... no
| DRM EGL ................................ no
| libhybris EGL .......................... no
| Qt Wayland Client ........................ yes
| Qt Wayland Compositor .................... yes
| Qt Wayland Compositor Layer Plugins:
| VSP2 hardware layer integration ........ no
|
| ERROR: Feature 'xcomposite-glx' was enabled, but the pre-condition 'features.wayland-client && features.opengl && !features.opengles2 && features.xlib && libs.xcomposite && libs.glx' failed.
|
| ERROR: Feature 'xcomposite-glx' was enabled, but the pre-condition 'features.wayland-server && features.opengl && !features.opengles2 && libs.xcomposite && libs.glx' failed.
|
| Check config.log for details.
| ERROR: Error calling /opt/stlinux-weston/build-openstlinuxweston-stm32mp1/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-openstlinux_weston-linux-gnueabi/qtwayland/5.11.2+gitAUTOINC+297bcd005c-r0/recipe-sysroot-native/usr/bin/qmake -makefile -o Makefile /opt/stlinux-weston/build-openstlinuxweston-stm32mp1/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-openstlinux_weston-linux-gnueabi/qtwayland/5.11.2+gitAUTOINC+297bcd005c-r0/git/qtwayland.pro -- -no-feature-drm-egl-server -no-feature-libhybris-egl-server -no-feature-wayland-brcm -feature-wayland-client -feature-wayland-egl -feature-wayland-server -feature-xcomposite-egl -feature-xcomposite-glx
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_configure (log file is located at /opt/stlinux-weston/build-openstlinuxweston-stm32mp1/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-openstlinux_weston-linux-gnueabi/qtwayland/5.11.2+gitAUTOINC+297bcd005c-r0/temp/log.do_configure.4144)
ERROR: Task (/opt/stlinux-weston/layers/meta-qt5/recipes-qt/qt5/qtwayland_git.bb:do_configure) failed with exit code '1'
Since I just downloaded repo from STM from this tutorial and added single layer meta-webkit
, I suppose that STM has their image somehow configured and I shouldn't set it differently. I don't even know how.
I found out that in some layer is mentioned epiphany or minibrowser, so I am giving it a try with webkitgtk but that one has also some flaws:
error: invalid static_cast from type 'GLNativeWindowType' {aka 'long long unsigned int'} to type 'EGLNativeWindowType' {aka 'void*'}
I hope that, that one is solved in this issue
Can you enable DRM EGL
in QtWayland?
I haven't tried WPE with the XCB QPA at all. It should work in EGLFS and Wayland-EGL QPAs though.
Like I mentioned above I am a newbie in this so I have no idea how to enable it. It is in recipe of QtWayland or I have to do something with PACKAGECONFIG
and local.conf
From the log you included above, it looks like xcomposite-glx
conflicts with the wayland features. So try something like this maybe? PACKAGECONFIG_remove_pn-qtwayland = "xcomposite-glx"
Is x11
in your DISTRO_FEATURES
? Do you really need it? If not, try to remove it, might help. Or not.
My DISTRO_FEATURES
has only wayland. There is no x11 mentioned in local.conf
So right now I am trying to build it with this setting:
DISTRO_FEATURES_remove = "x11"
PACKAGECONFIG_remove_pn-qtwayland = "xcomposite-glx"
PACKAGECONFIG_append_pn-wpewebkit = " qtwpe"
PREFERRED_PROVIDER_virtual/wpebackend = "wpebackend-fdo"
IMAGE_INSTALL_append = " qtbase-plugins qtwayland-plugins"
IMAGE_INSTALL_append = " wpewebkit-qtwpe-qml-plugin qt-wpe-simple-browser"
I don't follow. If X11 is disabled, why are you trying to use the XCB QPA? I think you should consult with whoever maintains the STM-related meta layers you're using.
Build was successful. After adding export QT_QPA_PLATFORM=wayland
I was able to run the application, application window pop up, but the browser is still not running.
root@stm32mp1:~# qt-wpe-simple-browser
Using Wayland-EGL
Using the 'xdg-shell-v6' shell integration
veglBindWaylandDisplay (334): failed to authentify gbm_fd=0
Do you have a wayland compositor running? Weston?
Nothing with wayland
root@stm32mp1:~# ps -aux | grep weston
root 502 0.0 0.3 3824 1628 tty2 Ss+ 07:21 0:00 weston-launch -- --log=/var/log/weston.log
root 507 0.1 3.4 111208 15144 tty2 Sl+ 07:21 0:06 /usr/bin/weston --log=/var/log/weston.log
root 532 0.0 1.5 16684 6984 tty2 S+ 07:21 0:00 /usr/libexec/weston-keyboard
root 533 0.0 2.7 21848 12264 tty2 S+ 07:21 0:01 /usr/libexec/weston-desktop-shell
root 985 0.4 2.2 19036 10008 ? Ss 07:23 0:14 /usr/bin/weston-terminal
root 5299 0.0 0.0 1776 392 pts/1 S+ 08:19 0:00 grep weston
Weston is a Wayland compositor. So the browser should launch, but i've never seen this veglBindWaylandDisplay
error...
Looks like some STM-specific thing?
I was trying to search for it but I have nothing. I suppose the best action now would be to contact the maintainer of STM layer which you suggested before, right?
Right.
Ok, thank you for all your help you provided. If I found any solution I will write it here.
Hi! Have you found any solution to this problem? I've been struggling with the same problem for a while. Please let me know, if you have found out anything. Thank you!
This issue is stale because it has been open 365 days with no activity. Remove stale label or comment or this will be closed in 7 days.
This issue was closed because it has been stale for 7 days with no activity.
I can see that wpewebkit-qtwpe-qml-plugin is in recepies but I am getting this error: