Can't find system FFMpeg when building 2.2.2 on Ubuntu 18

Apologies, I hadn’t completed the post yet and couldn’t delete it before it was approved. Here’s more information:

I’m attempting to build Audacity 2.2.2 from source, following the instructions here in order to enable mod-script-pipe (which, as far as I can tell, isn’t available for any of the repository versions). I have ffmpeg 3.4.4 installed from the Ubuntu repository ( is located in /usr/lib/x86_64-linux-gnu);

pkg-config --libs libavcodec



pkg-config --variable pc_path pkg-config



so it’s searching in the correct directory, as far as I can tell.