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 334 forks source link

ERROR: x265 not found using pkg-config #73

Open lexxai opened 3 years ago

lexxai commented 3 years ago

Ubuntu 20.04.1 LTS ffmpeg build ERROR: x265 not found using pkg-config

solution: sudo apt-get install libnuma-dev

may be script should check libnuma-dev ?

https://stackoverflow.com/questions/51918409/compiling-ffmpeg-x265-not-found-using-pkg-config

markus-perl commented 3 years ago

Please always post the full output of the script. I did a quick test on a freshly installed Ubuntu 20.04 and wasn't able to reproduce your issue:

root@ubuntu-20.04:~/ffmpeg-build-script# ./build-ffmpeg --build
ffmpeg-build-script v1.22
=========================

Using 4 make jobs simultaneously.
Python command not found. Lv2 filter will not be available.

building pkg-config
=======================
Downloading https://pkgconfig.freedesktop.org/releases/pkg-config-0.29.2.tar.gz as pkg-config-0.29.2.tar.gz
... Done
Extracted pkg-config-0.29.2.tar.gz
$ ./configure --silent --prefix=/root/ffmpeg-build-script/workspace --with-pc-path=/root/ffmpeg-build-script/workspace/lib/pkgconfig --with-internal-glib
$ make -j 4
$ make install

building yasm
=======================
Downloading https://github.com/yasm/yasm/releases/download/v1.3.0/yasm-1.3.0.tar.gz as yasm-1.3.0.tar.gz
... Done
Extracted yasm-1.3.0.tar.gz
$ ./configure --prefix=/root/ffmpeg-build-script/workspace
$ make -j 4
$ make install

building nasm
=======================
Downloading https://www.nasm.us/pub/nasm/releasebuilds/2.15.05/nasm-2.15.05.tar.xz as nasm-2.15.05.tar.xz
... Done
Extracted nasm-2.15.05.tar.xz
$ ./configure --prefix=/root/ffmpeg-build-script/workspace --disable-shared --enable-static
$ make -j 4
$ make install

building zlib
=======================
Downloading https://www.zlib.net/zlib-1.2.11.tar.gz as zlib-1.2.11.tar.gz
... Done
Extracted zlib-1.2.11.tar.gz
$ ./configure --static --prefix=/root/ffmpeg-build-script/workspace
$ make -j 4
$ make install

building openssl
=======================
Downloading https://www.openssl.org/source/openssl-1.1.1i.tar.gz as openssl-1.1.1i.tar.gz
... Done
Extracted openssl-1.1.1i.tar.gz
$ ./config --prefix=/root/ffmpeg-build-script/workspace --openssldir=/root/ffmpeg-build-script/workspace --with-zlib-include=/root/ffmpeg-build-script/workspace/include/ --with-zlib-lib=/root/ffmpeg-build-script/workspace/lib no-shared zlib
$ make -j 4
$ make install_sw

building cmake
=======================
Downloading https://cmake.org/files/v3.18/cmake-3.18.4.tar.gz as cmake-3.18.4.tar.gz
... Done
Extracted cmake-3.18.4.tar.gz
$ ./configure --prefix=/root/ffmpeg-build-script/workspace --system-zlib
$ make -j 4
$ make install

building svtav1
=======================
Downloading https://github.com/AOMediaCodec/SVT-AV1/archive/v0.8.6.tar.gz as v0.8.6.tar.gz
... Done
Extracted v0.8.6.tar.gz
$ cmake -DCMAKE_INSTALL_PREFIX=/root/ffmpeg-build-script/workspace -DENABLE_SHARED=off -DBUILD_SHARED_LIBS=OFF ../.. -GUnix Makefiles -DCMAKE_BUILD_TYPE=Release
$ make -j 4
$ make install
$ cp SvtAv1Enc.pc /root/ffmpeg-build-script/workspace/lib/pkgconfig/
$ cp SvtAv1Dec.pc /root/ffmpeg-build-script/workspace/lib/pkgconfig/

building x264
=======================
Downloading https://code.videolan.org/videolan/x264/-/archive/0d754ec36013fee82978496cd56fbd48824910b3/x264-0d754ec36013fee82978496cd56fbd48824910b3.tar.gz as x264-0d754ec.tar.gz
... Done
Extracted x264-0d754ec.tar.gz
$ ./configure --prefix=/root/ffmpeg-build-script/workspace --enable-static --enable-pic CXXFLAGS=-fPIC
$ make -j 4
$ make install
$ make install-lib-static

building x265
=======================
Downloading https://github.com/videolan/x265/archive/Release_3.5.tar.gz as x265-3.5.tar.gz
... Done
Extracted x265-3.5.tar.gz
$ cmake -DCMAKE_INSTALL_PREFIX=/root/ffmpeg-build-script/workspace -DENABLE_SHARED=off -DBUILD_SHARED_LIBS=OFF ../../source
$ make -j 4
$ make install

building libvpx
=======================
Downloading https://github.com/webmproject/libvpx/archive/v1.9.0.tar.gz as libvpx-1.9.0.tar.gz
... Done
Extracted libvpx-1.9.0.tar.gz
$ ./configure --prefix=/root/ffmpeg-build-script/workspace --disable-unit-tests --disable-shared --as=yasm
$ make -j 4
$ make install

