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

ffmpeg git fails #2495

Open Fishman0919 opened 11 months ago

Fishman0919 commented 11 months ago

21:30:40 ┌ ffmpeg git ............................... [Recently updated] 21:30:40 ├ Changing options to comply to nonfree... CUDA_PATH environment variable not set or directory does not exist. 21:30:44 ├ Compiling static FFmpeg... 21:30:44 ├ 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-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:/MAS/local64/include --extra-cflags=-IC:/MAS/local64/include/AL --extra-version=g9549712056+2 ERROR: fontconfig 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:/MAS/build/ffmpeg-git/build-static-64bit/ab-suite.configure.log This is required for other packages, so this script will exit. 21:32:55 Creating diagnostics file...

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

DrDagless commented 11 months ago

Having the same issue on my end when compiling ffmpeg

basilisk0315 commented 11 months ago

+1

pcspeak commented 11 months ago

Had the same problem. Deleted folders: D:\mingw-x64\build\ffmpeg-git D:\mingw-x64\build\fontconfig-git Deleted files: D:\mingw-x64\local64\lib\libfontconfig.a D:\mingw-x64\local64\lib\libfontconfig.la

The build then worked.

basilisk0315 commented 11 months ago

Tried your suggestion and now get this: Warning: We will not accept any issues lacking any form of logs or logs.zip!

    Starting 64bit compilation of all tools

Imported options from ffmpeg_options.txt License: nonfree Imported options from mpv_options.txt

    Starting 64bit compilation of global tools

Running git update for freetype... freetype git ............................................... [Up-to-date] Running git update for fontconfig... ┌ fontconfig git ..................................... [Recently updated] ├ Running meson... ├ Running build... Likely error (tail of the failed operation logfile): D:/mabs/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/mabs/msys64/mingw64/lib/libfreetype.a(src_gzip_ftgzip.c.obj):(.text+0x94e): undefined reference to inflate' D:/mabs/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/mabs/msys64/mingw64/lib/libfreetype.a(src_gzip_ftgzip.c.obj):(.text+0x95d): undefined reference toinflateEnd' D:/mabs/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/mabs/msys64/mingw64/lib/libfreetype.a(src_gzip_ftgzip.c.obj):(.text+0x9ba): undefined reference to inflateEnd' D:/mabs/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/mabs/msys64/mingw64/lib/libfreetype.a(src_bzip2_ftbzip2.c.obj):(.text+0x6c): undefined reference toBZ2_bzDecompressEnd' D:/mabs/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/mabs/msys64/mingw64/lib/libfreetype.a(src_bzip2_ftbzip2.c.obj):(.text+0x11d): undefined reference to BZ2_bzDecompress' D:/mabs/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/mabs/msys64/mingw64/lib/libfreetype.a(src_bzip2_ftbzip2.c.obj):(.text+0x32a): undefined reference toBZ2_bzDecompressEnd' D:/mabs/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/mabs/msys64/mingw64/lib/libfreetype.a(src_bzip2_ftbzip2.c.obj):(.text+0x380): undefined reference to BZ2_bzDecompressInit' D:/mabs/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/mabs/msys64/mingw64/lib/libfreetype.a(src_bzip2_ftbzip2.c.obj):(.text+0x612): undefined reference toBZ2_bzDecompressInit' collect2.exe: error: ld returned 1 exit status ninja: build stopped: subcommand failed. build failed. Check D:/mabs/build/fontconfig-git/build-64bit/ab-suite.build.log This is required for other packages, so this script will exit. Creating diagnostics file...

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

pcspeak commented 11 months ago

Basilisk0315 In your report it only shows an update to fontconfig.

freetype git ............................................... [Up-to-date]
Running git update for fontconfig...
+ fontconfig git ..................................... [Recently updated]
+ Running meson...
+ Running build...
Likely error (tail of the failed operation logfile):

I tested. In my report it shows the package is first cloned to my machine, then updated.

freetype git  ............................................... [Up-to-date]
  Running git clone for fontconfig...
  Running git update for fontconfig...
+ fontconfig git  ........................................ [Updates found]
+ Running uninstall...
+ Running meson...
+ Running build...
+ Running install...
+ Stripping...
+ fontconfig-git  .............................................. [Updated]

I would think if you deleted \build\fontconfig-git a clone would be downloaded, then updated if needed.

basilisk0315 commented 11 months ago

Hi pcspeak,

I removed the folder: d:/mabs/build/fontconfig-git and ran the script again: =-=-=-= Warning: We will not accept any issues lacking any form of logs or logs.zip!

    Starting 64bit compilation of all tools

Imported options from ffmpeg_options.txt License: nonfree Imported options from mpv_options.txt

    Starting 64bit compilation of global tools

Running git update for freetype... freetype git ............................................... [Up-to-date] Running git clone for fontconfig... Running git update for fontconfig... ┌ fontconfig git ........................................ [Updates found] ├ Running meson... ├ Running build... Likely error (tail of the failed operation logfile): D:/mabs/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/mabs/msys64/mingw64/lib/libfreetype.a(src_gzip_ftgzip.c.obj):(.text+0x94e): undefined reference to inflate' D:/mabs/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/mabs/msys64/mingw64/lib/libfreetype.a(src_gzip_ftgzip.c.obj):(.text+0x95d): undefined reference toinflateEnd' D:/mabs/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/mabs/msys64/mingw64/lib/libfreetype.a(src_gzip_ftgzip.c.obj):(.text+0x9ba): undefined reference to inflateEnd' D:/mabs/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/mabs/msys64/mingw64/lib/libfreetype.a(src_bzip2_ftbzip2.c.obj):(.text+0x6c): undefined reference toBZ2_bzDecompressEnd' D:/mabs/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/mabs/msys64/mingw64/lib/libfreetype.a(src_bzip2_ftbzip2.c.obj):(.text+0x11d): undefined reference to BZ2_bzDecompress' D:/mabs/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/mabs/msys64/mingw64/lib/libfreetype.a(src_bzip2_ftbzip2.c.obj):(.text+0x32a): undefined reference toBZ2_bzDecompressEnd' D:/mabs/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/mabs/msys64/mingw64/lib/libfreetype.a(src_bzip2_ftbzip2.c.obj):(.text+0x380): undefined reference to BZ2_bzDecompressInit' D:/mabs/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/mabs/msys64/mingw64/lib/libfreetype.a(src_bzip2_ftbzip2.c.obj):(.text+0x612): undefined reference toBZ2_bzDecompressInit' collect2.exe: error: ld returned 1 exit status ninja: build stopped: subcommand failed. build failed. Check D:/mabs/build/fontconfig-git/build-64bit/ab-suite.build.log This is required for other packages, so this script will exit. Creating diagnostics file...

Attach D:\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. =-=-=-=

It seems that my installation does not have libbzip2. Do you know how to install it?

pcspeak commented 11 months ago

Sorry, I can't help.

basilisk0315 commented 11 months ago

Thanks anyway.