Opened 22 months ago

Closed 3 weeks ago

Last modified 3 weeks ago

#6993 closed defect (needs_more_info)

librsvg-2.0 not found using pkg-config

Reported by: geuis Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

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

Change History (2)

comment:1 Changed 3 weeks ago by Balling

  • Resolution set to wontfix
  • Status changed from new to closed

Strange issue.

comment:2 Changed 3 weeks ago by cehoyos

  • Resolution changed from wontfix to needs_more_info
Note: See TracTickets for help on using tickets.