markus-perl / ffmpeg-build-script

The FFmpeg build script provides an easy way to build a static FFmpeg on OSX and Linux with non-free codecs included.
MIT License
1.05k stars 332 forks source link

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

Open hTobi02 opened 2 years ago

hTobi02 commented 2 years ago

Hi, I get the error written above while executing your install script with gpl and non free codecs bash <(curl -s "https://raw.githubusercontent.com/markus-perl/ffmpeg-build-script/master/web-install-gpl-and-non-free.sh?v1")

My OS is a clean installation of debian 11.

If I execute pkg-config --modversion srt im getting the output 1.4.2.

Am I missing something?

Full output:

ffmpeg-build-script-downloader v0.1
=========================================

First we create the ffmpeg build directory ffmpeg-build
Now we download and execute the build script

ffmpeg-build-script v1.33
=========================

Using 8 make jobs simultaneously.
With GPL and non-free codecs
cargo not installed. rav1e encoder will not be available.

building giflib - version 5.2.1
=======================
giflib version 5.2.1 already built. Remove /root/ffmpeg-build/packages/giflib.done lockfile to rebuild it.

building pkg-config - version 0.29.2
=======================
pkg-config version 0.29.2 already built. Remove /root/ffmpeg-build/packages/pkg-config.done lockfile to rebuild it.

building yasm - version 1.3.0
=======================
yasm version 1.3.0 already built. Remove /root/ffmpeg-build/packages/yasm.done lockfile to rebuild it.

building nasm - version 2.15.05
=======================
nasm version 2.15.05 already built. Remove /root/ffmpeg-build/packages/nasm.done lockfile to rebuild it.

building zlib - version 1.2.11
=======================
zlib version 1.2.11 already built. Remove /root/ffmpeg-build/packages/zlib.done lockfile to rebuild it.

building m4 - version 1.4.19
=======================
m4 version 1.4.19 already built. Remove /root/ffmpeg-build/packages/m4.done lockfile to rebuild it.

building autoconf - version 2.71
=======================
autoconf version 2.71 already built. Remove /root/ffmpeg-build/packages/autoconf.done lockfile to rebuild it.

building automake - version 1.16.4
=======================
automake version 1.16.4 already built. Remove /root/ffmpeg-build/packages/automake.done lockfile to rebuild it.

building libtool - version 2.4.6
=======================
libtool version 2.4.6 already built. Remove /root/ffmpeg-build/packages/libtool.done lockfile to rebuild it.

building openssl - version 1.1.1l
=======================
openssl version 1.1.1l already built. Remove /root/ffmpeg-build/packages/openssl.done lockfile to rebuild it.

building cmake - version 3.22.0
=======================
cmake version 3.22.0 already built. Remove /root/ffmpeg-build/packages/cmake.done lockfile to rebuild it.

building svtav1 - version 1a3e32b
=======================
svtav1 version 1a3e32b already built. Remove /root/ffmpeg-build/packages/svtav1.done lockfile to rebuild it.

building x264 - version 5db6aa6
=======================
x264 version 5db6aa6 already built. Remove /root/ffmpeg-build/packages/x264.done lockfile to rebuild it.

building x265 - version 3.5
=======================
x265 version 3.5 already built. Remove /root/ffmpeg-build/packages/x265.done lockfile to rebuild it.

building libvpx - version 1.10.0
=======================
libvpx version 1.10.0 already built. Remove /root/ffmpeg-build/packages/libvpx.done lockfile to rebuild it.

building xvidcore - version 1.3.7
=======================
xvidcore version 1.3.7 already built. Remove /root/ffmpeg-build/packages/xvidcore.done lockfile to rebuild it.

building vid_stab - version 1.1.0
=======================
vid_stab version 1.1.0 already built. Remove /root/ffmpeg-build/packages/vid_stab.done lockfile to rebuild it.

building av1 - version ae2be80
=======================
av1 version ae2be80 already built. Remove /root/ffmpeg-build/packages/av1.done lockfile to rebuild it.

building zimg - version 3.0.3
=======================
zimg version 3.0.3 already built. Remove /root/ffmpeg-build/packages/zimg.done lockfile to rebuild it.

building lv2 - version 1.18.2
=======================
lv2 version 1.18.2 already built. Remove /root/ffmpeg-build/packages/lv2.done lockfile to rebuild it.

building waflib - version b600c92
=======================
waflib version b600c92 already built. Remove /root/ffmpeg-build/packages/waflib.done lockfile to rebuild it.

building serd - version 0.30.10
=======================
serd version 0.30.10 already built. Remove /root/ffmpeg-build/packages/serd.done lockfile to rebuild it.

building pcre - version 8.45
=======================
pcre version 8.45 already built. Remove /root/ffmpeg-build/packages/pcre.done lockfile to rebuild it.

building sord - version 0.16.8
=======================
sord version 0.16.8 already built. Remove /root/ffmpeg-build/packages/sord.done lockfile to rebuild it.

building sratom - version 0.6.8
=======================
sratom version 0.6.8 already built. Remove /root/ffmpeg-build/packages/sratom.done lockfile to rebuild it.

building lilv - version 0.24.12
=======================
lilv version 0.24.12 already built. Remove /root/ffmpeg-build/packages/lilv.done lockfile to rebuild it.

building opencore - version 0.1.5
=======================
opencore version 0.1.5 already built. Remove /root/ffmpeg-build/packages/opencore.done lockfile to rebuild it.

building lame - version 3.100
=======================
lame version 3.100 already built. Remove /root/ffmpeg-build/packages/lame.done lockfile to rebuild it.

building opus - version 1.3.1
=======================
opus version 1.3.1 already built. Remove /root/ffmpeg-build/packages/opus.done lockfile to rebuild it.

building libogg - version 1.3.3
=======================
libogg version 1.3.3 already built. Remove /root/ffmpeg-build/packages/libogg.done lockfile to rebuild it.

building libvorbis - version 1.3.6
=======================
libvorbis version 1.3.6 already built. Remove /root/ffmpeg-build/packages/libvorbis.done lockfile to rebuild it.

building libtheora - version 1.1.1
=======================
libtheora version 1.1.1 already built. Remove /root/ffmpeg-build/packages/libtheora.done lockfile to rebuild it.

building fdk_aac - version 2.0.2
=======================
fdk_aac version 2.0.2 already built. Remove /root/ffmpeg-build/packages/fdk_aac.done lockfile to rebuild it.

building libtiff - version 4.2.0
=======================
libtiff version 4.2.0 already built. Remove /root/ffmpeg-build/packages/libtiff.done lockfile to rebuild it.

building libpng - version 1.6.37
=======================
libpng version 1.6.37 already built. Remove /root/ffmpeg-build/packages/libpng.done lockfile to rebuild it.

building libwebp - version 1.2.1
=======================
libwebp version 1.2.1 already built. Remove /root/ffmpeg-build/packages/libwebp.done lockfile to rebuild it.

building libsdl - version 2.0.14
=======================
libsdl version 2.0.14 already built. Remove /root/ffmpeg-build/packages/libsdl.done lockfile to rebuild it.

building srt - version 1.4.3
=======================
srt version 1.4.3 already built. Remove /root/ffmpeg-build/packages/srt.done lockfile to rebuild it.

building amf - version 1.4.21.0
=======================
amf version 1.4.21.0 already built. Remove /root/ffmpeg-build/packages/amf.done lockfile to rebuild it.

building ffmpeg - version 4.4
=======================
FFmpeg-release-4.4.tar.gz has already downloaded.
Extracted FFmpeg-release-4.4.tar.gz
ERROR: srt >= 1.3.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.
$ make -j 8
Makefile:177: /tests/Makefile: Datei oder Verzeichnis nicht gefunden
make: *** Keine Regel, um „/tests/Makefile“ zu erstellen.  Schluss.

Failed to Execute make -j 8
asokani commented 2 years ago

Same for me. Ubuntu 18.04.6 LTS. Three days ago, the build was fine.

Now

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

pkg-config --modversion srt 1.4.4

calanor commented 2 years ago

Also with the same issue on Ubuntu 18.04.2 LTS.

pkg-config --modversion srt 1.4.3

srt is compiled without errors and pkg-config exists in workspace/lib/pkgconfig/srt.pc and its ok.

xiaolitongxue666 commented 1 year ago

I just copy libsrt.a , srt.h and src.pc to /usr/local/lib , /usr/local/inculde and /usr/local/lib/pkgconfig/ can compiler sucess, it's not this repo isuuse , i think most like ubuntu version and ffmppeg 4.4 not match well

Successfully built binary for linux-gnu: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), statically linked, BuildID[sha1]=fbec7831174b9539110bae7097eec24711cc7bb7, for GNU/Linux 3.2.0, stripped                                 

Building done. The following binaries can be found here:                                                                          
- ffmpeg: /home/leonli/Code/my_code/FFmpeg/ffmpeg-build-script/workspace/bin/ffmpeg                                               
- ffprobe: /home/leonli/Code/my_code/FFmpeg/ffmpeg-build-script/workspace/bin/ffprobe                                             
- ffplay: /home/leonli/Code/my_code/FFmpeg/ffmpeg-build-script/workspace/bin/ffplay                                               

Install these binaries to your /usr/bin folder? Existing binaries will be replaced. [Y/n] n 
zhangshouyin commented 7 months ago

Ubuntu 18.04.2 LTS 上也存在同样的问题。

pkg-config --modversion srt 1.4.3

srt 编译没有错误,pkg-config 存在于workspace/lib/pkgconfig/srt.pc 中并且没问题。

我的也是,你最后是怎么解决的?

zhangshouyin commented 7 months ago

I just copy libsrt.a , srt.h and src.pc to /usr/local/lib , /usr/local/inculde and /usr/local/lib/pkgconfig/ can compiler sucess, it's not this repo isuuse , i think most like ubuntu version and ffmppeg 4.4 not match well

Successfully built binary for linux-gnu: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), statically linked, BuildID[sha1]=fbec7831174b9539110bae7097eec24711cc7bb7, for GNU/Linux 3.2.0, stripped                                 

Building done. The following binaries can be found here:                                                                          
- ffmpeg: /home/leonli/Code/my_code/FFmpeg/ffmpeg-build-script/workspace/bin/ffmpeg                                               
- ffprobe: /home/leonli/Code/my_code/FFmpeg/ffmpeg-build-script/workspace/bin/ffprobe                                             
- ffplay: /home/leonli/Code/my_code/FFmpeg/ffmpeg-build-script/workspace/bin/ffplay                                               

Install these binaries to your /usr/bin folder? Existing binaries will be replaced. [Y/n] n 

@xiaolitongxue666 我按照你的方式操作还是不行,还有其他办法吗?