mpv-player / mpv-build

🔨 Helper scripts to compile mpv on Linux
http://mpv.io
404 stars 104 forks source link

mpv-build fails to find static version of dav1d #166

Closed BlueSwordM closed 3 years ago

BlueSwordM commented 3 years ago

Describe the bug When configured normally, mpv-build's ffmpeg fails to find the dav1d version when the decoder is built with only static libraries in mind. When building mpv-build, the usual error pops up: ERROR: dav1d >= 0.5.0 not found using pkg-config

To Reproduce

  1. Build dav1d according to the instructions found in here, but change meson's default library building process to --default-library=static https://code.videolan.org/videolan/dav1d
  2. Start building mpv normally with --enable-libdav1d in the ffmpeg options.

Expected behavior Like externally built ffmpeg, mpv-build's ffmpeg should be able to find the dav1d package statically built using pkgconfig.

Required Information

mpv-build with mpv Git as of September 5th 2021. libdav1d 0.9.2

Operating system: Openmandriva 4.3 RC with Kernel 5.13

Console Output

Build log from config.log: https://pastebin.com/KLcFXRv1

BlueSwordM commented 3 years ago

Has anyone encountered this issue?

BlueSwordM commented 3 years ago

The issue has been fixed on my end.

I built dav1d with Clang/LLVM statically using LTO, and GCC wasn't having any of it with that.

I just added `--cc=clang --cxx=clang++ to the ffmpeg options, and that fixed everything.

nanhui69 commented 1 year ago

just sudo apt-get install libdav1d-dev solve the problem