building xvidcore
=======================
Downloading https://downloads.xvid.com/downloads/xvidcore-1.3.7.tar.gz as xvidcore-1.3.7.tar.gz
... Done
Extracted xvidcore-1.3.7.tar.gz
$ ./configure --prefix=/root/ffmpeg-build-script/workspace --disable-shared --enable-static
$ make -j 4
$ make install
$ rm /root/ffmpeg-build-script/workspace/lib/libxvidcore.so /root/ffmpeg-build-script/workspace/lib/libxvidcore.so.4 /root/ffmpeg-build-script/workspace/lib/libxvidcore.so.4.3

building vid_stab
=======================
Downloading https://github.com/georgmartius/vid.stab/archive/v1.1.0.tar.gz as vid.stab-1.1.0.tar.gz
... Done
Extracted vid.stab-1.1.0.tar.gz
$ cmake -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=/root/ffmpeg-build-script/workspace -DUSE_OMP=OFF -DENABLE_SHARED=off .
$ make
$ make install

building av1
=======================
Downloading https://aomedia.googlesource.com/aom/+archive/b52ee6d44adaef8a08f6984390de050d64df9faa.tar.gz as av1.tar.gz
... Done
Extracted av1.tar.gz
$ cmake -DENABLE_TESTS=0 -DCMAKE_INSTALL_PREFIX=/root/ffmpeg-build-script/workspace -DCMAKE_INSTALL_LIBDIR=lib /root/ffmpeg-build-script/packages/av1
$ make -j 4
$ make install

building opencore
=======================
Downloading https://deac-riga.dl.sourceforge.net/project/opencore-amr/opencore-amr/opencore-amr-0.1.5.tar.gz as opencore-amr-0.1.5.tar.gz
... Done
Extracted opencore-amr-0.1.5.tar.gz
$ ./configure --prefix=/root/ffmpeg-build-script/workspace --disable-shared --enable-static
$ make -j 4
$ make install

building lame
=======================
Downloading https://netcologne.dl.sourceforge.net/project/lame/lame/3.100/lame-3.100.tar.gz as lame-3.100.tar.gz
... Done
Extracted lame-3.100.tar.gz
$ ./configure --prefix=/root/ffmpeg-build-script/workspace --disable-shared --enable-static
$ make -j 4
$ make install

building opus
=======================
Downloading https://archive.mozilla.org/pub/opus/opus-1.3.1.tar.gz as opus-1.3.1.tar.gz
... Done
Extracted opus-1.3.1.tar.gz
$ ./configure --prefix=/root/ffmpeg-build-script/workspace --disable-shared --enable-static
$ make -j 4
$ make install

building libogg
=======================
Downloading https://ftp.osuosl.org/pub/xiph/releases/ogg/libogg-1.3.3.tar.gz as libogg-1.3.3.tar.gz
... Done
Extracted libogg-1.3.3.tar.gz
$ ./configure --prefix=/root/ffmpeg-build-script/workspace --disable-shared --enable-static
$ make -j 4
$ make install

building libvorbis
=======================
Downloading https://ftp.osuosl.org/pub/xiph/releases/vorbis/libvorbis-1.3.6.tar.gz as libvorbis-1.3.6.tar.gz
... Done
Extracted libvorbis-1.3.6.tar.gz
$ ./configure --prefix=/root/ffmpeg-build-script/workspace --with-ogg-libraries=/root/ffmpeg-build-script/workspace/lib --with-ogg-includes=/root/ffmpeg-build-script/workspace/include/ --enable-static --disable-shared --disable-oggtest
$ make -j 4
$ make install

building libtheora
=======================
Downloading https://ftp.osuosl.org/pub/xiph/releases/theora/libtheora-1.1.1.tar.gz as libtheora-1.1.1.tar.gz
... Done
Extracted libtheora-1.1.1.tar.gz
$ ./configure --prefix=/root/ffmpeg-build-script/workspace --with-ogg-libraries=/root/ffmpeg-build-script/workspace/lib --with-ogg-includes=/root/ffmpeg-build-script/workspace/include/ --with-vorbis-libraries=/root/ffmpeg-build-script/workspace/lib --with-vorbis-includes=/root/ffmpeg-build-script/workspace/include/ --enable-static --disable-shared --disable-oggtest --disable-vorbistest --disable-examples --disable-asm --disable-spec
$ make -j 4
$ make install

building fdk_aac
=======================
Downloading https://sourceforge.net/projects/opencore-amr/files/fdk-aac/fdk-aac-2.0.1.tar.gz/download?use_mirror=gigenet as fdk-aac-2.0.1.tar.gz
... Done
Extracted fdk-aac-2.0.1.tar.gz
$ ./configure --prefix=/root/ffmpeg-build-script/workspace --disable-shared --enable-static
$ make -j 4
$ make install

building libwebp
=======================
Downloading https://github.com/webmproject/libwebp/archive/v1.1.0.tar.gz as libwebp-1.1.0.tar.gz
... Done
Extracted libwebp-1.1.0.tar.gz
$ cmake -DCMAKE_INSTALL_PREFIX=/root/ffmpeg-build-script/workspace -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_INSTALL_BINDIR=bin -DCMAKE_INSTALL_INCLUDEDIR=include -DENABLE_SHARED=OFF -DENABLE_STATIC=ON ../
$ make -j 4
$ make install

