Igalia / meta-webkit

Yocto / OpenEmbedded layer for WebKit based engines and browsers
MIT License
126 stars 69 forks source link

CMake configure error wpewebkit.2.40.1, AVIF (libavif) not found #465

Closed AminSahebi closed 1 year ago

AminSahebi commented 1 year ago

Bug description I am working with the Cog browser on an embedded custom board having iMX8 Plus CPU, working with Yocto and using previously Cog 0.14 and wpewebkit 2.38.6. There was no problem in building and creating the final image.

However, for some reason, I tried to build the new releases, the bitbake selected version 2.40.1 and Cog 0.16 but I got stuck at the configuration of the wpewebkit,

It seems some packages (says AVIF, Libavif 0.9 needed) are missing and couldn't find, even though I have found them even on my Host and in my build-sysroot in the built image,

How To Reproduce

  1. Envars of the user during the execution of the command (env)
  2. The local.conf and the bblayers.conf

bblayers.conf

LCONF_VERSION = "7"

BBPATH = "${TOPDIR}"
BSPDIR := "${@os.path.abspath(os.path.dirname(d.getVar('FILE', True)) + '/../..')}"

BBFILES ?= ""
BBLAYERS = " \
  ${BSPDIR}/sources/poky/meta \
  ${BSPDIR}/sources/poky/meta-poky \
  \
  ${BSPDIR}/sources/meta-openembedded/meta-oe \
  ${BSPDIR}/sources/meta-openembedded/meta-multimedia \
  ${BSPDIR}/sources/meta-openembedded/meta-python \
  \
  ${BSPDIR}/sources/meta-freescale \
  ${BSPDIR}/sources/meta-freescale-3rdparty \
  ${BSPDIR}/sources/meta-freescale-distro \
"
BBLAYERS += "${BSPDIR}/sources/meta-imx/meta-bsp"
BBLAYERS += "${BSPDIR}/sources/meta-imx/meta-sdk"
BBLAYERS += "${BSPDIR}/sources/meta-imx/meta-ml"
BBLAYERS += "${BSPDIR}/sources/meta-imx/meta-v2x"

BBLAYERS += "${BSPDIR}/sources/meta-browser/meta-chromium"
BBLAYERS += "${BSPDIR}/sources/meta-webkit"

local.conf

INHERIT += "buildhistory"
BUILDHISTORY_COMMIT = "1"
MACHINE ??= 'iot-gate-imx8plus'
DISTRO ?= 'fsl-imx-wayland'
PACKAGE_CLASSES ?= 'package_rpm'
EXTRA_IMAGE_FEATURES ?= "debug-tweaks"
USER_CLASSES ?= "buildstats"
PATCHRESOLVE = "noop"
BB_DISKMON_DIRS ??= "\
    STOPTASKS,${TMPDIR},1G,100K \
    STOPTASKS,${DL_DIR},1G,100K \
    STOPTASKS,${SSTATE_DIR},1G,100K \
    STOPTASKS,/tmp,100M,100K \
    HALT,${TMPDIR},100M,1K \
    HALT,${DL_DIR},100M,1K \
    HALT,${SSTATE_DIR},100M,1K \
    HALT,/tmp,10M,1K"
PACKAGECONFIG:append:pn-qemu-system-native = " sdl"
CONF_VERSION = "2"

DL_DIR ?= "${BSPDIR}/downloads/"
ACCEPT_FSL_EULA = "1"

PACKAGE_CLASSES = "package_deb"
EXTRA_IMAGE_FEATURES += "package-management"
LICENSE_FLAGS_ACCEPTED = "commercial"

PACKAGE_EXCLUDE = " connman connman-client connman-tools packagegroup-core-tools-testapps"

PACKAGECONFIG:pn-cog:append = " dbus"
COG_DBUS_OWN_USER = "weston"

CORE_IMAGE_EXTRA_INSTALL += " cl-uboot cl-deploy cl-stest cl-camera cl-audio "
CORE_IMAGE_EXTRA_INSTALL += " libubootenv-bin u-boot-compulab-env "
CORE_IMAGE_EXTRA_INSTALL += " memtester htop iotop tmux iperf3 "
CORE_IMAGE_EXTRA_INSTALL += " linux-firmware-ax210 firmware-imx-sdma-imx7d "
CORE_IMAGE_EXTRA_INSTALL += " libgpiod-tools bluez5 gpsd gps-utils can-utils minicom eeprom-util usbutils i2c-tools "
CORE_IMAGE_EXTRA_INSTALL += " networkmanager networkmanager-nmtui networkmanager-bash-completion wireless-tools wvdial dhcpcd ifupdown wpa-supplicant ppp modemmanager ntp ntpdate "
CORE_IMAGE_EXTRA_INSTALL += " imx-gst1.0-plugin"
CORE_IMAGE_EXTRA_INSTALL += " swupdate swupdate-www libgbm-imx systemd psplash sqlite3 libsqlite3-dev libgles2-imx libdrm libgles-imx libegl-imx udev "
CORE_IMAGE_EXTRA_INSTALL += " wpewebkit cog"
  1. The hash references of each repository of each used layer
meta-chromium        = "HEAD:e232c2e21b96dc092d9af8bea4b3a528e7a46dd6"
meta-webkit          = "main:acd126e3b3e95f198dbbb9e48dc9bf2993d29b18"
meta-clang           = "HEAD:c728c3f9168c8a4ed05163a51dd48ca1ad8ac21d"
meta-splash          = "master:88944923018344b8080a45abfbbfc21cb922c71c"
meta-mesa            = "master:714273f856cbb6cce07c1725a9df12c18f8ad743"
meta-swupdate        = "master:43f4bf6821119cd3450bfed44d5a1d6cdde01b7d"
meta-gnome           
meta-networking      
meta-filesystems     = "HEAD:744a4b6eda88b9a9ca1cf0df6e18be384d9054e3"
meta-qt5             = "master:cf6ffcbad5275a3428f6046468a0c9d572e813d1"
meta-virtualization  = "HEAD:9482648daf0bb42ff3475e7892542cf99f3b8d48"
meta-bsp-imx8mp      = "HEAD:25443f738ce9d370fe0cdd98775ba5f4d9358b7f"
meta-compulab        = "HEAD:6316d8ca737f7460ea24d83f3aeec9f8d00b6e8a"
meta-desktop         
meta-multimedia      
meta-graphics        
meta-utils           
meta-bsp             
meta-devtool         = "HEAD:7f5882eb9bd139e4dde204ffa6b0aa96577b36d0"
meta-compulab-uefi   = "HEAD:5356c43e91d5d4d7fb76b362859f9e4ec654ab8f"
  1. The local changes applied in the build environment
    • Local devtool overrides on the workspace build directory none
    • Local changes in layers none
  2. The bitbake command causing the error bitbake -k imx-image-multimedia
  3. The error output

Please find the log.txt as the output of the bitbake command here:

log.txt

Expected behaviour build the final Linux image having the Cog browser. Screenshots If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

woutervanh commented 1 year ago

+1 (although on imx6)

Edit: fixed it and created pull request: https://github.com/Igalia/meta-webkit/pull/466

@psaavedra

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] commented 1 year ago

This issue was closed because it has been stale for 7 days with no activity.