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

Fail to build on Ubuntu 20.04.2 #100

Open Pljushevij opened 3 years ago

Pljushevij commented 3 years ago

` root@ubuntu20:/home/maximus/tmp# git clone https://github.com/markus-perl/ffmpeg-build-script.git Cloning into 'ffmpeg-build-script'... remote: Enumerating objects: 940, done. remote: Counting objects: 100% (73/73), done. remote: Compressing objects: 100% (45/45), done. remote: Total 940 (delta 42), reused 51 (delta 26), pack-reused 867 Receiving objects: 100% (940/940), 304.43 KiB | 3.38 MiB/s, done. Resolving deltas: 100% (566/566), done. root@ubuntu20:/home/maximus/tmp# cd ffmpeg-build-script root@ubuntu20:/home/maximus/tmp/ffmpeg-build-script# ./build-ffmpeg --build ffmpeg-build-script v1.28

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=/home/maximus/tmp/ffmpeg-build-script/workspace --with-pc-path=/home/maximus/tmp/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=/home/maximus/tmp/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=/home/maximus/tmp/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=/home/maximus/tmp/ffmpeg-build-script/workspace $ make -j 4 $ make install

building cmake

Downloading https://cmake.org/files/LatestRelease/cmake-3.21.0.tar.gz as cmake-3.21.0.tar.gz ... Done Extracted cmake-3.21.0.tar.gz $ ./configure --prefix=/home/maximus/tmp/ffmpeg-build-script/workspace --parallel=4 -- -DCMAKE_USE_OPENSSL=OFF $ make -j 4 $ make install

building svtav1

Downloading https://gitlab.com/AOMediaCodec/SVT-AV1/-/archive/master/SVT-AV1-master.tar.gz as SVT-AV1-master.tar.gz ... Done Extracted SVT-AV1-master.tar.gz $ cmake -DCMAKE_INSTALL_PREFIX=/home/maximus/tmp/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 /home/maximus/tmp/ffmpeg-build-script/workspace/lib/pkgconfig/ $ cp SvtAv1Dec.pc /home/maximus/tmp/ffmpeg-build-script/workspace/lib/pkgconfig/

building libvpx

Downloading https://github.com/webmproject/libvpx/archive/refs/tags/v1.10.0.tar.gz as libvpx-1.10.0.tar.gz ... Done Extracted libvpx-1.10.0.tar.gz $ ./configure --prefix=/home/maximus/tmp/ffmpeg-build-script/workspace --disable-unit-tests --disable-shared --as=yasm --enable-vp9-highbitdepth $ make -j 4 $ make install

building av1

Downloading https://aomedia.googlesource.com/aom/+archive/c0f14141bd71414b004dccd66d48b27570299fa3.tar.gz as av1.tar.gz ... Done Extracted av1.tar.gz $ cmake -DENABLE_TESTS=0 -DCMAKE_INSTALL_PREFIX=/home/maximus/tmp/ffmpeg-build-script/workspace -DCMAKE_INSTALL_LIBDIR=lib /home/maximus/tmp/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=/home/maximus/tmp/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=/home/maximus/tmp/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=/home/maximus/tmp/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=/home/maximus/tmp/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=/home/maximus/tmp/ffmpeg-build-script/workspace --with-ogg-libraries=/home/maximus/tmp/ffmpeg-build-script/workspace/lib --with-ogg-includes=/home/maximus/tmp/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=/home/maximus/tmp/ffmpeg-build-script/workspace --with-ogg-libraries=/home/maximus/tmp/ffmpeg-build-script/workspace/lib --with-ogg-includes=/home/maximus/tmp/ffmpeg-build-script/workspace/include/ --with-vorbis-libraries=/home/maximus/tmp/ffmpeg-build-script/workspace/lib --with-vorbis-includes=/home/maximus/tmp/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 libtiff

Downloading https://download.osgeo.org/libtiff/tiff-4.3.0.tar.gz as tiff-4.3.0.tar.gz ... Done Extracted tiff-4.3.0.tar.gz $ ./configure --prefix=/home/maximus/tmp/ffmpeg-build-script/workspace --disable-shared --enable-static $ make -j 4 $ make install

building libpng

Downloading https://deac-riga.dl.sourceforge.net/project/libpng/libpng16/1.6.37/libpng-1.6.37.tar.gz as libpng-1.6.37.tar.gz ... Done Extracted libpng-1.6.37.tar.gz $ ./configure --prefix=/home/maximus/tmp/ffmpeg-build-script/workspace --disable-shared --enable-static $ make -j 4 $ make install

building libwebp

Downloading https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-1.2.0.tar.gz as libwebp-1.2.0.tar.gz ... Done Extracted libwebp-1.2.0.tar.gz $ ./configure --prefix=/home/maximus/tmp/ffmpeg-build-script/workspace --disable-shared --enable-static $ cmake -DCMAKE_INSTALL_PREFIX=/home/maximus/tmp/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 [ 1%] Building C object CMakeFiles/webpencode.dir/src/enc/alpha_enc.c.o [ 2%] Building C object CMakeFiles/webputils.dir/src/utils/bit_reader_utils.c.o [ 4%] Building C object CMakeFiles/webpdecode.dir/src/dec/alpha_dec.c.o [ 4%] Building C object CMakeFiles/webpdsp.dir/src/dsp/alpha_processing.c.o [ 5%] Building C object CMakeFiles/webpdecode.dir/src/dec/buffer_dec.c.o [ 5%] Building C object CMakeFiles/webputils.dir/src/utils/color_cache_utils.c.o [ 6%] Building C object CMakeFiles/webputils.dir/src/utils/filters_utils.c.o [ 7%] Building C object CMakeFiles/webpencode.dir/src/enc/analysis_enc.c.o [ 7%] Building C object CMakeFiles/webpdecode.dir/src/dec/frame_dec.c.o [ 8%] Building C object CMakeFiles/webputils.dir/src/utils/huffman_utils.c.o [ 8%] Building C object CMakeFiles/webpdsp.dir/src/dsp/cpu.c.o [ 9%] Building C object CMakeFiles/webpdsp.dir/src/dsp/dec.c.o [ 9%] Building C object CMakeFiles/webputils.dir/src/utils/quant_levels_dec_utils.c.o [ 9%] Building C object CMakeFiles/webpencode.dir/src/enc/backward_references_cost_enc.c.o [ 10%] Building C object CMakeFiles/webpdecode.dir/src/dec/idec_dec.c.o [ 11%] Building C object CMakeFiles/webputils.dir/src/utils/rescaler_utils.c.o [ 12%] Building C object CMakeFiles/webputils.dir/src/utils/random_utils.c.o [ 13%] Building C object CMakeFiles/webputils.dir/src/utils/thread_utils.c.o [ 13%] Building C object CMakeFiles/webputils.dir/src/utils/utils.c.o [ 14%] Building C object CMakeFiles/webpdecode.dir/src/dec/io_dec.c.o [ 15%] Building C object CMakeFiles/webputils.dir/src/utils/bit_writer_utils.c.o [ 16%] Building C object CMakeFiles/webpencode.dir/src/enc/backward_references_enc.c.o [ 17%] Building C object CMakeFiles/webputils.dir/src/utils/huffman_encode_utils.c.o [ 18%] Building C object CMakeFiles/webpdsp.dir/src/dsp/dec_clip_tables.c.o [ 18%] Building C object CMakeFiles/webpdsp.dir/src/dsp/filters.c.o [ 18%] Building C object CMakeFiles/webpdecode.dir/src/dec/quant_dec.c.o [ 18%] Building C object CMakeFiles/webputils.dir/src/utils/quant_levels_utils.c.o [ 19%] Building C object CMakeFiles/webpdecode.dir/src/dec/tree_dec.c.o [ 19%] Built target webputils [ 20%] Building C object CMakeFiles/webputilsdecode.dir/src/utils/bit_reader_utils.c.o [ 21%] Building C object CMakeFiles/webpencode.dir/src/enc/config_enc.c.o [ 22%] Building C object CMakeFiles/webpdsp.dir/src/dsp/lossless.c.o [ 23%] Building C object CMakeFiles/webpencode.dir/src/enc/cost_enc.c.o [ 24%] Building C object CMakeFiles/webputilsdecode.dir/src/utils/color_cache_utils.c.o [ 25%] Building C object CMakeFiles/webpdecode.dir/src/dec/vp8_dec.c.o [ 25%] Building C object CMakeFiles/webputilsdecode.dir/src/utils/filters_utils.c.o [ 26%] Building C object CMakeFiles/webputilsdecode.dir/src/utils/huffman_utils.c.o [ 26%] Building C object CMakeFiles/webpencode.dir/src/enc/filter_enc.c.o [ 27%] Building C object CMakeFiles/webpencode.dir/src/enc/frame_enc.c.o [ 28%] Building C object CMakeFiles/webputilsdecode.dir/src/utils/quant_levels_dec_utils.c.o [ 28%] Building C object CMakeFiles/webpdecode.dir/src/dec/vp8l_dec.c.o [ 29%] Building C object CMakeFiles/webpdsp.dir/src/dsp/rescaler.c.o [ 29%] Building C object CMakeFiles/webputilsdecode.dir/src/utils/rescaler_utils.c.o [ 30%] Building C object CMakeFiles/webputilsdecode.dir/src/utils/random_utils.c.o [ 31%] Building C object CMakeFiles/webputilsdecode.dir/src/utils/thread_utils.c.o [ 32%] Building C object CMakeFiles/webputilsdecode.dir/src/utils/utils.c.o [ 33%] Building C object CMakeFiles/webpencode.dir/src/enc/histogram_enc.c.o [ 33%] Building C object CMakeFiles/webpdsp.dir/src/dsp/upsampling.c.o [ 33%] Built target webputilsdecode [ 33%] Building C object CMakeFiles/webpdspdecode.dir/src/dsp/alpha_processing.c.o [ 34%] Building C object CMakeFiles/webpdspdecode.dir/src/dsp/cpu.c.o [ 35%] Building C object CMakeFiles/webpdecode.dir/src/dec/webp_dec.c.o [ 36%] Building C object CMakeFiles/webpdspdecode.dir/src/dsp/dec.c.o [ 36%] Building C object CMakeFiles/webpencode.dir/src/enc/iterator_enc.c.o [ 36%] Built target webpdecode [ 37%] Building C object CMakeFiles/webpencode.dir/src/enc/near_lossless_enc.c.o [ 38%] Building C object CMakeFiles/webpencode.dir/src/enc/picture_enc.c.o [ 38%] Building C object CMakeFiles/webpencode.dir/src/enc/picture_csp_enc.c.o [ 39%] Building C object CMakeFiles/webpencode.dir/src/enc/picture_psnr_enc.c.o [ 39%] Building C object CMakeFiles/webpdspdecode.dir/src/dsp/dec_clip_tables.c.o [ 40%] Building C object CMakeFiles/webpdsp.dir/src/dsp/yuv.c.o [ 41%] Building C object CMakeFiles/webpdspdecode.dir/src/dsp/filters.c.o [ 42%] Building C object CMakeFiles/webpencode.dir/src/enc/picture_rescale_enc.c.o [ 42%] Building C object CMakeFiles/webpencode.dir/src/enc/picture_tools_enc.c.o [ 43%] Building C object CMakeFiles/webpdspdecode.dir/src/dsp/lossless.c.o [ 44%] Building C object CMakeFiles/webpencode.dir/src/enc/predictor_enc.c.o [ 44%] Building C object CMakeFiles/webpdspdecode.dir/src/dsp/rescaler.c.o [ 45%] Building C object CMakeFiles/webpencode.dir/src/enc/quant_enc.c.o [ 46%] Building C object CMakeFiles/webpencode.dir/src/enc/syntax_enc.c.o [ 47%] Building C object CMakeFiles/webpdspdecode.dir/src/dsp/upsampling.c.o [ 48%] Building C object CMakeFiles/webpdsp.dir/src/dsp/alpha_processing_sse41.c.o [ 48%] Building C object CMakeFiles/webpencode.dir/src/enc/token_enc.c.o [ 49%] Building C object CMakeFiles/webpdsp.dir/src/dsp/dec_sse41.c.o [ 49%] Building C object CMakeFiles/webpdsp.dir/src/dsp/upsampling_sse41.c.o [ 50%] Building C object CMakeFiles/webpencode.dir/src/enc/tree_enc.c.o [ 51%] Building C object CMakeFiles/webpencode.dir/src/enc/vp8l_enc.c.o [ 52%] Building C object CMakeFiles/webpdsp.dir/src/dsp/yuv_sse41.c.o [ 53%] Building C object CMakeFiles/webpdsp.dir/src/dsp/alpha_processing_sse2.c.o [ 54%] Building C object CMakeFiles/webpdspdecode.dir/src/dsp/yuv.c.o [ 54%] Building C object CMakeFiles/webpdsp.dir/src/dsp/dec_sse2.c.o [ 55%] Building C object CMakeFiles/webpdsp.dir/src/dsp/filters_sse2.c.o [ 55%] Building C object CMakeFiles/webpencode.dir/src/enc/webp_enc.c.o [ 55%] Built target webpencode [ 56%] Building C object CMakeFiles/webpdsp.dir/src/dsp/lossless_sse2.c.o [ 56%] Building C object CMakeFiles/webpdsp.dir/src/dsp/rescaler_sse2.c.o [ 57%] Building C object CMakeFiles/webpdsp.dir/src/dsp/upsampling_sse2.c.o [ 58%] Building C object CMakeFiles/webpdsp.dir/src/dsp/yuv_sse2.c.o [ 58%] Building C object CMakeFiles/webpdsp.dir/src/dsp/cost.c.o [ 59%] Building C object CMakeFiles/webpdsp.dir/src/dsp/enc.c.o [ 60%] Building C object CMakeFiles/webpdspdecode.dir/src/dsp/alpha_processing_sse41.c.o [ 60%] Building C object CMakeFiles/webpdspdecode.dir/src/dsp/dec_sse41.c.o [ 61%] Building C object CMakeFiles/webpdsp.dir/src/dsp/lossless_enc.c.o [ 62%] Building C object CMakeFiles/webpdspdecode.dir/src/dsp/upsampling_sse41.c.o [ 62%] Building C object CMakeFiles/webpdsp.dir/src/dsp/ssim.c.o [ 63%] Building C object CMakeFiles/webpdsp.dir/src/dsp/cost_sse2.c.o [ 64%] Building C object CMakeFiles/webpdspdecode.dir/src/dsp/yuv_sse41.c.o [ 65%] Building C object CMakeFiles/webpdsp.dir/src/dsp/enc_sse2.c.o [ 66%] Building C object CMakeFiles/webpdsp.dir/src/dsp/lossless_enc_sse2.c.o [ 66%] Building C object CMakeFiles/webpdsp.dir/src/dsp/ssim_sse2.c.o [ 67%] Building C object CMakeFiles/webpdsp.dir/src/dsp/enc_sse41.c.o [ 67%] Building C object CMakeFiles/webpdspdecode.dir/src/dsp/alpha_processing_sse2.c.o [ 68%] Building C object CMakeFiles/webpdsp.dir/src/dsp/lossless_enc_sse41.c.o [ 69%] Building C object CMakeFiles/webpdspdecode.dir/src/dsp/dec_sse2.c.o [ 70%] Building C object CMakeFiles/webpdspdecode.dir/src/dsp/filters_sse2.c.o [ 70%] Built target webpdsp [ 70%] Building C object CMakeFiles/webpdspdecode.dir/src/dsp/lossless_sse2.c.o [ 71%] Building C object CMakeFiles/webpdspdecode.dir/src/dsp/rescaler_sse2.c.o [ 72%] Building C object CMakeFiles/webpdspdecode.dir/src/dsp/upsampling_sse2.c.o [ 72%] Building C object CMakeFiles/webpdspdecode.dir/src/dsp/yuv_sse2.c.o [ 73%] Linking C static library libwebp.a [ 73%] Built target webp [ 74%] Building C object CMakeFiles/webpdemux.dir/src/demux/anim_decode.c.o [ 74%] Building C object CMakeFiles/webpdemux.dir/src/demux/demux.c.o [ 74%] Building C object CMakeFiles/imageioutil.dir/imageio/imageio_util.c.o [ 75%] Linking C static library libimageioutil.a [ 75%] Built target imageioutil [ 76%] Building C object CMakeFiles/libwebpmux.dir/src/mux/anim_encode.c.o [ 77%] Linking C static library libwebpdemux.a [ 77%] Built target webpdemux [ 78%] Building C object CMakeFiles/imageenc.dir/imageio/image_enc.c.o [ 79%] Building C object CMakeFiles/libwebpmux.dir/src/mux/muxedit.c.o [ 79%] Built target webpdspdecode [ 80%] Building C object CMakeFiles/exampleutil.dir/examples/example_util.c.o [ 81%] Linking C static library libimageenc.a [ 81%] Built target imageenc [ 82%] Building C object CMakeFiles/imagedec.dir/imageio/image_dec.c.o [ 83%] Linking C static library libexampleutil.a [ 83%] Building C object CMakeFiles/imagedec.dir/imageio/jpegdec.c.o [ 83%] Built target exampleutil [ 83%] Building C object CMakeFiles/libwebpmux.dir/src/mux/muxinternal.c.o [ 84%] Building C object CMakeFiles/libwebpmux.dir/src/mux/muxread.c.o [ 85%] Building C object CMakeFiles/imagedec.dir/imageio/metadata.c.o [ 86%] Building C object CMakeFiles/imagedec.dir/imageio/pngdec.c.o [ 86%] Building C object CMakeFiles/imagedec.dir/imageio/pnmdec.c.o [ 87%] Building C object CMakeFiles/imagedec.dir/imageio/tiffdec.c.o /home/maximus/tmp/ffmpeg-build-script/packages/libwebp-1.2.0/imageio/tiffdec.c: In function ‘ExtractMetadataFromTIFF’: /home/maximus/tmp/ffmpeg-build-script/packages/libwebp-1.2.0/imageio/tiffdec.c:49:5: warning: ‘uint32’ is deprecated [-Wdeprecated-declarations] 49 | uint32 tag_data_len; | ^~ /home/maximus/tmp/ffmpeg-build-script/packages/libwebp-1.2.0/imageio/tiffdec.c: In function ‘ReadTIFF’: /home/maximus/tmp/ffmpeg-build-script/packages/libwebp-1.2.0/imageio/tiffdec.c:222:3: warning: ‘uint32’ is deprecated [-Wdeprecated-declarations] 222 | raster = (uint32*)_TIFFmalloc((tsize_t)alloc_size); | ^~ [ 88%] Building C object CMakeFiles/imagedec.dir/imageio/webpdec.c.o [ 89%] Building C object CMakeFiles/imagedec.dir/imageio/wicdec.c.o [ 90%] Linking C static library libwebpmux.a [ 91%] Linking C static library libwebpdecoder.a [ 91%] Built target libwebpmux [ 91%] Linking C static library libimagedec.a [ 92%] Building C object CMakeFiles/webpinfo.dir/examples/webpinfo.c.o [ 92%] Building C object CMakeFiles/webpmux.dir/examples/webpmux.c.o [ 92%] Built target imagedec [ 92%] Built target webpdecoder [ 92%] Building C object CMakeFiles/webp_quality.dir/extras/webp_quality.c.o [ 92%] Building C object CMakeFiles/get_disto.dir/extras/get_disto.c.o [ 93%] Building C object CMakeFiles/webp_quality.dir/extras/extras.c.o [ 94%] Building C object CMakeFiles/webp_quality.dir/extras/quality_estimate.c.o [ 95%] Linking C executable webpmux [ 95%] Linking C executable webp_quality [ 95%] Built target webpmux [ 96%] Building C object CMakeFiles/img2webp.dir/examples/img2webp.c.o [ 96%] Built target webp_quality [ 97%] Building C object CMakeFiles/dwebp.dir/examples/dwebp.c.o [ 98%] Linking C executable get_disto /usr/bin/ld: /home/maximus/tmp/ffmpeg-build-script/workspace/lib/libtiff.a(tif_pixarlog.o): in function PixarLogVSetField': /home/maximus/tmp/ffmpeg-build-script/packages/tiff-4.3.0/libtiff/tif_pixarlog.c:1322: undefined reference todeflateParams' /usr/bin/ld: /home/maximus/tmp/ffmpeg-build-script/workspace/lib/libtiff.a(tif_pixarlog.o): in function PixarLogCleanup': /home/maximus/tmp/ffmpeg-build-script/packages/tiff-4.3.0/libtiff/tif_pixarlog.c:1299: undefined reference toinflateEnd' /usr/bin/ld: /home/maximus/tmp/ffmpeg-build-script/packages/tiff-4.3.0/libtiff/tif_pixarlog.c:1301: undefined reference to deflateEnd' /usr/bin/ld: /home/maximus/tmp/ffmpeg-build-script/workspace/lib/libtiff.a(tif_pixarlog.o): in functionPixarLogPostEncode': /home/maximus/tmp/ffmpeg-build-script/packages/tiff-4.3.0/libtiff/tif_pixarlog.c:1227: undefined reference to deflate' /usr/bin/ld: /home/maximus/tmp/ffmpeg-build-script/workspace/lib/libtiff.a(tif_pixarlog.o): in functionPixarLogEncode': /home/maximus/tmp/ffmpeg-build-script/packages/tiff-4.3.0/libtiff/tif_pixarlog.c:1196: undefined reference to deflate' /usr/bin/ld: /home/maximus/tmp/ffmpeg-build-script/workspace/lib/libtiff.a(tif_pixarlog.o): in functionPixarLogDecode': /home/maximus/tmp/ffmpeg-build-script/packages/tiff-4.3.0/libtiff/tif_pixarlog.c:808: undefined reference to inflate' /usr/bin/ld: /home/maximus/tmp/ffmpeg-build-script/workspace/lib/libtiff.a(tif_pixarlog.o): in functionPixarLogSetupEncode': /home/maximus/tmp/ffmpeg-build-script/packages/tiff-4.3.0/libtiff/tifpixarlog.c:924: undefined reference to `deflateInit' /usr/bin/ld: /home/maximus/tmp/ffmpeg-build-script/workspace/lib/libtiff.a(tif_pixarlog.o): in function PixarLogSetupDecode': /home/maximus/tmp/ffmpeg-build-script/packages/tiff-4.3.0/libtiff/tif_pixarlog.c:714: undefined reference toinflateInit_' /usr/bin/ld: /home/maximus/tmp/ffmpeg-build-script/workspace/lib/libtiff.a(tif_pixarlog.o): in function PixarLogPreEncode': /home/maximus/tmp/ffmpeg-build-script/packages/tiff-4.3.0/libtiff/tif_pixarlog.c:955: undefined reference todeflateReset' /usr/bin/ld: /home/maximus/tmp/ffmpeg-build-script/workspace/lib/libtiff.a(tif_pixarlog.o): in function PixarLogPreDecode': /home/maximus/tmp/ffmpeg-build-script/packages/tiff-4.3.0/libtiff/tif_pixarlog.c:748: undefined reference toinflateReset' /usr/bin/ld: /home/maximus/tmp/ffmpeg-build-script/workspace/lib/libtiff.a(tif_zip.o): in function ZIPEncode': /home/maximus/tmp/ffmpeg-build-script/packages/tiff-4.3.0/libtiff/tif_zip.c:435: undefined reference todeflate' /usr/bin/ld: /home/maximus/tmp/ffmpeg-build-script/workspace/lib/libtiff.a(tif_zip.o): in function ZIPPostEncode': /home/maximus/tmp/ffmpeg-build-script/packages/tiff-4.3.0/libtiff/tif_zip.c:471: undefined reference todeflate' /usr/bin/ld: /home/maximus/tmp/ffmpeg-build-script/workspace/lib/libtiff.a(tif_zip.o): in function ZIPDecode': /home/maximus/tmp/ffmpeg-build-script/packages/tiff-4.3.0/libtiff/tif_zip.c:245: undefined reference toinflate' /usr/bin/ld: /home/maximus/tmp/ffmpeg-build-script/workspace/lib/libtiff.a(tif_zip.o): in function ZIPVSetField': /home/maximus/tmp/ffmpeg-build-script/packages/tiff-4.3.0/libtiff/tif_zip.c:547: undefined reference todeflateParams' /usr/bin/ld: /home/maximus/tmp/ffmpeg-build-script/workspace/lib/libtiff.a(tif_zip.o): in function ZIPCleanup': /home/maximus/tmp/ffmpeg-build-script/packages/tiff-4.3.0/libtiff/tif_zip.c:509: undefined reference toinflateEnd' /usr/bin/ld: /home/maximus/tmp/ffmpeg-build-script/packages/tiff-4.3.0/libtiff/tif_zip.c:506: undefined reference to deflateEnd' /usr/bin/ld: /home/maximus/tmp/ffmpeg-build-script/workspace/lib/libtiff.a(tif_zip.o): in functionZIPPreEncode': /home/maximus/tmp/ffmpeg-build-script/packages/tiff-4.3.0/libtiff/tif_zip.c:322: undefined reference to deflateReset' /usr/bin/ld: /home/maximus/tmp/ffmpeg-build-script/workspace/lib/libtiff.a(tif_zip.o): in functionZIPSetupEncode': /home/maximus/tmp/ffmpeg-build-script/packages/tiff-4.3.0/libtiff/tifzip.c:291: undefined reference to `deflateInit' /usr/bin/ld: /home/maximus/tmp/ffmpeg-build-script/packages/tiff-4.3.0/libtiff/tif_zip.c:283: undefined reference to inflateEnd' /usr/bin/ld: /home/maximus/tmp/ffmpeg-build-script/workspace/lib/libtiff.a(tif_zip.o): in functionZIPPreDecode': /home/maximus/tmp/ffmpeg-build-script/packages/tiff-4.3.0/libtiff/tif_zip.c:148: undefined reference to inflateReset' /usr/bin/ld: /home/maximus/tmp/ffmpeg-build-script/workspace/lib/libtiff.a(tif_zip.o): in functionZIPSetupDecode': /home/maximus/tmp/ffmpeg-build-script/packages/tiff-4.3.0/libtiff/tif_zip.c:108: undefined reference to deflateEnd' /usr/bin/ld: /home/maximus/tmp/ffmpeg-build-script/packages/tiff-4.3.0/libtiff/tif_zip.c:116: undefined reference toinflateInit_' collect2: error: ld returned 1 exit status make[2]: [CMakeFiles/get_disto.dir/build.make:104: get_disto] Error 1 make[1]: [CMakeFiles/Makefile2:156: CMakeFiles/get_disto.dir/all] Error 2 make[1]: Waiting for unfinished jobs.... [ 98%] Linking C executable img2webp /usr/bin/ld: /home/maximus/tmp/ffmpeg-build-script/workspace/lib/libtiff.a(tif_pixarlog.o): in function PixarLogVSetField': /home/maximus/tmp/ffmpeg-build-script/packages/tiff-4.3.0/libtiff/tif_pixarlog.c:1322: undefined reference todeflateParams' /usr/bin/ld: /home/maximus/tmp/ffmpeg-build-script/workspace/lib/libtiff.a(tif_pixarlog.o): in function PixarLogCleanup': /home/maximus/tmp/ffmpeg-build-script/packages/tiff-4.3.0/libtiff/tif_pixarlog.c:1299: undefined reference toinflateEnd' /usr/bin/ld: /home/maximus/tmp/ffmpeg-build-script/packages/tiff-4.3.0/libtiff/tif_pixarlog.c:1301: undefined reference to deflateEnd' /usr/bin/ld: /home/maximus/tmp/ffmpeg-build-script/workspace/lib/libtiff.a(tif_pixarlog.o): in functionPixarLogPostEncode': /home/maximus/tmp/ffmpeg-build-script/packages/tiff-4.3.0/libtiff/tif_pixarlog.c:1227: undefined reference to deflate' /usr/bin/ld: /home/maximus/tmp/ffmpeg-build-script/workspace/lib/libtiff.a(tif_pixarlog.o): in functionPixarLogEncode': /home/maximus/tmp/ffmpeg-build-script/packages/tiff-4.3.0/libtiff/tif_pixarlog.c:1196: undefined reference to deflate' /usr/bin/ld: /home/maximus/tmp/ffmpeg-build-script/workspace/lib/libtiff.a(tif_pixarlog.o): in functionPixarLogDecode': /home/maximus/tmp/ffmpeg-build-script/packages/tiff-4.3.0/libtiff/tif_pixarlog.c:808: undefined reference to inflate' /usr/bin/ld: /home/maximus/tmp/ffmpeg-build-script/workspace/lib/libtiff.a(tif_pixarlog.o): in functionPixarLogSetupEncode': /home/maximus/tmp/ffmpeg-build-script/packages/tiff-4.3.0/libtiff/tifpixarlog.c:924: undefined reference to `deflateInit' /usr/bin/ld: /home/maximus/tmp/ffmpeg-build-script/workspace/lib/libtiff.a(tif_pixarlog.o): in function PixarLogSetupDecode': /home/maximus/tmp/ffmpeg-build-script/packages/tiff-4.3.0/libtiff/tif_pixarlog.c:714: undefined reference toinflateInit_' /usr/bin/ld: /home/maximus/tmp/ffmpeg-build-script/workspace/lib/libtiff.a(tif_pixarlog.o): in function PixarLogPreEncode': /home/maximus/tmp/ffmpeg-build-script/packages/tiff-4.3.0/libtiff/tif_pixarlog.c:955: undefined reference todeflateReset' /usr/bin/ld: /home/maximus/tmp/ffmpeg-build-script/workspace/lib/libtiff.a(tif_pixarlog.o): in function PixarLogPreDecode': /home/maximus/tmp/ffmpeg-build-script/packages/tiff-4.3.0/libtiff/tif_pixarlog.c:748: undefined reference toinflateReset' /usr/bin/ld: /home/maximus/tmp/ffmpeg-build-script/workspace/lib/libtiff.a(tif_zip.o): in function ZIPEncode': /home/maximus/tmp/ffmpeg-build-script/packages/tiff-4.3.0/libtiff/tif_zip.c:435: undefined reference todeflate' /usr/bin/ld: /home/maximus/tmp/ffmpeg-build-script/workspace/lib/libtiff.a(tif_zip.o): in function ZIPPostEncode': /home/maximus/tmp/ffmpeg-build-script/packages/tiff-4.3.0/libtiff/tif_zip.c:471: undefined reference todeflate' /usr/bin/ld: /home/maximus/tmp/ffmpeg-build-script/workspace/lib/libtiff.a(tif_zip.o): in function ZIPDecode': /home/maximus/tmp/ffmpeg-build-script/packages/tiff-4.3.0/libtiff/tif_zip.c:245: undefined reference toinflate' /usr/bin/ld: /home/maximus/tmp/ffmpeg-build-script/workspace/lib/libtiff.a(tif_zip.o): in function ZIPVSetField': /home/maximus/tmp/ffmpeg-build-script/packages/tiff-4.3.0/libtiff/tif_zip.c:547: undefined reference todeflateParams' /usr/bin/ld: /home/maximus/tmp/ffmpeg-build-script/workspace/lib/libtiff.a(tif_zip.o): in function ZIPCleanup': /home/maximus/tmp/ffmpeg-build-script/packages/tiff-4.3.0/libtiff/tif_zip.c:509: undefined reference toinflateEnd' /usr/bin/ld: /home/maximus/tmp/ffmpeg-build-script/packages/tiff-4.3.0/libtiff/tif_zip.c:506: undefined reference to deflateEnd' /usr/bin/ld: /home/maximus/tmp/ffmpeg-build-script/workspace/lib/libtiff.a(tif_zip.o): in functionZIPPreEncode': /home/maximus/tmp/ffmpeg-build-script/packages/tiff-4.3.0/libtiff/tif_zip.c:322: undefined reference to deflateReset' /usr/bin/ld: /home/maximus/tmp/ffmpeg-build-script/workspace/lib/libtiff.a(tif_zip.o): in functionZIPSetupEncode': /home/maximus/tmp/ffmpeg-build-script/packages/tiff-4.3.0/libtiff/tifzip.c:291: undefined reference to `deflateInit' /usr/bin/ld: /home/maximus/tmp/ffmpeg-build-script/packages/tiff-4.3.0/libtiff/tif_zip.c:283: undefined reference to inflateEnd' /usr/bin/ld: /home/maximus/tmp/ffmpeg-build-script/workspace/lib/libtiff.a(tif_zip.o): in functionZIPPreDecode': /home/maximus/tmp/ffmpeg-build-script/packages/tiff-4.3.0/libtiff/tif_zip.c:148: undefined reference to inflateReset' /usr/bin/ld: /home/maximus/tmp/ffmpeg-build-script/workspace/lib/libtiff.a(tif_zip.o): in functionZIPSetupDecode': /home/maximus/tmp/ffmpeg-build-script/packages/tiff-4.3.0/libtiff/tif_zip.c:108: undefined reference to deflateEnd' /usr/bin/ld: /home/maximus/tmp/ffmpeg-build-script/packages/tiff-4.3.0/libtiff/tif_zip.c:116: undefined reference toinflateInit_' collect2: error: ld returned 1 exit status make[2]: [CMakeFiles/img2webp.dir/build.make:107: img2webp] Error 1 make[1]: [CMakeFiles/Makefile2:216: CMakeFiles/img2webp.dir/all] Error 2 [ 98%] Linking C executable dwebp [ 98%] Built target dwebp [ 99%] Linking C executable webpinfo [ 99%] Built target webpinfo make: [Makefile:136: all] Error 2

Failed to Execute make -j 4 ` My system is Ubuntu 20.04.2 server, clean installation with all updates. Motherboard with builin CPU - D1800B-ITX. Intel Graphic Gen.7

Pljushevij commented 3 years ago

Sorry! Wrong motherboard model - J3455N-D3H with Apollo Lake graphic.

cdgriffith commented 3 years ago

Hi @Pljushevij this should be fixed with https://github.com/markus-perl/ffmpeg-build-script/pull/106

I was having the same issue and discovered it was due to libpng being built and setting the CPPFLAGS to what it needed without resetting them.

Also possible while using same version script you have to just run it again, as the second time around libpng should already be build and those flags won't be set in that case.