building libsdl
=======================
Downloading https://www.libsdl.org/release/SDL2-2.0.14.tar.gz as SDL2-2.0.14.tar.gz
... Done
Extracted SDL2-2.0.14.tar.gz
$ ./configure --prefix=/root/ffmpeg-build-script/workspace --disable-shared --enable-static
$ make -j 4
$ make install

building srt
=======================
Downloading https://github.com/Haivision/srt/archive/v1.4.1.tar.gz as srt-1.4.1.tar.gz
... Done
Extracted srt-1.4.1.tar.gz
$ cmake . -DCMAKE_INSTALL_PREFIX=/root/ffmpeg-build-script/workspace -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_INSTALL_BINDIR=bin -DCMAKE_INSTALL_INCLUDEDIR=include -DENABLE_SHARED=OFF -DENABLE_STATIC=ON -DENABLE_APPS=OFF -DUSE_STATIC_LIBSTDCXX=ON
$ make install

building ffmpeg
=======================
Downloading https://git.ffmpeg.org/gitweb/ffmpeg.git/snapshot/553eb0773763798a6b9656b621cb125e1f6edbcc.tar.gz as 553eb0773763798a6b9656b621cb125e1f6edbcc.tar.gz
... Done
Extracted 553eb0773763798a6b9656b621cb125e1f6edbcc.tar.gz
install prefix            /root/ffmpeg-build-script/workspace
source path               .
C compiler                gcc
C library                 glibc
ARCH                      x86 (generic)
big-endian                no
runtime cpu detection     yes
standalone assembly       yes
x86 assembler             nasm
MMX enabled               yes
MMXEXT enabled            yes
3DNow! enabled            yes
3DNow! extended enabled   yes
SSE enabled               yes
SSSE3 enabled             yes
AESNI enabled             yes
AVX enabled               yes
AVX2 enabled              yes
AVX-512 enabled           yes
XOP enabled               yes
FMA3 enabled              yes
FMA4 enabled              yes
i686 features enabled     yes
CMOV is fast              yes
EBX available             yes
EBP available             yes
debug symbols             no
strip symbols             yes
optimize for size         yes
optimizations             yes
static                    yes
shared                    no
postprocessing support    yes
network support           yes
threading support         pthreads
safe bitstream reader     yes
texi2html enabled         no
perl enabled              yes
pod2man enabled           yes
makeinfo enabled          no
makeinfo supports HTML    no

External libraries:
iconv                   libopencore_amrnb       libsvtav1               libvpx                  libxvid
libaom                  libopencore_amrwb       libtheora               libwebp                 openssl
libfdk_aac              libopus                 libvidstab              libx264                 sdl2
libmp3lame              libsrt                  libvorbis               libx265                 zlib

External libraries providing hardware acceleration:
v4l2_m2m

Libraries:
avcodec                 avfilter                avutil                  swresample
avdevice                avformat                postproc                swscale

Programs:
ffmpeg                  ffplay                  ffprobe

Enabled decoders:
aac                     bmp                     iac                     pcm_bluray              stl
aac_fixed               bmv_audio               idcin                   pcm_dvd                 subrip
aac_latm                bmv_video               idf                     pcm_f16le               subviewer
aasc                    brender_pix             iff_ilbm                pcm_f24le               subviewer1
ac3                     c93                     ilbc                    pcm_f32be               sunrast
ac3_fixed               cavs                    imc                     pcm_f32le               svq1
acelp_kelvin            ccaption                imm4                    pcm_f64be               svq3
adpcm_4xm               cdgraphics              imm5                    pcm_f64le               tak
adpcm_adx               cdtoons                 indeo2                  pcm_lxf                 targa
adpcm_afc               cdxl                    indeo3                  pcm_mulaw               targa_y216
adpcm_agm               cfhd                    indeo4                  pcm_s16be               tdsc
adpcm_aica              cinepak                 indeo5                  pcm_s16be_planar        text
adpcm_argo              clearvideo              interplay_acm           pcm_s16le               theora
adpcm_ct                cljr                    interplay_dpcm          pcm_s16le_planar        thp
adpcm_dtk               cllc                    interplay_video         pcm_s24be               tiertexseqvideo
adpcm_ea                comfortnoise            ipu                     pcm_s24daud             tiff
adpcm_ea_maxis_xa       cook                    jacosub                 pcm_s24le               tmv
adpcm_ea_r1             cpia                    jpeg2000                pcm_s24le_planar        truehd
adpcm_ea_r2             cri                     jpegls                  pcm_s32be               truemotion1
adpcm_ea_r3             cscd                    jv                      pcm_s32le               truemotion2
adpcm_ea_xas            cyuv                    kgv1                    pcm_s32le_planar        truemotion2rt
adpcm_g722              dca                     kmvc                    pcm_s64be               truespeech
adpcm_g726              dds                     lagarith                pcm_s64le               tscc
adpcm_g726le            derf_dpcm               libaom_av1              pcm_s8                  tscc2
adpcm_ima_alp           dfa                     libfdk_aac              pcm_s8_planar           tta
adpcm_ima_amv           dirac                   libopencore_amrnb       pcm_u16be               twinvq
adpcm_ima_apc           dnxhd                   libopencore_amrwb       pcm_u16le               txd
adpcm_ima_apm           dolby_e                 libopus                 pcm_u24be               ulti
adpcm_ima_cunning       dpx                     libvorbis               pcm_u24le               utvideo
adpcm_ima_dat4          dsd_lsbf                libvpx_vp8              pcm_u32be               v210
adpcm_ima_dk3           dsd_lsbf_planar         libvpx_vp9              pcm_u32le               v210x
adpcm_ima_dk4           dsd_msbf                loco                    pcm_u8                  v308
adpcm_ima_ea_eacs       dsd_msbf_planar         lscr                    pcm_vidc                v408
adpcm_ima_ea_sead       dsicinaudio             m101                    pcx                     v410
adpcm_ima_iss           dsicinvideo             mace3                   pfm                     vb
adpcm_ima_moflex        dss_sp                  mace6                   pgm                     vble
adpcm_ima_mtf           dst                     magicyuv                pgmyuv                  vc1
adpcm_ima_oki           dvaudio                 mdec                    pgssub                  vc1_v4l2m2m
adpcm_ima_qt            dvbsub                  metasound               pgx                     vc1image
adpcm_ima_rad           dvdsub                  microdvd                photocd                 vcr1
adpcm_ima_smjpeg        dvvideo                 mimic                   pictor                  vmdaudio
adpcm_ima_ssi           dxa                     mjpeg                   pixlet                  vmdvideo
adpcm_ima_wav           dxtory                  mjpegb                  pjs                     vmnc
adpcm_ima_ws            dxv                     mlp                     png                     vorbis
adpcm_ms                eac3                    mmvideo                 ppm                     vp3
adpcm_mtaf              eacmv                   mobiclip                prores                  vp4
adpcm_psx               eamad                   motionpixels            prosumer                vp5
adpcm_sbpro_2           eatgq                   movtext                 psd                     vp6
adpcm_sbpro_3           eatgv                   mp1                     ptx                     vp6a
adpcm_sbpro_4           eatqi                   mp1float                qcelp                   vp6f
adpcm_swf               eightbps                mp2                     qdm2                    vp7
adpcm_thp               eightsvx_exp            mp2float                qdmc                    vp8
adpcm_thp_le            eightsvx_fib            mp3                     qdraw                   vp8_v4l2m2m
adpcm_vima              escape124               mp3adu                  qpeg                    vp9
adpcm_xa                escape130               mp3adufloat             qtrle                   vp9_v4l2m2m
adpcm_yamaha            evrc                    mp3float                r10k                    vplayer
adpcm_zork              exr                     mp3on4                  r210                    vqa
agm                     fastaudio               mp3on4float             ra_144                  wavpack
aic                     ffv1                    mpc7                    ra_288                  wcmv
alac                    ffvhuff                 mpc8                    ralf                    webp
alias_pix               ffwavesynth             mpeg1_v4l2m2m           rasc                    webvtt
als                     fic                     mpeg1video              rawvideo                wmalossless
amrnb                   fits                    mpeg2_v4l2m2m           realtext                wmapro
amrwb                   flac                    mpeg2video              rl2                     wmav1
amv                     flashsv                 mpeg4                   roq                     wmav2
anm                     flashsv2                mpeg4_v4l2m2m           roq_dpcm                wmavoice
ansi                    flic                    mpegvideo               rpza                    wmv1
ape                     flv                     mpl2                    rscc                    wmv2
apng                    fmvc                    msa1                    rv10                    wmv3
aptx                    fourxm                  mscc                    rv20                    wmv3image
aptx_hd                 fraps                   msmpeg4v1               rv30                    wnv1
arbc                    frwu                    msmpeg4v2               rv40                    wrapped_avframe
argo                    g2m                     msmpeg4v3               s302m                   ws_snd1
ass                     g723_1                  msp2                    sami                    xan_dpcm
asv1                    g729                    msrle                   sanm                    xan_wc3
asv2                    gdv                     mss1                    sbc                     xan_wc4
atrac1                  gif                     mss2                    scpr                    xbin
atrac3                  gremlin_dpcm            msvideo1                screenpresso            xbm
atrac3al                gsm                     mszh                    sdx2_dpcm               xface
atrac3p                 gsm_ms                  mts2                    sgi                     xl
atrac3pal               h261                    mv30                    sgirle                  xma1
atrac9                  h263                    mvc1                    sheervideo              xma2
aura                    h263_v4l2m2m            mvc2                    shorten                 xpm
aura2                   h263i                   mvdv                    sipr                    xsub
av1                     h263p                   mvha                    siren                   xwd
avrn                    h264                    mwsc                    smackaud                y41p
avrp                    h264_v4l2m2m            mxpeg                   smacker                 ylc
avs                     hap                     nellymoser              smc                     yop
avui                    hca                     notchlc                 smvjpeg                 yuv4
ayuv                    hcom                    nuv                     snow                    zero12v
bethsoftvid             hevc                    on2avc                  sol_dpcm                zerocodec
bfi                     hevc_v4l2m2m            opus                    sonic                   zlib
bink                    hnm4_video              paf_audio               sp5x                    zmbv
binkaudio_dct           hq_hqa                  paf_video               speedhq
binkaudio_rdft          hqx                     pam                     srgc
bintext                 huffyuv                 pbm                     srt
bitpacked               hymt                    pcm_alaw                ssa

Enabled encoders:
a64multi                dnxhd                   libx264rgb              pcm_s32le               sonic_ls
a64multi5               dpx                     libx265                 pcm_s32le_planar        speedhq
aac                     dvbsub                  libxvid                 pcm_s64be               srt
ac3                     dvdsub                  ljpeg                   pcm_s64le               ssa
ac3_fixed               dvvideo                 magicyuv                pcm_s8                  subrip
adpcm_adx               eac3                    mjpeg                   pcm_s8_planar           sunrast
adpcm_argo              ffv1                    mlp                     pcm_u16be               svq1
adpcm_g722              ffvhuff                 movtext                 pcm_u16le               targa
adpcm_g726              fits                    mp2                     pcm_u24be               text
adpcm_g726le            flac                    mp2fixed                pcm_u24le               tiff
adpcm_ima_alp           flashsv                 mpeg1video              pcm_u32be               truehd
adpcm_ima_amv           flashsv2                mpeg2video              pcm_u32le               tta
adpcm_ima_apm           flv                     mpeg4                   pcm_u8                  utvideo
adpcm_ima_qt            g723_1                  mpeg4_v4l2m2m           pcm_vidc                v210
adpcm_ima_ssi           gif                     msmpeg4v2               pcx                     v308
adpcm_ima_wav           h261                    msmpeg4v3               pgm                     v408
adpcm_ms                h263                    msvideo1                pgmyuv                  v410
adpcm_swf               h263_v4l2m2m            nellymoser              png                     vc2
adpcm_yamaha            h263p                   opus                    ppm                     vorbis
alac                    h264_v4l2m2m            pam                     prores                  vp8_v4l2m2m
alias_pix               hevc_v4l2m2m            pbm                     prores_aw               wavpack
amv                     huffyuv                 pcm_alaw                prores_ks               webvtt
apng                    jpeg2000                pcm_dvd                 qtrle                   wmav1
aptx                    jpegls                  pcm_f32be               r10k                    wmav2
aptx_hd                 libaom_av1              pcm_f32le               r210                    wmv1
ass                     libfdk_aac              pcm_f64be               ra_144                  wmv2
asv1                    libmp3lame              pcm_f64le               rawvideo                wrapped_avframe
asv2                    libopencore_amrnb       pcm_mulaw               roq                     xbm
avrp                    libopus                 pcm_s16be               roq_dpcm                xface
avui                    libsvtav1               pcm_s16be_planar        rpza                    xsub
ayuv                    libtheora               pcm_s16le               rv10                    xwd
bmp                     libvorbis               pcm_s16le_planar        rv20                    y41p
cfhd                    libvpx_vp8              pcm_s24be               s302m                   yuv4
cinepak                 libvpx_vp9              pcm_s24daud             sbc                     zlib
cljr                    libwebp                 pcm_s24le               sgi                     zmbv
comfortnoise            libwebp_anim            pcm_s24le_planar        snow
dca                     libx264                 pcm_s32be               sonic

Enabled hwaccels:

Enabled parsers:
aac                     dca                     g729                    mlp                     sipr
aac_latm                dirac                   gif                     mpeg4video              tak
ac3                     dnxhd                   gsm                     mpegaudio               vc1
adx                     dpx                     h261                    mpegvideo               vorbis
av1                     dvaudio                 h263                    opus                    vp3
avs2                    dvbsub                  h264                    png                     vp8
avs3                    dvd_nav                 hevc                    pnm                     vp9
bmp                     dvdsub                  ipu                     rv30                    webp
cavsvideo               flac                    jpeg2000                rv40                    xma
cook                    g723_1                  mjpeg                   sbc

Enabled demuxers:
aa                      dirac                   image_pcx_pipe          mtaf                    sds
aac                     dnxhd                   image_pgm_pipe          mtv                     sdx
aax                     dsf                     image_pgmyuv_pipe       musx                    segafilm
ac3                     dsicin                  image_pgx_pipe          mv                      ser
ace                     dss                     image_photocd_pipe      mvi                     shorten
acm                     dts                     image_pictor_pipe       mxf                     siff
act                     dtshd                   image_png_pipe          mxg                     sln
adf                     dv                      image_ppm_pipe          nc                      smacker
adp                     dvbsub                  image_psd_pipe          nistsphere              smjpeg
ads                     dvbtxt                  image_qdraw_pipe        nsp                     smush
adx                     dxa                     image_sgi_pipe          nsv                     sol
aea                     ea                      image_sunrast_pipe      nut                     sox
afc                     ea_cdata                image_svg_pipe          nuv                     spdif
aiff                    eac3                    image_tiff_pipe         obu                     srt
aix                     epaf                    image_webp_pipe         ogg                     stl
alp                     ffmetadata              image_xpm_pipe          oma                     str
amr                     filmstrip               image_xwd_pipe          paf                     subviewer
amrnb                   fits                    ingenient               pcm_alaw                subviewer1
amrwb                   flac                    ipmovie                 pcm_f32be               sup
anm                     flic                    ipu                     pcm_f32le               svag
apc                     flv                     ircam                   pcm_f64be               svs
ape                     fourxm                  iss                     pcm_f64le               swf
apm                     frm                     iv8                     pcm_mulaw               tak
apng                    fsb                     ivf                     pcm_s16be               tedcaptions
aptx                    fwse                    ivr                     pcm_s16le               thp
aptx_hd                 g722                    jacosub                 pcm_s24be               threedostr
aqtitle                 g723_1                  jv                      pcm_s24le               tiertexseq
argo_asf                g726                    kux                     pcm_s32be               tmv
argo_brp                g726le                  kvag                    pcm_s32le               truehd
asf                     g729                    live_flv                pcm_s8                  tta
asf_o                   gdv                     lmlm4                   pcm_u16be               tty
ass                     genh                    loas                    pcm_u16le               txd
ast                     gif                     lrc                     pcm_u24be               ty
au                      gsm                     luodat                  pcm_u24le               v210
av1                     gxf                     lvf                     pcm_u32be               v210x
avi                     h261                    lxf                     pcm_u32le               vag
avr                     h263                    m4v                     pcm_u8                  vc1
avs                     h264                    matroska                pcm_vidc                vc1t
avs2                    hca                     mca                     pjs                     vividas
avs3                    hcom                    mcc                     pmp                     vivo
bethsoftvid             hevc                    mgsts                   pp_bnk                  vmd
bfi                     hls                     microdvd                pva                     vobsub
bfstm                   hnm                     mjpeg                   pvf                     voc
bink                    ico                     mjpeg_2000              qcp                     vpk
bintext                 idcin                   mlp                     r3d                     vplayer
bit                     idf                     mlv                     rawvideo                vqf
bmv                     iff                     mm                      realtext                w64
boa                     ifv                     mmf                     redspark                wav
brstm                   ilbc                    mods                    rl2                     wc3
c93                     image2                  moflex                  rm                      webm_dash_manifest
caf                     image2_alias_pix        mov                     roq                     webvtt
cavsvideo               image2_brender_pix      mp3                     rpl                     wsaud
cdg                     image2pipe              mpc                     rsd                     wsd
cdxl                    image_bmp_pipe          mpc8                    rso                     wsvqa
cine                    image_cri_pipe          mpegps                  rtp                     wtv
codec2                  image_dds_pipe          mpegts                  rtsp                    wv
codec2raw               image_dpx_pipe          mpegtsraw               s337m                   wve
concat                  image_exr_pipe          mpegvideo               sami                    xa
data                    image_gif_pipe          mpjpeg                  sap                     xbin
daud                    image_j2k_pipe          mpl2                    sbc                     xmv
dcstr                   image_jpeg_pipe         mpsub                   sbg                     xvag
derf                    image_jpegls_pipe       msf                     scc                     xwma
dfa                     image_pam_pipe          msnwc_tcp               sdp                     yop
dhav                    image_pbm_pipe          msp                     sdr2                    yuv4mpegpipe

Enabled muxers:
a64                     eac3                    jacosub                 oma                     segafilm
ac3                     f4v                     kvag                    opus                    segment
adts                    ffmetadata              latm                    pcm_alaw                singlejpeg
adx                     fifo                    lrc                     pcm_f32be               smjpeg
aiff                    fifo_test               m4v                     pcm_f32le               smoothstreaming
alp                     filmstrip               matroska                pcm_f64be               sox
amr                     fits                    matroska_audio          pcm_f64le               spdif
amv                     flac                    md5                     pcm_mulaw               spx
apm                     flv                     microdvd                pcm_s16be               srt
apng                    framecrc                mjpeg                   pcm_s16le               stream_segment
aptx                    framehash               mkvtimestamp_v2         pcm_s24be               streamhash
aptx_hd                 framemd5                mlp                     pcm_s24le               sup
argo_asf                g722                    mmf                     pcm_s32be               swf
asf                     g723_1                  mov                     pcm_s32le               tee
asf_stream              g726                    mp2                     pcm_s8                  tg2
ass                     g726le                  mp3                     pcm_u16be               tgp
ast                     gif                     mp4                     pcm_u16le               truehd
au                      gsm                     mpeg1system             pcm_u24be               tta
avi                     gxf                     mpeg1vcd                pcm_u24le               uncodedframecrc
avm2                    h261                    mpeg1video              pcm_u32be               vc1
avs2                    h263                    mpeg2dvd                pcm_u32le               vc1t
bit                     h264                    mpeg2svcd               pcm_u8                  voc
caf                     hash                    mpeg2video              pcm_vidc                w64
cavsvideo               hds                     mpeg2vob                psp                     wav
codec2                  hevc                    mpegts                  rawvideo                webm
codec2raw               hls                     mpjpeg                  rm                      webm_chunk
crc                     ico                     mxf                     roq                     webm_dash_manifest
dash                    ilbc                    mxf_d10                 rso                     webp
data                    image2                  mxf_opatom              rtp                     webvtt
daud                    image2pipe              null                    rtp_mpegts              wtv
dirac                   ipod                    nut                     rtsp                    wv
dnxhd                   ircam                   oga                     sap                     yuv4mpegpipe
dts                     ismv                    ogg                     sbc
dv                      ivf                     ogv                     scc

Enabled protocols:
async                   ftp                     md5                     rtmpt                   tls
cache                   gopher                  mmsh                    rtmpte                  udp
concat                  hls                     mmst                    rtmpts                  udplite
crypto                  http                    pipe                    rtp                     unix
data                    httpproxy               prompeg                 srtp
ffrtmpcrypt             https                   rtmp                    subfile
ffrtmphttp              icecast                 rtmpe                   tcp
file                    libsrt                  rtmps                   tee

