简体   繁体   English

无法使用 bitbake 编译 X11

[英]Unable to compile X11 with bitbake

I've added我已经添加

DISTRO_FEATURES_append = " x11"

to my local.conf as I will need access to Xrandr (which depends on X11).到我的local.conf ,因为我需要访问Xrandr (这取决于 X11)。 As soon as I add x11 to the DISTRO_FEATURES, I keep getting the following when invoking bitbake:将 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 on openembedded.org appears to be at version 10.0 only: https://layers.openembedded.org/layerindex/recipe/131409/ How can I get this resolved? libgbm上的 libgbm 似乎只有10.0版: https://layers.openembedded.org/layerindex/recipe/131409/我怎样才能解决这个问题?

One way to fix it is to change the xserver-xorg's PACKAGECONFIG and remove the need for GBM.修复它的一种方法是更改 xserver-xorg 的PACKAGECONFIG并删除对 GBM 的需要。 Looking at the poky/meta/recipes-graphics/xorg-xserver/xserver-xorg.inc , GBM is only mentioned in this line:查看poky/meta/recipes-graphics/xorg-xserver/xserver-xorg.inc ,仅在这一行中提到了 GBM:

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

Sadly, just removing the virtual/libgbm is not enough and you also need to disable glamor completely while keeping the libepoxy package.遗憾的是,仅删除virtual/libgbm是不够的,您还需要在保留libepoxy package 的同时完全禁用魅力。

So I suggest you create a xserver-xorg_1.20.8.bbappend file which the following content:所以我建议你创建一个xserver-xorg_1.20.8.bbappend文件,其中包含以下内容:

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

I know it is a hack.我知道这是一个黑客。 But it fixes your issue但它解决了你的问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM