簡體   English   中英

無法使用 bitbake 編譯 X11

[英]Unable to compile X11 with bitbake

我已經添加

DISTRO_FEATURES_append = " x11"

到我的local.conf ,因為我需要訪問Xrandr (這取決於 X11)。 將 x11 添加到 DISTRO_FEATURES 后,我在調用 bitbake 時不斷收到以下信息:

| checking for GLAMOR... yes
| checking for GBM... no
| configure: error: Glamor for Xorg requires gbm >= 10.2.0
| NOTE: The following config.log files may provide further information.
| NOTE: /home/yocto/rzg_vlp_v3.0.0/build/tmp/work/aarch64-poky-linux/xserver-xorg/2_1.20.8-r0/build/config.log
| ERROR: configure failed
| WARNING: exit code 1 from a shell command.
| ERROR: Execution of '/home/yocto/rzg_vlp_v3.0.0/build/tmp/work/aarch64-poky-linux/xserver-xorg/2_1.20.8-r0/temp/run.do_configure.143696' failed with exit code 1
ERROR: Task (/home/yocto/rzg_vlp_v3.0.0/build/../poky/meta/recipes-graphics/xorg-xserver/xserver-xorg_1.20.8.bb:do_configure) failed with exit code '1'
NOTE: Tasks Summary: Attempted 4840 tasks of which 4796 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  /home/yocto/rzg_vlp_v3.0.0/build/../poky/meta/recipes-graphics/xorg-xserver/xserver-xorg_1.20.8.bb:do_configure

libgbm上的 libgbm 似乎只有10.0版: https://layers.openembedded.org/layerindex/recipe/131409/我怎樣才能解決這個問題?

修復它的一種方法是更改 xserver-xorg 的PACKAGECONFIG並刪除對 GBM 的需要。 查看poky/meta/recipes-graphics/xorg-xserver/xserver-xorg.inc ,僅在這一行中提到了 GBM:

PACKAGECONFIG[glamor] = "--enable-glamor,--disable-glamor,libepoxy virtual/libgbm,libegl"

遺憾的是,僅刪除virtual/libgbm是不夠的,您還需要在保留libepoxy package 的同時完全禁用魅力。

所以我建議你創建一個xserver-xorg_1.20.8.bbappend文件,其中包含以下內容:

PACKAGECONFIG[glamor] = "--disable-glamor,--disable-glamor,libepoxy,libegl"

我知道這是一個黑客。 但它解決了你的問題

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM