【问题标题】:Failed when build qtwayland in Yocto在 Yocto 中构建 qtwayland 时失败
【发布时间】:2020-11-20 13:07:38
【问题描述】:

我正在使用 Yocto Rocko 构建 qt 框架,在构建 qtwayland 包时遇到以下错误。

| ERROR: Error calling /LTSI4.9/R-Car_SKM3ULCB/LTSI4.4/porter/tmp/work/armv7vehf-neon-vfpv4-agl-linux-gnueabi/qtwayland/5.8.0+gitAUTOINC+0e2a950895-r0/recipe-sysroot-native/usr/bin/qt5/qmake -makefile -o Makefile       /LTSI4.9/R-Car_SKM3ULCB/LTSI4.4/porter/tmp/work/armv7vehf-neon-vfpv4-agl-linux-gnueabi/qtwayland/5.8.0+gitAUTOINC+0e2a950895-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 -no-feature-xcomposite-egl -no-feature-xcomposite-glx
| 
| Running configuration tests...
| Done running configuration tests.
| 
| Configure summary:
| 
| Qt Wayland Drivers:
|   EGL .................................... no
|   Rasberry Pi ............................ no
|   XComposite EGL ......................... no
|   XComposite GLX ......................... no
|   DRM EGL ................................ no
|   libhybris EGL .......................... no
| Qt Wayland Client ........................ yes
| Qt Wayland Compositor .................... yes
| 
| Note: No wayland-egl support detected. Cross-toolkit compatibility disabled.
| 
| ERROR: Feature 'wayland-egl' was enabled, but the pre-condition 'features.wayland-client && features.opengl && features.egl && libs.wayland-egl' failed.
| 
| ERROR: Feature 'wayland-egl' was enabled, but the pre-condition 'features.wayland-server && features.opengl && features.egl && libs.wayland-egl' failed.
| 
| Check config.log for details.
| 
| ERROR: Function failed: do_configure (log file is located at .../temp/log.do_configure.16034)

do_configure 任务的构建进度失败。我相信这是由于wayland-egl 的某些遗漏。有什么想法可以提供帮助吗?

【问题讨论】:

    标签: qt yocto qtwayland


    【解决方案1】:

    我尝试在 local.conf 的 DISTRO 功能中添加 Wayland 功能

    DISTRO_FEATURES_NATIVESDK_append = " wayland"
    DISTRO_FEATURES_append = " wayland"
    

    Yocto 构建现已成功。干杯!

    【讨论】:

    • 这个修复对我不起作用。我在日志中看到,Qt Wayland Drivers:| EGL .................... 不,
    • 你的平台好像没有libegl。
    • 如果需要,请在 local.conf 中添加更多行:PREFERRED_PROVIDER_virtual/egl = "libegl"(由 mesa 提供)。
    【解决方案2】:

    15.0 版 qtwayland 我遇到了同样的问题。

    我创建了包含的 qtwayland_%.bbappend 文件

    PACKAGECONFIG_remove_pn-qtwayland = "xcomposite-glx"
    

    或者在你的 local.conf 上面添加一行

    在我的情况下,问题解决了。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-12-27
      • 1970-01-01
      • 1970-01-01
      • 2022-08-05
      • 1970-01-01
      • 1970-01-01
      • 2021-10-14
      • 1970-01-01
      相关资源
      最近更新 更多