gpt4 book ai didi

compiler-errors - i.MX6 SABRE Yocto Pocky与Midori错误: No package 'webkit-1.0' found

转载 作者:行者123 更新时间:2023-12-02 11:01:31 25 4
gpt4 key购买 nike

我正在尝试使用Midori 0.5.2浏览器(网络信息亭镜像)编译Yocto Pocky linux,但遇到下一个错误(在解决了许多先前的错误之后):

...

| Checking for x11 : 1.6.3

| Checking for header X11/extensions/scrnsaver.h : yes

| Checking for library Xss : yes

| Checking for 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.

| Perhaps you should add the directory containing `webkit-1.0.pc'

| to the PKG_CONFIG_PATH environment variable

| No package 'webkit-1.0' found

| /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.

| 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)

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' ...



正确设置了PKG_CONFIG_PATH变量,包括包含“webkit-1.0.pc”文件的目录。

我安装了所有必需的库和依赖项,这些库和依赖项已作为解决方案找到,但不适用于我:
$ 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

并且我还执行了我在一篇文章中看到的命令:
$ 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

和工作正常,但编译镜像仍然失败。

接下来是bitbake命令:
$ bitbake core-image-web-kiosk

额外信息:
  • 操作系统:Ubuntu 14.04。
  • 设备:智能设备的imx6dlsabre

  • 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:
    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"

    谁能帮我解决这个错误?谢谢。

    最佳答案

    meta-webkit中删除bblayers.conf

    使用bitbake -c cleansstate webkitgtk清理构建

    openembedded-core本身具有webkitgtk,我们可以使用它而不是meta-webkit中最新的一种。

    还有一件事是meta-web-kiosk两年未更新。您应该改为使用Qt WebEngine。

    关于compiler-errors - i.MX6 SABRE Yocto Pocky与Midori错误: No package 'webkit-1.0' found,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37916649/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com