m-ab-s / media-autobuild_suite

This Windows Batchscript helps setup a Mingw-w64 compiler environment for building ffmpeg and other media tools under Windows.
GNU General Public License v3.0
1.5k stars 257 forks source link

Build error libplacebo:: >= 4.192.0 not found using pkg-config #2499

Open marcusdoc opened 11 months ago

marcusdoc commented 11 months ago
18:33:46 ┌ libplacebo git  ........................... [Recently updated]
18:35:27 ├ Running meson...
18:35:36 ├ Running build...
18:35:43 ├ Running install...
18:35:44 ├ Stripping...
18:35:44 └ libplacebo-git  .................................... [Updated]
18:35:58   Running git update for ffmpeg...
18:35:59 ┌ ffmpeg git  ............................... [Recently updated]
18:35:59 ├ Changing options to comply to nonfree...
FFmpeg and related apps will depend on CUDA SDK to run!
18:36:03 ├ Compiling static FFmpeg...
18:36:04 ├ Running configure...
Likely error (tail of the failed operation logfile):
CXXFLAGS: -fstack-protector-strong -mtune=generic -O2 -pipe -mthreads
LDFLAGS: -pipe -static-libgcc -fstack-protector-strong -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-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-libfdk-aac --enable-fontconfig --enable-libass --enable-libbluray --enable-libfreetype --enable-libmfx --enable-libmysofa --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libwebp --enable-libxml2 --enable-libzimg --enable-libshine --enable-gpl --enable-avisynth --enable-libxvid --enable-libopenmpt --enable-version3 --enable-librav1e --enable-libsrt --enable-libgsm --enable-libvmaf --enable-libsvtav1 --enable-chromaprint --enable-decklink --enable-frei0r --enable-libaribb24 --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfribidi --enable-libgme --enable-libilbc --enable-libsvthevc --enable-libsvtvp9 --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-opencl --enable-opengl --enable-libnpp --enable-libopenh264 --enable-openssl --extra-cflags=-DLIBTWOLAME_STATIC --extra-libs=-lstdc++ --extra-cflags=-DCACA_STATIC --extra-cflags=-DMODPLUG_STATIC --extra-cflags=-DCHROMAPRINT_NODLL --extra-libs=-lstdc++ --extra-cflags=-DZMQ_STATIC --extra-libs=-lpsapi --extra-cflags=-DLIBXML_STATIC --extra-libs=-liconv --disable-w32threads --extra-cflags=-DKVZ_STATIC_LIB --enable-nonfree --extra-cflags=-IC:/PROGRA~1/NVIDIA~2/CUDA/v12.2/include --extra-ldflags=-LC:/PROGRA~1/NVIDIA~2/CUDA/v12.2/lib/x64 --extra-cflags=-DAL_LIBTYPE_STATIC --extra-cflags=-IE:/ffmpeg_compile/local64/include --extra-cflags=-IE:/ffmpeg_compile/local64/include/AL --extra-version=g81a48d96e2+3
ERROR: libplacebo >= 4.192.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
ffmpeg-user@ffmpeg.org 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.
configure failed. Check E:/ffmpeg_compile/build/ffmpeg-git/build-static-64bit/ab-suite.configure.log
This is required for other packages, so this script will exit.
18:37:33   Creating diagnostics file...

Attach E:\ffmpeg_compile\build\logs.zip to the GitHub issue.
Make sure the suite is up-to-date before reporting an issue. It might've been fixed already.

Try running the build again at a later time.

Any ideas? I deleted the libplacebo folder and re-ran the script and still the problem exists. I also did what was suggested in (see https://github.com/m-ab-s/media-autobuild_suite/issues/2497)

logs.zip

config.zip

marcusdoc commented 11 months ago

This might still be related to 'dovi' The meson-log.txt states the following:

Called: `pkgconf --keep-system-libs --keep-system-cflags --modversion dovi` -> 1
stderr:
Package dovi was not found in the pkg-config search path.
Perhaps you should add the directory containing `dovi.pc'
to the PKG_CONFIG_PATH environment variable
Package 'dovi', required by 'virtual:world', not found
-----------
CMake binary for 1 is cached.
Preliminary CMake check failed. Aborting.
Run-time dependency dovi found: NO (tried pkgconfig and cmake)
marcusdoc commented 11 months ago

Still getting the same error even with the changes noted in #2497 (thought that it fixed it).

I notice where the script defines the .git locations for packages at media-suite_deps.sh

How can I select an older version? Unless someone else has a better solution. https://code.videolan.org/videolan/libplacebo/-/branches

Fishman0919 commented 9 months ago

I rolled back to v5.264 but now FFmpeg fails.

I changed build\media-suite_deps.sh...

SOURCE_REPO_LIBPLACEBO=https://code.videolan.org/videolan/libplacebo.git

to

SOURCE_REPO_LIBPLACEBO=https://code.videolan.org/videolan/libplacebo.git#tag=v5.264

hydra3333 commented 9 months ago

Since there's supported unofficial clean autobuilds every night at https://github.com/BtbN/FFmpeg-Builds (without any nonfree, and not having everything) ...

I must take a look over there to see if there's stuff in there which is equivalent and if there is then what they do so make stuff build and borrow to make MABS pull requests ...

edit: also over at rdp's place per https://github.com/m-ab-s/media-autobuild_suite/issues/2514#issuecomment-1741595999

Fishman0919 commented 9 months ago

I started with a clean MABS and used...

SOURCE_REPO_LIBPLACEBO=https://code.videolan.org/videolan/libplacebo.git#tag=v5.264.1

... and FFmpeg build fine