Skip to content

ERROR: libvmaf >= 2.0.0 not found using pkg-config #2845

Open
@stderr-to-devnull

Description

@stderr-to-devnull

I built (I think) a CUDA enabled libvmaf which I then managed to use in order to build a Linux ffmpeg binary. But my ultimate goal was to build a Windows binary.

On my Windows machine I used media-autobuild_suite before and it built just fine. But now I wanted to try and build it with the (hopefully) CUDA enabled VMAF. So I copied:

  • libvmaf.a to media-autobuild_suite/local64/lib/
  • libvmaf.so to media-autobuild_suite/local64/lib/
  • vmaf.h to media-autobuild_suite/local64/include/libvmaf/
  • libvmaf_cuda.h to media-autobuild_suite/local64/include/libvmaf/

...then I fired up the build .bat file and I got the below:

├ Compiling static FFmpeg...
├ Running uninstall...
├ Running configure...
Likely error (tail of the failed operation logfile):
CXXFLAGS: -D_FORTIFY_SOURCE=2 -fstack-protector-strong -mtune=generic -O2 -pipe -D__USE_MINGW_ANSI_STDIO=1
LDFLAGS: -D_FORTIFY_SOURCE=2 -fstack-protector-strong -mtune=generic -O2 -pipe -D__USE_MINGW_ANSI_STDIO=1 -static-libgcc -liconv -static-libstdc++ -L/local64/lib -L/mingw64/lib
../configure --prefix=/local64 --bindir=/local64/bin-video --pkg-config=pkgconf --pkg-config-flags=--keep-system-libs --keep-system-cflags --static --cc=ccache gcc --cxx=ccache g++ --ld=ccache g++ --extra-cxxflags=-fpermissive --extra-cflags=-Wno-int-conversion --disable-autodetect --enable-amf --enable-bzlib --enable-cuda --enable-cuvid --enable-d3d12va --enable-d3d11va --enable-dxva2 --enable-iconv --enable-lzma --enable-nvenc --enable-zlib --enable-sdl2 --enable-ffnvcodec --enable-nvdec --enable-cuda-llvm --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libdav1d --enable-libaom --disable-debug --enable-fontconfig --enable-libass --enable-libbluray --enable-libfreetype --enable-libharfbuzz --enable-libvpl --enable-libmysofa --enable-libopenjpeg --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libwebp --enable-libxml2 --enable-libzimg --enable-libshine --enable-gpl --enable-avisynth --enable-libxvid --enable-libopenmpt --enable-librav1e --enable-libsrt --enable-libgsm --enable-libvmaf --enable-libsvtav1 --enable-chromaprint --enable-frei0r --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfribidi --enable-libgme --enable-libilbc --enable-libsvthevc --enable-libkvazaar --enable-libmodplug --enable-librist --enable-librtmp --enable-librubberband --enable-libtesseract --enable-libxavs --enable-libzmq --enable-libzvbi --enable-openal --enable-libcodec2 --enable-ladspa --enable-libglslang --enable-vulkan --enable-libdavs2 --enable-libxavs2 --enable-libuavs3d --enable-libplacebo --enable-libjxl --enable-libvvenc --enable-libvvdec --enable-liblc3 --enable-opencl --enable-opengl --enable-libopenh264 --enable-gnutls --extra-cflags=-DLIBTWOLAME_STATIC --extra-cflags=-DCACA_STATIC --extra-cflags=-DMODPLUG_STATIC --extra-cflags=-DCHROMAPRINT_NODLL --extra-cflags=-DZMQ_STATIC --extra-libs=-lpsapi --extra-cflags=-DLIBXML_STATIC --extra-libs=-liconv --disable-w32threads --extra-cflags=-DKVZ_STATIC_LIB --extra-cflags=-DAL_LIBTYPE_STATIC --extra-cflags=-IC:/media-autobuild_suite/local64/include --extra-cflags=-IC:/media-autobuild_suite/local64/include/AL --extra-version=ge8d4c55987+3
ERROR: libvmaf >= 2.0.0 not found using pkg-config

Important things to note:

  1. I encountered the same message ERROR: libvmaf >= 2.0.0 not found using pkg-config when I attempted to cross compile inside my WSL environment
  2. In my WSL environment, libvmaf is found just fine when running pkg-config:
    pkg-config --modversion libvmaf
    3.0.0
  3. After failing to find a solution, I thought I'd try this autobuild suite but it seems the issue is systemic across environments and it's related to the configure script of ffmpeg

So while I acknowledge that I used non-standard vmaf library files and the issue is with ffmpeg rather than with this suite, I would appreciate some help if possible, in the hopes that it's a rather simple solution which escapes me.

logs.zip

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions