I'm trying to compile the Yocto Pocky linux with Midori 0.5.2 browser (web kiosk image) and I get the next error (after solving a lot of previously errors):
我正在尝试用Midori 0.5.2浏览器(web kiosk图像)编译Yocto Pocky linux,然后我得到了下一个错误(解决了很多以前的错误):
...
…
| Checking for x11 : 1.6.3
|检查x11: 1.6.3
| Checking for header X11/extensions/scrnsaver.h : yes
|检查header X11/extensions/scrnsaver。h:是的
| Checking for library Xss : yes
|图书馆Xss:是的
| Checking for gtk+-2.0 >= 2.16.0 : 2.24.28
|检查gtk+-2.0 >= 2.16.0: 2.24.28
| Checking for webkit-1.0 >= 1.1.17 : Package webkit-1.0 was not found in the pkg-config search path.
|检查webkit-1.0 >= 1.1.17:在pkg-config搜索路径中没有找到包webkit-1.0。
| Perhaps you should add the directory containing `webkit-1.0.pc'
也许您应该添加包含“webkit-1.0.pc”的目录
| to the PKG_CONFIG_PATH environment variable
|到PKG_CONFIG_PATH环境变量
| No package 'webkit-1.0' found
|没有发现“webkit-1.0”包
| /home/jdavid/workspace/Yocto_k4/fsl-release-bsp/kiosk-build/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/midori/0.5.2-r0/midori-0.5.2/wscript:190: error: the configuration failed (see '/home/jdavid/workspace/Yocto_k4/fsl-release-bsp/kiosk-build/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/midori/0.5.2-r0/midori-0.5.2/_build/config.log')
/ / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / /
| WARNING: exit code 2 from a shell command.
|警告:从shell命令中退出代码2。
| ERROR: Function failed: do_configure (log file is located at /home/jdavid/workspace/Yocto_k4/fsl-release-bsp/kiosk-build/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/midori/0.5.2-r0/temp/log.do_configure.20685)
|错误:函数失败:do_configure(日志文件位于/home/ jdavid/workspace/y_k4 /fsl-release-bsp/kiosk-build/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/midori/0.5.2-r0/temp/log.do_configure.20685)
ERROR: Task 1768 (/home/jdavid/workspace/Yocto_k4/fsl-release-bsp/sources/meta-web-kiosk/recipes-browser/midori/midori_0.5.2.bb, do_configure) failed with exit code '1' ...
错误:1768(/ home / jdavid任务/工作/ Yocto_k4 / fsl-release-bsp /资源/ meta-web-kiosk / recipes-browser /美岛绿/ midori_0.5.2。bb, do_configure)退出码“1”失败…
The PKG_CONFIG_PATH variable is set properly, including the directory which contains the "webkit-1.0.pc" file.
PKG_CONFIG_PATH变量被正确设置,包括包含“webkit-1.0”的目录。电脑”文件。
I'm installed all required libraries and dependencies that I've found as solutions but not work for me:
我已经安装了所有需要的库和依赖项,这些都是我找到的解决方案,但对我不起作用:
$ sudo apt-get install libunique-dev libnotify libgtk2.0-dev libwebkit-dev libxml2-dev libsoup2.4-dev libsqlite3-dev valac libwebkitgtk-1.0-0 libwebkitgtk-1.0-common libwebkitgtk-common-dev libwebkit-dev libwebkit1.1-cil libwebkit-cil-dev libzeitgeist-1.0-1 libzeitgeist-dev
$ pkg-config —modversion webkit-1.0
and I also execute this commands that I see in one post:
我也执行我在一篇文章中看到的命令:
$ cd $HOME/workspace/Yocto_k4/fsl-release-bsp/kiosk-build/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/midori/0.5.2-r0/midori-0.5.2/
$ ./waf configure $ ./waf build $ sudo ./waf install
and work fine but compiling image continue failing.
工作顺利,但编译图像继续失败。
The bitbake command is the next:
下一个是bitbake命令:
$ bitbake core-image-web-kiosk
Extra info:
额外信息:
- OS: Ubuntu 14.04.
- 操作系统:Ubuntu 14.04。
- Device: imx6dlsabre for smart devices
- 设备:用于智能设备的imx6dlsabre
bblayers.conf:
bblayers.conf:
LCONF_VERSION = "6"
BBPATH = "${TOPDIR}" BSPDIR := "${@os.path.abspath(os.path.dirname(d.getVar('FILE', True)) + '/../..')}"
BBFILES ?= ""
BBLAYERS = " \
${BSPDIR}/sources/poky/meta \
${BSPDIR}/sources/poky/meta-yocto \
\
${BSPDIR}/sources/meta-openembedded/meta-oe \
${BSPDIR}/sources/meta-openembedded/meta-multimedia \
\
${BSPDIR}/sources/meta-fsl-arm \
${BSPDIR}/sources/meta-fsl-arm-extra \
${BSPDIR}/sources/meta-fsl-demos \ "
##Freescale Yocto Project Release layer
BBLAYERS += " ${BSPDIR}/sources/meta-fsl-bsp-release/imx/meta-bsp "
BBLAYERS += " ${BSPDIR}/sources/meta-fsl-bsp-release/imx/meta-sdk "
BBLAYERS += " ${BSPDIR}/sources/meta-browser "
BBLAYERS += " ${BSPDIR}/sources/meta-openembedded/meta-gnome "
BBLAYERS += " ${BSPDIR}/sources/meta-openembedded/meta-networking "
BBLAYERS += " ${BSPDIR}/sources/meta-openembedded/meta-python "
BBLAYERS += " ${BSPDIR}/sources/meta-openembedded/meta-ruby "
BBLAYERS += " ${BSPDIR}/sources/meta-openembedded/meta-filesystems "
BBLAYERS += " ${BSPDIR}/sources/meta-openembedded/meta-xfce "
BBLAYERS += " ${BSPDIR}/sources/meta-qt5 "
BBLAYERS += " ${BSPDIR}/sources/meta-webkit "
BBLAYERS += " ${BSPDIR}/sources/meta-web-kiosk "
local.conf:
local.conf:
MACHINE ??= 'imx6dlsabresd'
DISTRO ?= 'fsl-imx-x11'
PACKAGE_CLASSES ?= "package_rpm"
EXTRA_IMAGE_FEATURES = "debug-tweaks"
USER_CLASSES ?= "buildstats image-mklibs"
PATCHRESOLVE = "noop"
BB_DISKMON_DIRS = "\
STOPTASKS,${TMPDIR},1G,100K \
STOPTASKS,${DL_DIR},1G,100K \
STOPTASKS,${SSTATE_DIR},1G,100K \
STOPTASKS,/tmp,100M,100K \
ABORT,${TMPDIR},100M,1K \
ABORT,${DL_DIR},100M,1K \
ABORT,${SSTATE_DIR},100M,1K \
ABORT,/tmp,10M,1K"
PACKAGECONFIG_append_pn-qemu-native = " sdl"
PACKAGECONFIG_append_pn-nativesdk-qemu = " sdl"
ASSUME_PROVIDED += "libsdl-native"
CONF_VERSION = "1"
DISTRO_FEATURES_append = " opengl x11"
IMAGE_INSTALL_append = " kernel-modules webkitgtk-bin"
PREFERRED_VERSION_webkitgtk = "2.8.5"
BB_NUMBER_THREADS = '2'
PARALLEL_MAKE = '-j 2'
DL_DIR ?= "${BSPDIR}/downloads/"
ACCEPT_FSL_EULA = "1"
Can anyone help me to solve this error? Thanks.
谁能帮我解决这个错误吗?谢谢。
3 个解决方案
#1
0
remove meta-webkit
from bblayers.conf
and
删除从bblayers meta-webkit。配置和
clean the build by using bitbake -c cleansstate webkitgtk
使用bitbake -c清洗webkitgtk清理构建
openembedded-core has webkitgtk
itself and we could use that one instead of the most updated one from meta-webkit
.
openembedcore拥有webkitgtk本身,我们可以使用它而不是来自元webkit的最新版本。
One more thing is that meta-web-kiosk
is not updated for 2 years. You shall switch to use Qt WebEngine instead.
还有一件事是元web-kiosk在2年内不会更新。您应该改为使用Qt WebEngine。
#2
0
I solved the issue using a Ubuntu 12.04 instead of 14.04.
我用Ubuntu 12.04而不是14.04解决了这个问题。
It seems only a repo webkit version problem (2.24.X vs 1.8.X).
它似乎只是一个repo webkit版本的问题(2.24。X vs 1.8.X)。
#3
0
On Debian Unstable 4.13.0-1-amd64 I found that dependencies under:
在Debian不稳定4.13.0-1 amd64中,我发现依赖项如下:
sudo apt install libwebkitgtk-dev
#1
0
remove meta-webkit
from bblayers.conf
and
删除从bblayers meta-webkit。配置和
clean the build by using bitbake -c cleansstate webkitgtk
使用bitbake -c清洗webkitgtk清理构建
openembedded-core has webkitgtk
itself and we could use that one instead of the most updated one from meta-webkit
.
openembedcore拥有webkitgtk本身,我们可以使用它而不是来自元webkit的最新版本。
One more thing is that meta-web-kiosk
is not updated for 2 years. You shall switch to use Qt WebEngine instead.
还有一件事是元web-kiosk在2年内不会更新。您应该改为使用Qt WebEngine。
#2
0
I solved the issue using a Ubuntu 12.04 instead of 14.04.
我用Ubuntu 12.04而不是14.04解决了这个问题。
It seems only a repo webkit version problem (2.24.X vs 1.8.X).
它似乎只是一个repo webkit版本的问题(2.24。X vs 1.8.X)。
#3
0
On Debian Unstable 4.13.0-1-amd64 I found that dependencies under:
在Debian不稳定4.13.0-1 amd64中,我发现依赖项如下:
sudo apt install libwebkitgtk-dev