Uncompatible libavcodec found
I'm encountering this issue every time trying to reconfigure and rebuilt the project. The first time project configuration works just fine including gst-libav subproject. This is the output I'm getting:
|Executing subproject gst-libav method meson
|
|Project name: gst-libav
|Project version: 1.18.0.1
|C compiler for the host machine: cc (gcc 9.2.1 "cc (Ubuntu 9.2.1-9ubuntu2) 9.2.1 20191008")
|C linker for the host machine: cc ld.bfd 2.33
|C++ compiler for the host machine: c++ (gcc 9.2.1 "c++ (Ubuntu 9.2.1-9ubuntu2) 9.2.1 20191008")
|C++ linker for the host machine: c++ ld.bfd 2.33
|Run-time dependency libavfilter found: YES 7.85.100
|Run-time dependency libavformat found: YES 58.45.100
|Run-time dependency libavcodec found: YES 58.91.100
|Run-time dependency libavutil found: YES 56.51.100
|Checking if "libav is provided by FFmpeg" with dependencies libavfilter, libavformat, libavcodec, libavutil compiles: NO
subprojects/gst-libav/meson.build:50:4: ERROR: Problem encountered: Uncompatible libavcodec found
And this is from meson-log.txt:
Compiler stderr:
In file included from /home/ubuntu/sources/gst-build/build/meson-private/tmplc5jdhig/testfile.c:1:
/usr/local/include/libavcodec/avcodec.h:44:10: fatal error: bsf.h: No such file or directory
44 | #include "bsf.h"
| ^~~~~~~
compilation terminated.
Checking if "libav is provided by FFmpeg" with dependencies libavfilter, libavformat, libavcodec, libavutil compiles: NO
subprojects/gst-libav/meson.build:50:4: ERROR: Problem encountered: Uncompatible libavcodec found
Meson version is 0.55.3 and the system Ubuntu18.04/20.04