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.51k stars 262 forks source link

ERROR: srt >= 1.3.0 not found using pkg-config #2445

Closed Selur closed 1 year ago

Selur commented 1 year ago
13:06:53 ┌ ffmpeg git  .................................. [Updates found]
13:06:53 ├ Changing options to comply to gplv3...
13:06:55 ├ Compiling static FFmpeg...
13:06:55 ├ Running uninstall...
13:06:55 ├ Running configure...
Likely error (tail of the failed operation logfile):
CXXFLAGS: -mthreads -mtune=generic -O2 -pipe
LDFLAGS: -pipe -static-libgcc -static-libstdc++ -L/local32/lib -L/mingw32/lib
../configure --prefix=/local32 --bindir=/local32/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-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-mbedtls --extra-cflags=-DLIBTWOLAME_STATIC --extra-libs=-lstdc++ --extra-cflags=-DLIBXML_STATIC --extra-libs=-liconv --disable-w32threads --extra-version=g944243477b+1
ERROR: srt >= 1.3.0 not found using pkg-config

logs.zip

Biswa96 commented 1 year ago

The logs.zip file was not uploaded correctly in the original message. Would you like to upload it once more?

Selur commented 1 year ago

Hope it worked this time,... logs.zip

Biswa96 commented 1 year ago

Thanks. First some preliminary checks.

  1. It seems that you are compiling ffmpeg for 32 bit and 64 bit both, is that expected?
  2. Could you test if /mingw32/lib/libstdc++.a file exists? Just run file /mingw32/lib/libstdc++.a command and it should show current ar archive.
  3. Could you reinstall the mingw-w64-i686-gcc package?
  4. After doing 1 and 2, could you try building ffmpeg 32 bit again?
Selur commented 1 year ago

It seems that you are compiling ffmpeg for 32 bit and 64 bit both, is that expected?

Yes, I always build both 32bit and 64bit.

Could you test if /mingw32/lib/libstdc++.a file exists?

Thatt file exists:

Selur@Hexagon /home/user
$ ls -lah /mingw32/lib/libst*
-rw-r--r-- 1 Selur Kein 6.0M May 15 09:32 /mingw32/lib/libstdc++.a
-rw-r--r-- 1 Selur Kein 5.6M May 15 09:32 /mingw32/lib/libstdc++.dll.a.dyn
-rw-r--r-- 1 Selur Kein 2.4K May 15 09:32 /mingw32/lib/libstdc++.dll.a-gdb.py
-rw-r--r-- 1 Selur Kein 4.0K May 15 09:32 /mingw32/lib/libstdc++exp.a
-rw-r--r-- 1 Selur Kein 514K May 15 09:32 /mingw32/lib/libstdc++fs.a
-rw-r--r-- 1 Selur Kein 360K Apr 16 02:33 /mingw32/lib/libstrmiids.a
$ file /mingw32/lib/libstdc++.a
/mingw32/lib/libstdc++.a: current ar archive

Could you reinstall the mingw-w64-i686-gcc package? If you can tell me how, I can reinstall mingw-w64-i686-gcc. Should I delete the 'msys64/mingw64'-folder, or is there a proper way to de- and install it`?

Biswa96 commented 1 year ago

If you can tell me how, I can reinstall mingw-w64-i686-gcc.

Just pacman -S mingw-w64-i686-gcc and keep pressing enter when any question/prompt is asked.

Selur commented 1 year ago

will do and report back :)

Selur commented 1 year ago
$ pacman -S mingw-w64-i686-gcc
warning: mingw-w64-i686-gcc-13.1.0-6 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) mingw-w64-i686-gcc-13.1.0-6

Total Installed Size:  168.81 MiB
Net Upgrade Size:        0.00 MiB

:: Proceed with installation? [Y/n]
(1/1) checking keys in keyring                               [################################] 100%
(1/1) checking package integrity                             [################################] 100%
(1/1) loading package files                                  [################################] 100%
(1/1) checking for file conflicts                            [################################] 100%
(1/1) checking available disk space                                                                                        [#########################################################################] 100%
warning: could not get file information for mingw32/lib/libatomic.dll.a
warning: could not get file information for mingw32/lib/libgomp.dll.a
warning: could not get file information for mingw32/lib/libquadmath.dll.a
warning: could not get file information for mingw32/lib/libstdc++.dll.a
:: Processing package changes...
(1/1) reinstalling mingw-w64-i686-gcc                                                                                      [#########################################################################] 100%

After starting the build script I mingw-w64 was removed but there were tons of warnings with: "Christoph Reiter (MSYS2 development key) <reiter.christoph@gmail.com>" is invalid in it. logs.zip it then failed again,...

Selur commented 1 year ago

Started the script again and now it seems to be reinstalling mingw-w64 :) will report back

Selur commented 1 year ago

Now it fails due to some expired certificate,.... logs.zip

Biswa96 commented 1 year ago

fatal: unable to access 'https://git.videolan.org/git/ffmpeg/nv-codec-headers.git/': SSL certificate problem: certificate has expired

It seems that the error is not related to the build system. The website https://git.videolan.org/ has expired certificate. @1480c1 may find any alternative.

Selur commented 1 year ago

Now we are back to the inital 'srt >= 1.3.0 not found using pkg-config' error. logs.zip

Selur commented 1 year ago

works now.