Skip to content

glib <=2.7 not found #1601

Open
Open
@edgarriba

Description

@edgarriba

hi! I'm attempting to build a cross docker for an old ubuntu18.04 that needs gstreamer with glib <= 2.7 and I'm getting some issue to get the container with the right configuration. This is what I'm trying

FROM ghcr.io/cross-rs/aarch64-unknown-linux-gnu:0.2.5

RUN apt-get update && apt-get install --assume-yes \
    cmake \
    curl \
    libglib2.0-dev \
    pkg-config \
    && \
    apt-get clean

RUN dpkg --add-architecture arm64

RUN apt-get update && apt-get install --assume-yes \
    nasm \
    libgstreamer1.0-dev:arm64 \
    libgstreamer-plugins-base1.0-dev:arm64 \
    libssl-dev:arm64 \
    libglib2.0-dev:arm64 \
    libudev-dev:arm64 \
    && \
    apt-get clean

Then during the compilation I get the following error:

  cargo:warning=
  pkg-config exited with status code 1
  > PKG_CONFIG_PATH=/usr/lib/aarch64-linux-gnu/pkgconfig/: PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 pkg-config --libs --cflags glib-2.0 glib-2.0 >= 2.56

  The system library `glib-2.0` required by crate `glib-sys` was not found.
  The file `glib-2.0.pc` needs to be installed and the PKG_CONFIG_PATH environment variable must contain its parent directory.
  PKG_CONFIG_PATH contains the following:
      - /usr/lib/aarch64-linux-gnu/pkgconfig/
      - 

  HINT: you may need to install a package such as glib-2.0, glib-2.0-dev or glib-2.0-devel.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions