Skip to content

Instantly share code, notes, and snippets.

@creeefs
Created October 7, 2020 14:09
Show Gist options
  • Select an option

  • Save creeefs/21c783ed7a57a5d77c03c13424707efd to your computer and use it in GitHub Desktop.

Select an option

Save creeefs/21c783ed7a57a5d77c03c13424707efd to your computer and use it in GitHub Desktop.
Gstreamer wpesrc Dockerfile
FROM ubuntu:20.04
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y \
bison \
flex \
git \
libmount-dev \
pkg-config \
python3 \
python3-pip \
ninja-build
# Install OpenGL
RUN apt-get install -y \
libglvnd-dev \
libgl1-mesa-dev \
libegl1-mesa-dev \
libgles2-mesa-dev
# Install Wayland
RUN apt-get install -y \
libwayland-dev \
wayland-protocols \
libffi-dev
# Install WPE
RUN apt-get install -y snap && snap install wpe-webkit-libs
RUN pip3 install meson
WORKDIR /opt/gstreamer
RUN git clone -b 1.18 https://github.com/GStreamer/gst-build.git
WORKDIR /opt/gstreamer/gst-build
RUN meson -Dgst-plugins-base:gl=enabled -Dgst-plugins-bad:wpe=enabled build
RUN ninja -C build
RUN meson install -C build
RUN ldconfig
@aris-t
Copy link

aris-t commented Sep 23, 2021

Did you actually get this to run?

Build dies at "RUN apt-get install -y snap && snap install wpe-webkit-libs" as snap does not appear to be snapd and even once snapd is installed it cannot use the snapd socket "/run/snapd.socket" to install with?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment