Libzimg-dev not being found by FFmpeg configure script & pkg-config

No matter what I do, right now I cannot get pkg-config to recognize I had just successfully built zimg to FFmpeg’s ./configure script in Ubuntu 20.04.

I tried both the savoury1 PPA and the release 3.0.3 tar.gz… NOTHING WORKS.

There’s no build instructions on the README.md for zimg, and all the other autoconf based build guides all say the same things.

UPDATE:

THERE IN LIES THE PROBLEM with lack of documentation.

Most tutorials say to use --disable-shared, but this is actually detremental in some build environments so you actually want to enable shared libraries.

So here’s an example:

mkdir -p ~/ffmpeg_sources && \
cd ~/ffmpeg_sources && \
wget https://github.com/sekrit-twc/zimg/archive/refs/tags/release-3.0.2.tar.gz && \
tar xvf release-3.0.2.tar.gz && \
cd zimg-release-3.0.2 && \
./autogen.sh && \
./configure --prefix="$HOME/ffmpeg_build" --disable-shared && \
make && \
make install

This is INCORRECT if you followed this guide from Not Cafe:

Instead, the configure line should be:

./configure --prefix="$PREFIX" --enable-static --enable-shared

GODDAMN IT.