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.49k stars 257 forks source link

ffmpeg fails to build #2578

Closed Fishman0919 closed 5 months ago

Fishman0919 commented 5 months ago

18:12:45 Running git update for ffmpeg... 18:12:55 ┌ ffmpeg git ............................... [Recently updated] 18:12:55 ├ Changing options to comply to nonfree... CUDA_PATH environment variable not set or directory does not exist. master-0001-lavc-svt_hevc-add-libsvt-hevc-encoder-wrapper.patch Patch could not be applied with git am. Continuing without patching. 18:13:03 ├ Compiling static FFmpeg... 18:13:04 ├ 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 -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-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-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=-DAL_LIBTYPE_STATIC --extra-cflags=-IC:/MABS/local64/include --extra-cflags=-IC:/MABS/local64/include/AL --extra-version=g8e23ebe6f9+3 ERROR: kvazaar >= 2.0.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 C:/MABS/build/ffmpeg-git/build-static-64bit/ab-suite.configure.log This is required for other packages, so this script will exit. 18:14:53 Creating diagnostics file...

Attach C:\MABS\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.

logs.zip

classicdoomenjoyer commented 5 months ago

I am getting the exact same issue. Tried multiple times, but still the issue with Kvazaar exists :(

Also, I'm getting the same issue with SVT-HEVC :(

classicdoomenjoyer commented 5 months ago

The issue related to SVT-HEVC has been fixed.

I tried to enable libkvazaar some time ago, and it enabled without any issues.

What I recommend : Uninstall everything, download the latest version of Media Autobuild Suite again, and rebuild FFMPEG again.

I wish you all the best!

hydra3333 commented 5 months ago

I see libkvazaar is "An open-source HEVC encoder".
Have you considered perhaps not building it and instead using libx265 ?

classicdoomenjoyer commented 5 months ago

If you are asking me:

Then no, I didn't enable Kvazaar (in my latest build which I use for my own purposes)

In the test build, I had enabled Kvazaar

1480c1 commented 5 months ago

Can you try again? I believe https://github.com/ultravideo/kvazaar/commit/f6a9d92a should fix your issue

1480c1 commented 5 months ago

Closing as I assume it's fixed