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.55k stars 266 forks source link

[mingw64] [ffmpeg] Building ffmpeg does not work #1727

Closed BeyondVertical closed 4 years ago

BeyondVertical commented 4 years ago
16:36:18   Running git clone for ffmpeg...
16:37:42 ┌ ffmpeg git  ............................... [Recently updated]
16:37:42 ├ Until an upstream fix is issued, libaom must be disabled when compiling with libsvtav1....
16:37:42 ├ Until an upstream fix is issued, libopencore-amrwb must be disabled when compiling with libsvtav1....
16:37:42 ├ Changing options to comply to nonfree...
CUDA_PATH environment variable not set or directory does not exist.
16:37:50 ├ Compiling static FFmpeg...
16:37:51 ├ Running configure...
Likely error (tail of the failed operation logfile):
CXXFLAGS: -mthreads -mtune=generic -O2 -pipe
LDFLAGS: -pipe -static-libgcc -static-libstdc++ -L/local64/lib -L/mingw64/lib
../configure --prefix=/local64 --bindir=/local64/bin-video --pkg-config-flags=--static --cc=ccache gcc --cxx=ccache g++ --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-libx264 --enable-libx265 --enable-libdav1d --disable-debug --enable-fontconfig --enable-libass --enable-libbluray --enable-libfreetype --enable-libmfx --enable-libmysofa --enable-libopencore-amrnb --enable-libopenjpeg --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libwavpack --enable-libwebp --enable-libxml2 --enable-libzimg --enable-libshine --enable-gpl --enable-avisynth --enable-libxvid --enable-libopenmpt --enable-version3 --enable-chromaprint --enable-decklink --enable-frei0r --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libfdk-aac --enable-libflite --enable-libfribidi --enable-libgme --enable-libgsm --enable-libilbc --enable-libsvthevc --enable-libsvtav1 --enable-libkvazaar --enable-libmodplug --enable-librtmp --enable-librubberband --enable-libtesseract --enable-libxavs --enable-libzmq --enable-libzvbi --enable-openal --enable-libvmaf --enable-libcodec2 --enable-libsrt --enable-ladspa --enable-librav1e --enable-libglslang --enable-vulkan --enable-opencl --enable-opengl --enable-libopenh264 --enable-openssl --extra-cflags=-fopenmp --extra-libs=-lgomp --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-version=gb146a61c22+3
ERROR: libgme not found

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.freenode.net.
Include the log file "ffbuild/config.log" produced by configure as this will help
solve the problem.
configure failed. Check C:/Development/MABS_All/build/ffmpeg-git/build-static-64bit/ab-suite.configure.log
This is required for other packages, so this script will exit.
16:43:25   Creating diagnostics file...

All relevant logs have been anonymously uploaded to https://0x0.st/iJ6O.zip
Copy and paste [logs.zip](https://0x0.st/iJ6O.zip) in 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.
1480c1 commented 4 years ago

you may need to delete local64/lib/libgme.* and also pull the latest suite. https://bitbucket.org/mpyne/game-music-emu/commits/1511d4487601ace3d2d75636f1824147f4806db6 added ubsan as a default without adding that info to pkg-config and we disabled that about a month ago

BeyondVertical commented 4 years ago

The suite was up to date. I deleted the file you mentioned. There seems to be antoher problem:

18:43:08   Running git update for ffmpeg...
18:43:12 ┌ ffmpeg git  .................................. [Updates found]
18:43:12 ├ Until an upstream fix is issued, libaom must be disabled when compiling with libsvtav1....
18:43:12 ├ Until an upstream fix is issued, libopencore-amrwb must be disabled when compiling with libsvtav1....
18:43:12 ├ Changing options to comply to nonfree...
CUDA_PATH environment variable not set or directory does not exist.
18:43:19 ├ Compiling static FFmpeg...
18:43:20 ├ Running configure...
18:49:14 ├ Running make...
Likely error (tail of the failed operation logfile):
      |                                                  SRTO_SENDER
C:/Development/MABS_All/build/ffmpeg-git/libavformat/libsrt.c: In function 'libsrt_setup':
C:/Development/MABS_All/build/ffmpeg-git/libavformat/libsrt.c:409:5: warning: 'srt_socket' is deprecated [-Wdeprecated-declarations]
  409 |     fd = srt_socket(cur_ai->ai_family, cur_ai->ai_socktype, 0);
      |     ^~
In file included from C:/Development/MABS_All/build/ffmpeg-git/libavformat/libsrt.c:24:
C:/Development/MABS_All/local64/include/srt/srt.h:735:41: note: declared here
  735 | SRT_ATR_DEPRECATED_PX SRT_API SRTSOCKET srt_socket(int, int, int) SRT_ATR_DEPRECATED;
      |                                         ^~~~~~~~~~
make: *** [/build/ffmpeg-git/ffbuild/common.mak:59: libavformat/libsrt.o] Error 1
make failed. Check C:/Development/MABS_All/build/ffmpeg-git/build-static-64bit/ab-suite.make.log
This is required for other packages, so this script will exit.
18:52:40   Creating diagnostics file...

All relevant logs have been anonymously uploaded to https://0x0.st/iJlb.zip
Copy and paste [logs.zip](https://0x0.st/iJlb.zip) in 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.
1480c1 commented 4 years ago

https://github.com/m-ab-s/media-autobuild_suite/issues/1725