Enabled filters:
abench                  atempo                  entropy                 mcdeint                 showwaves
abitscope               atrim                   eq                      mcompand                showwavespic
acompressor             avectorscope            equalizer               median                  shuffleframes
acontrast               avgblur                 erosion                 mergeplanes             shufflepixels
acopy                   axcorrelate             estdif                  mestimate               shuffleplanes
acrossfade              bandpass                extractplanes           metadata                sidechaincompress
acrossover              bandreject              extrastereo             midequalizer            sidechaingate
acrusher                bass                    fade                    minterpolate            sidedata
acue                    bbox                    fftdnoiz                mix                     sierpinski
addroi                  bench                   fftfilt                 movie                   signalstats
adeclick                bilateral               field                   mpdecimate              signature
adeclip                 biquad                  fieldhint               mptestsrc               silencedetect
adelay                  bitplanenoise           fieldmatch              negate                  silenceremove
adenorm                 blackdetect             fieldorder              nlmeans                 sinc
aderivative             blackframe              fifo                    nnedi                   sine
adrawgraph              blend                   fillborders             noformat                smartblur
aecho                   bm3d                    find_rect               noise                   smptebars
aemphasis               boxblur                 firequalizer            normalize               smptehdbars
aeval                   bwdif                   flanger                 null                    sobel
aevalsrc                cas                     floodfill               nullsink                spectrumsynth
afade                   cellauto                format                  nullsrc                 speechnorm
afftdn                  channelmap              fps                     oscilloscope            split
afftfilt                channelsplit            framepack               overlay                 spp
afifo                   chorus                  framerate               owdenoise               sr
afir                    chromahold              framestep               pad                     ssim
afirsrc                 chromakey               freezedetect            pal100bars              stereo3d
aformat                 chromanr                freezeframes            pal75bars               stereotools
afreqshift              chromashift             fspp                    palettegen              stereowiden
agate                   ciescope                gblur                   paletteuse              streamselect
agraphmonitor           codecview               geq                     pan                     super2xsai
ahistogram              color                   gradfun                 perms                   superequalizer
aiir                    colorbalance            gradients               perspective             surround
aintegral               colorchannelmixer       graphmonitor            phase                   swaprect
ainterleave             colorhold               greyedge                photosensitivity        swapuv
alimiter                colorkey                haas                    pixdesctest             tblend
allpass                 colorlevels             haldclut                pixscope                telecine
allrgb                  colormatrix             haldclutsrc             pp                      testsrc
allyuv                  colorspace              hdcd                    pp7                     testsrc2
aloop                   compand                 headphone               premultiply             thistogram
alphaextract            compensationdelay       hflip                   prewitt                 threshold
alphamerge              concat                  highpass                pseudocolor             thumbnail
amerge                  convolution             highshelf               psnr                    tile
ametadata               convolve                hilbert                 pullup                  tinterlace
amix                    copy                    histeq                  qp                      tlut2
amovie                  cover_rect              histogram               random                  tmedian
amplify                 crop                    hqdn3d                  readeia608              tmidequalizer
amultiply               cropdetect              hqx                     readvitc                tmix
anequalizer             crossfeed               hstack                  realtime                tonemap
anlmdn                  crystalizer             hue                     remap                   tpad
anlms                   cue                     hwdownload              removegrain             transpose
anoisesrc               curves                  hwmap                   removelogo              treble
anull                   datascope               hwupload                repeatfields            tremolo
anullsink               dblur                   hysteresis              replaygain              trim
anullsrc                dcshift                 idet                    reverse                 unpremultiply
apad                    dctdnoiz                il                      rgbashift               unsharp
aperms                  deband                  inflate                 rgbtestsrc              untile
aphasemeter             deblock                 interlace               roberts                 uspp
aphaser                 decimate                interleave              rotate                  v360
aphaseshift             deconvolve              join                    sab                     vaguedenoiser
apulsator               dedot                   kerndeint               scale                   vectorscope
arealtime               deesser                 lagfun                  scale2ref               vflip
aresample               deflate                 lenscorrection          scdet                   vfrdet
areverse                deflicker               life                    scroll                  vibrance
arnndn                  dejudder                limiter                 select                  vibrato
aselect                 delogo                  loop                    selectivecolor          vidstabdetect
asendcmd                derain                  loudnorm                sendcmd                 vidstabtransform
asetnsamples            deshake                 lowpass                 separatefields          vignette
asetpts                 despill                 lowshelf                setdar                  vmafmotion
asetrate                detelecine              lumakey                 setfield                volume
asettb                  dilation                lut                     setparams               volumedetect
ashowinfo               displace                lut1d                   setpts                  vstack
asidedata               dnn_processing          lut2                    setrange                w3fdif
asoftclip               doubleweave             lut3d                   setsar                  waveform
asplit                  drawbox                 lutrgb                  settb                   weave
astats                  drawgraph               lutyuv                  showcqt                 xbr
astreamselect           drawgrid                mandelbrot              showfreqs               xfade
asubboost               drmeter                 maskedclamp             showinfo                xmedian
asubcut                 dynaudnorm              maskedmax               showpalette             xstack
asupercut               earwax                  maskedmerge             showspatial             yadif
asuperpass              ebur128                 maskedmin               showspectrum            yaepblur
asuperstop              edgedetect              maskedthreshold         showspectrumpic         yuvtestsrc
atadenoise              elbg                    maskfun                 showvolume              zoompan

