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

[mingw32|mingw64] [repo] ERROR: opus not found using pkg-config #2624

Closed lleafs closed 2 months ago

lleafs commented 3 months ago

I ran the bat file, i chose no(2) to all the libs that i could. i wanted to install the light version. was i supposed choose a lib at the start of the bat file? i was running the 64-bit installation and it halted in ffmpeg git->running configure.. the output is pasted below. I will retry to install after getting a git update. logs.zip

22:07:19 Warning: We will not accept any issues lacking any form of logs or logs.zip!
22:07:19
        Starting 64bit compilation of all tools
Imported default FFmpeg options from .bat
License: nonfree
Imported default mpv options from .bat
22:07:28
        Starting 64bit compilation of global tools
22:07:29 ├ Installing brotli... done
22:07:31
        Starting 64bit compilation of audio tools
22:07:32 ├ Installing wavpack... done
22:07:37 ├ Installing lame... done
22:07:41   Running git clone for ogg...
22:07:47   Running git update for ogg...
22:07:47 ┌ ogg git  .................................. [Recently updated]
22:07:47 ├ Running autogen...
22:08:02 ├ Running configure...
22:08:28 ├ Running make...
22:08:30 ├ Running install...
22:08:32 ├ Stripping...
22:08:32 └ ogg-git  ........................................... [Updated]
22:08:32   Running git clone for vorbis...
22:08:41   Running git update for vorbis...
22:08:41 ┌ vorbis git  ............................... [Recently updated]
22:08:41 ├ Running autogen...
22:08:57 ├ Running configure...
22:09:22 ├ Running make...
22:09:29 ├ Running install...
22:09:32 ├ Stripping...
22:09:32 └ vorbis-git  ........................................ [Updated]
22:09:32   Running git clone for fdk-aac...
22:09:42   Running git update for fdk-aac...
22:09:42 ┌ fdk-aac git  .............................. [Recently updated]
22:09:42 ├ Running autoreconf...
22:09:56 ├ Running configure...
22:10:27 ├ Running make...
22:11:03 ├ Running install...
22:11:04 ├ Stripping...
22:11:04 └ fdk-aac-git  ....................................... [Updated]
22:11:04   Running git clone for opus...
opus git seems to be down
Try again later or <Enter> to continue

if you're sure nothing depends on it.
22:12:00
        Starting 64bit compilation of video tools
22:12:00   Running git clone for vpx...
22:12:23   Running git update for vpx...
22:12:23 ┌ vpx git  .................................. [Recently updated]
22:12:23 ├ Running configure...
22:12:38 ├ Running make...
22:13:27 ├ Running install...
22:13:28 ├ Stripping...
22:13:28 └ vpx-git  ........................................... [Updated]
22:13:28   Running git clone for aom...
22:13:55   Running git update for aom...
22:13:55 ┌ aom git  .................................. [Recently updated]
22:13:55 ├ Running cmake...
22:14:21 ├ Running build...
22:15:26 ├ Running install...
22:15:27 ├ Stripping...
22:15:27 └ aom-git  ........................................... [Updated]
22:15:27   Running git clone for dav1d...
22:15:45   Running git update for dav1d...
22:15:45 ┌ dav1d git  ................................ [Recently updated]
22:15:45 ├ Running meson...
22:15:49 ├ Running build...
22:16:16 ├ Running install...
22:16:16 ├ Stripping...
22:16:16 └ dav1d-git  ......................................... [Updated]
22:16:17   Running git clone for SDL...
22:17:01   Running git update for SDL...
22:17:01 ┌ SDL git  .................................. [Recently updated]
22:17:01 ├ Running autogen...
22:17:04 ├ Running configure...
22:18:26 ├ Running make...
22:19:13 ├ Running install...
22:19:15 ├ Stripping...
22:19:15 └ SDL-git  ........................................... [Updated]
22:19:15   Running git clone for AMF...
22:20:13   Running git update for AMF...
22:20:14 ┌ AMF git  .................................. [Recently updated]
22:20:14 └ AMF-git  ........................................... [Updated]
22:20:14   Running git clone for x264...
22:20:30   Running git update for x264...
22:20:31 ┌ x264 git  ................................. [Recently updated]
22:20:31 ├ Running configure...
22:20:36 ├ Running make...
22:21:37 ├ Running install...
22:21:37 ├ Stripping...
22:21:37 └ x264-git  .......................................... [Updated]
22:21:37   Running git clone for ffnvcodec...
22:21:44   Running git update for ffnvcodec...
22:21:44 ┌ ffnvcodec git  ............................ [Recently updated]
22:21:44 ├ Running install...
22:21:44 └ ffnvcodec-git  ..................................... [Updated]
22:21:45   Running git clone for ffmpeg...
22:23:33   Running git update for ffmpeg...
22:23:33 ┌ ffmpeg git  ............................... [Recently updated]
22:23:33 ├ Changing options to comply to nonfree...
22:23:36 ├ Compiling static FFmpeg...
22:23:36 ├ 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-schannel --enable-zlib --enable-sdl2 --enable-ffnvcodec --enable-nvdec --enable-cuda-llvm --enable-gmp --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libdav1d --enable-libaom --disable-debug --enable-libfdk-aac --extra-libs=-liconv --enable-gpl --enable-version3 --enable-nonfree --extra-version=gf1e34f1582+1
ERROR: opus 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 F:/media-autobuild_suite/build/ffmpeg-git/build-static-64bit/ab-suite.configure.log
This is required for other packages, so this script will exit.
22:24:46   Creating diagnostics file...

Attach F:\media-autobuild_suite\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

lleafs commented 3 months ago

i updated git scm and retried the build again and it worked.

L4cache commented 3 months ago

You should choose and use ffmpeg_options.txt to customize the libs you want