我已经按照此处的说明在 raspberrypi2 上完成了 qt5 的构建:http : //www.embarcados.com.br/raspberry-pi-2-qt5-yocto-parte-1/ 我的下一个目标是使用 wayland 和 egl 构建 chromium . 我从“ https://github.com/OSSystems/meta-browser ”添加了一层。
实际上,我可以使用 x11 成功构建 Chromium,但使用 Wayland 仍然失败。我为wayland 做的事情是用 DISTRO_FEATURES_append = "wayland" 添加 "wayland" 并用 DISTRO_FEATURES_remove = " x11" 删除 x11。
但是,这会产生错误,并且错误消息提到缺少“egl.pc”和“wayland-egl.pc”。除了 chromium.inc 中的那些组件之外,我是否应该在“DEPENDS”部分添加更多组件,这些组件将被预先构建并创建这两个包配置文件?显示的构建配置和错误消息如下所示。
构建配置:BB_VERSION = "1.26.0" BUILD_SYS = "x86_64-linux" NATIVELSBSTRING = "Ubuntu-14.04" TARGET_SYS = "arm-poky-linux-gnueabi" MACHINE = "raspberrypi2" DISTRO = "poky" DISTRO_VERSION = "1.8" TUNE_FEATURES = "arm armv7a vfp thumb neon callconvention-hard vfpv4 cortexa7" TARGET_FPU = "vfp-vfpv4-neon" meta-embarcados meta-rpi = "fido:dfb2e27bf26b109fc6ccb3bc91924fb3bb24f655" meta-qt5 = "fido:fc026381545650e10fdd488d5b2a3b2d78f87793" meta-raspberrypi = "fido :b896a7da70dd7a16ba7ffd664f7747cb37e1d142" 元 oe 元红宝石元侏儒 = "fido:10d3c8f85280a0bf867a8e4f84bcda81c290d28e"元元yocto =“fido:cd2c9acdbd75c83790e8144d2a834f5b5de35df0”元浏览器=“master:ca96f4326345dcd779fc539877a04f069f431749”
注意:准备 RunQueue 注意:执行 SetScene 任务 注意:执行 RunQueue 任务 错误:函数失败:do_configure(日志文件位于 /home/paul/yocto/build-browser-fido/tmp/work/cortexa7hf-vfp-vfpv4-neon -poky-linux-gnueabi/chromium/40.0.2214.91-r0/temp/log.do_configure.13805)错误:失败日志文件存储在:/home/paul/yocto/build-browser-fido/tmp/work/cortexa7hf- vfp-vfpv4-neon-poky-linux-gnueabi/chromium/40.0.2214.91-r0/temp/log.do_configure.13805
从 gyp 文件更新项目... 在 pkg-config 搜索路径中找不到包 xcb-shm。或许您应该将包含
xcb-shm.pc' to the PKG_CONFIG_PATH environment variable Package 'xcb-shm', required by 'cairo', not found gyp: Call to 'pkg-config --cflags pangocairo pangoft2' returned exit status 1. Requested 'egl >= 9.1.3' but version of egl is 0.0 Package wayland-egl was not found in the pkg-config search path. Perhaps you should add the directory containing
wayland-egl.pc' 的目录添加到 PKG_CONFIG_PATH 环境变量中 No package 'wayland-egl' found gyp: Call to 'pkg-config --cflags "egl >= 9.1.3" "wayland-client > = 1.4.0" >>
非常感谢您的帮助。