Enabled bsfs:
aac_adtstoasc           extract_extradata       imx_dump_header         null                    vp9_metadata
av1_frame_merge         filter_units            mjpeg2jpeg              opus_metadata           vp9_raw_reorder
av1_frame_split         h264_metadata           mjpega_dump_header      pcm_rechunk             vp9_superframe
av1_metadata            h264_mp4toannexb        mov2textsub             prores_metadata         vp9_superframe_split
chomp                   h264_redundant_pps      mp3_header_decompress   remove_extradata
dca_core                hapqa_extract           mpeg2_metadata          text2movsub
dump_extradata          hevc_metadata           mpeg4_unpack_bframes    trace_headers
eac3_core               hevc_mp4toannexb        noise                   truehd_core

Enabled indevs:
fbdev                   lavfi                   oss                     v4l2

Enabled outdevs:
fbdev                   oss                     sdl2                    v4l2

License: nonfree and unredistributable
$ make -j 4
$ make install
./build-ffmpeg: line 159: file: command not found

Successfully built binary for linux-gnu:

Building done. The following binaries can be found here:
- ffmpeg: /root/ffmpeg-build-script/workspace/bin/ffmpeg
- ffprobe: /root/ffmpeg-build-script/workspace/bin/ffprobe
- ffplay: /root/ffmpeg-build-script/workspace/bin/ffplay

Install these binaries to your /usr/bin folder? Existing binaries will be replaced. [Y/n]
exebetche commented 3 years ago

I had the same error on Ubuntu 20.04 with --full-static option but it worked fine without it.

optio50 commented 3 years ago

I had the error also.
sudo apt-get install libnuma-dev fixed it

mliradelc commented 3 years ago

I had that problem with Centos, but the problem was that some headers files were put in a different folder that pkg-config looks into, if I remember correctly, the headers files were in ´x86´ instead of ´amd64´ folders.

Lookup the pkg-config folders. I don't blame the script, because it is designed for Ubuntu. And the best is to build it using docker.

Allesanddro commented 2 years ago

Ubuntu 20.04

Same issue ./build-ffmpeg --enable-gpl-and-non-free --full-static --build --latest `ffmpeg-build-script v1.34

Using 16 make jobs simultaneously. With GPL and non-free codecs Start the build in full static mode. 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-script/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-script/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-script/packages/yasm.done lockfile to rebuild it.

building nasm - version 2.15.05

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

building zlib - version 1.2.11

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

building m4 - version 1.4.19

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

building autoconf - version 2.71

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

building automake - version 1.16.5

automake version 1.16.5 already built. Remove /root/ffmpeg-build-script/packages/automake.done lockfile to rebuild it.

building libtool - version 2.4.6

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

building openssl - version 1.1.1m

openssl version 1.1.1m already built. Remove /root/ffmpeg-build-script/packages/openssl.done lockfile to rebuild it.

building cmake - version 3.22.1

cmake version 3.22.1 already built. Remove /root/ffmpeg-build-script/packages/cmake.done lockfile to rebuild it. $ pip3 install pip setuptools --quiet --upgrade --no-cache-dir --disable-pip-version-check

building dav1d - version 0.9.2

dav1d version 0.9.2 already built. Remove /root/ffmpeg-build-script/packages/dav1d.done lockfile to rebuild it.

building svtav1 - version 0.9.0

svtav1 version 0.9.0 already built. Remove /root/ffmpeg-build-script/packages/svtav1.done lockfile to rebuild it.

building x264 - version 5db6aa6

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

building x265 - version 3.5

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

building libvpx - version 1.10.0

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

building xvidcore - version 1.3.7

xvidcore version 1.3.7 already built. Remove /root/ffmpeg-build-script/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-script/packages/vid_stab.done lockfile to rebuild it.

building av1 - version ae2be80

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

building zimg - version 3.0.3

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

building lv2 - version 1.18.2

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

building waflib - version b600c92

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

building serd - version 0.30.10

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

building pcre - version 8.45

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

building sord - version 0.16.8

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

building sratom - version 0.6.8

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

building lilv - version 0.24.12

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

building opencore - version 0.1.5

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

building lame - version 3.100

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

building opus - version 1.3.1

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

building libogg - version 1.3.3

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

building libvorbis - version 1.3.6

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

building libtheora - version 1.1.1

libtheora version 1.1.1 already built. Remove /root/ffmpeg-build-script/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-script/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-script/packages/libtiff.done lockfile to rebuild it.

building libpng - version 1.6.37

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

building libwebp - version 1.2.1

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

building libsdl - version 2.0.14

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

building srt - version 1.4.3

srt version 1.4.3 already built. Remove /root/ffmpeg-build-script/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-script/packages/amf.done lockfile to rebuild it.

building ffmpeg - version 5.0

FFmpeg-release-5.0.tar.gz has already downloaded. Extracted FFmpeg-release-5.0.tar.gz ERROR: x265 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 16 Makefile:180: /tests/Makefile: No such file or directory make: *** No rule to make target '/tests/Makefile'. Stop.

`