Package dependency not building

  • Hi all,

    I'm aiming to use LibreElec as the basis of a project on Allwinner H3 as it is the ideal basis, so have been compiling GIT latest from source using docker on Ubuntu 22.

    I've run into a few issues, and was wondering where I am going wrong.

    First: adding packages to ADDITIONAL_PACKAGES in options didn't seem to do anything:

    ADDITIONAL_PACKAGES="gstreamer gst-plugins-base gst-plugins-bad ffmpeg"

    I worked around this by adding dependencies for those packages to an existing package.

    Then I changed the build options for gst-plugins-bad, and then needed a library dependency ()

    I added it as described in the package readme

    then added

    PKG_DEPENDS_TARGET="toolchain gst-plugins-base libgudev"

    to gst-plugins-bad package.mk

    But it doesn't build or compile, and the build of gst-plugins-bad fails as its unable to find it.

    Any hints?

    Thank you

    Edited once, last by petea (November 5, 2022 at 5:34 PM).

  • petea

    Following should work for you

    Code
    $ more packages/multimedia/gstreamer/libgudev/package.mk
    PKG_NAME="libgudev"
    PKG_VERSION="237"
    PKG_SHA256="0d06b21170d20c93e4f0534dbb9b0a8b4f1119ffb00b4031aaeb5b9148b686aa"
    PKG_SITE="https://download.gnome.org/sources/libgudev/"
    PKG_URL="https://download.gnome.org/sources/libgudev/237/libgudev-237.tar.xz"
    PKG_DEPENDS_TARGET="toolchain"

    And update the package.mk

  • Boom, thank you!

    All working now. It seems I had an issue in my package.mk for libgudev. I should probably now work out what it was, but that should be easy with a working example.

    Thank you