Created a debian-based dockerfile a few days ago that successfully
built ffmpeg 3.4.1 from source with librsvg enabled.

However today, without any intervening changes in the build script,
librsvg fails due to "librsvg-2.0 not found using pkg-config".

The 3.4.1 archive hasn't been changed as far as I can tell. If I
disable the librsvg options, ffmpeg builds as expected.

The build instructions are basically verbatim from the ffmpeg
compilation guide for Debian with some slight modifications for the
dockerfile and to add librsvg.

My dockerfile is included below. Hoping someone has some insight.

DOCKERFILE:

FROM debian:stretch


ARG FFMPEG_VERSION


RUN apt-get update -qq && apt-get -y install \

  autoconf \

  automake \

  build-essential \

  cmake \

  git \

  libass-dev \

  libfreetype6-dev \

  librsvg2-dev \

  libtheora-dev \

  libtool \

  libvorbis-dev \

  libx264-dev \

  mercurial \

  pkg-config \

  texinfo \

  curl \

  zlib1g-dev \

  nasm \

  yasm \

  zip


ENV cwd=/usr/local/apps/ffmpeg

WORKDIR ${cwd}


RUN mkdir -p ${cwd} && \

  mkdir -p ${cwd}/ffmpeg_sources \

  mkdir -p ${cwd}/ffmpeg_build \

  mkdir -p ${cwd}/ffmpeg_bin


RUN cd ${cwd}/ffmpeg_sources && \

  curl -O http://ffmpeg.org/releases/ffmpeg-${FFMPEG_VERSION}.tar.gz && \

  tar xvf ffmpeg-${FFMPEG_VERSION}.tar.gz && \

  cd ffmpeg-${FFMPEG_VERSION} && \

  PATH="${cwd}/ffmpeg_bin:$PATH"
PKG_CONFIG_PATH="${cwd}/ffmpeg_build/lib/pkgconfig" ./configure \

    --prefix="${cwd}/ffmpeg_build" \

    --pkg-config-flags="--static" \

    --extra-cflags="-I${cwd}/ffmpeg_build/include" \

    --extra-ldflags="-L${cwd}/ffmpeg_build/lib" \

    --extra-libs="-lpthread -lm" \

    --bindir="${cwd}/ffmpeg_bin" \

    --enable-gpl \

    --enable-libass \

    --enable-libfontconfig \

    --enable-libfreetype \

    --enable-librsvg \

    --enable-libx264 \

    --enable-nonfree && \

  PATH="${cwd}/ffmpeg_bin:$PATH" make && \

  make install && \

  hash -r && \

  mv ${cwd}/ffmpeg_bin/* /usr/local/bin
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to