ffmpeg-build-script
ffmpeg-build-script copied to clipboard
ffmpeg fails to build with lilv not found using pkg-config
trafficstars
MacOS arm64 config.log
building ffmpeg - version 5.0
=======================
FFmpeg-release-5.0.tar.gz has already downloaded.
Extracted FFmpeg-release-5.0.tar.gz
ERROR: lilv-0 not found using pkg-config
If you think configure made a mistake, make sure you are using the latest
version from Git. If the latest version fails, report the problem to the
[email protected] mailing list or IRC #ffmpeg on irc.libera.chat.
Include the log file "ffbuild/config.log" produced by configure as this will help
solve the problem.
$ make -j 8
Makefile:2: ffbuild/config.mak: No such file or directory
Makefile:40: /tools/Makefile: No such file or directory
Makefile:41: /ffbuild/common.mak: No such file or directory
Makefile:110: /libavutil/Makefile: No such file or directory
Makefile:110: /ffbuild/library.mak: No such file or directory
Makefile:112: /fftools/Makefile: No such file or directory
Makefile:113: /doc/Makefile: No such file or directory
Makefile:114: /doc/examples/Makefile: No such file or directory
Makefile:180: /tests/Makefile: No such file or directory
make: *** No rule to make target `/tests/Makefile'. Stop.
Failed to Execute make -j 8
Issue can be resolved by prefixing ./waf with python3:
if command_exists "python3"; then
if build "lv2" "1.18.2"; then
download "https://lv2plug.in/spec/lv2-1.18.2.tar.bz2" "lv2-1.18.2.tar.bz2"
execute python3 ./waf configure --prefix="${WORKSPACE}" --lv2-user
execute python3 ./waf build
execute python3 ./waf install
build_done "lv2" "1.18.2"
fi
if build "waflib" "b600c92"; then
download "https://gitlab.com/drobilla/autowaf/-/archive/b600c928b221a001faeab7bd92786d0b25714bc8/autowaf-b600c928b221a001faeab7bd92786d0b25714bc8.tar.gz" "autowaf.tar.gz"
build_done "waflib" "b600c92"
fi
if build "serd" "0.30.10"; then
download "https://gitlab.com/drobilla/serd/-/archive/v0.30.10/serd-v0.30.10.tar.gz" "serd-v0.30.10.tar.gz"
execute cp -r "${PACKAGES}"/autowaf/* "${PACKAGES}/serd-v0.30.10/waflib/"
execute python3 ./waf configure --prefix="${WORKSPACE}" --static --no-shared --no-posix
execute python3 ./waf build
execute python3 ./waf install
build_done "serd" "0.30.10"
fi
if build "pcre" "8.45"; then
download "https://altushost-swe.dl.sourceforge.net/project/pcre/pcre/8.45/pcre-8.45.tar.gz" "pcre-8.45.tar.gz"
execute ./configure --prefix="${WORKSPACE}" --disable-shared --enable-static
execute make -j $MJOBS
execute make install
build_done "pcre" "8.45"
fi
if build "sord" "0.16.8"; then
download "https://gitlab.com/drobilla/sord/-/archive/v0.16.8/sord-v0.16.8.tar.gz" "sord-v0.16.8.tar.gz"
execute cp -r "${PACKAGES}"/autowaf/* "${PACKAGES}/sord-v0.16.8/waflib/"
execute python3 ./waf configure --prefix="${WORKSPACE}" CFLAGS="${CFLAGS}" --static --no-shared --no-utils
execute python3 ./waf CFLAGS="${CFLAGS}" build
execute python3 ./waf install
build_done "sord" "0.16.8"
fi
if build "sratom" "0.6.8"; then
download "https://gitlab.com/lv2/sratom/-/archive/v0.6.8/sratom-v0.6.8.tar.gz" "sratom-v0.6.8.tar.gz"
execute cp -r "${PACKAGES}"/autowaf/* "${PACKAGES}/sratom-v0.6.8/waflib/"
execute python3 ./waf configure --prefix="${WORKSPACE}" --static --no-shared
execute python3 ./waf build
execute python3 ./waf install
build_done "sratom" "0.6.8"
fi
if build "lilv" "0.24.12"; then
download "https://gitlab.com/lv2/lilv/-/archive/v0.24.12/lilv-v0.24.12.tar.gz" "lilv-v0.24.12.tar.gz"
execute cp -r "${PACKAGES}"/autowaf/* "${PACKAGES}/lilv-v0.24.12/waflib/"
execute python3 ./waf configure --prefix="${WORKSPACE}" --static --no-shared --no-utils
execute python3 ./waf build
execute python3 ./waf install
build_done "lilv" "0.24.12"
fi
CFLAGS+=" -I$WORKSPACE/include/lilv-0"
CONFIGURE_OPTIONS+=("--enable-lv2")
fi
Here is the patch for both the OpenSSL issue and the lilv issue: build-ffmpeg.txt