3 thoughts on “linux native ffmpeg build woes”

  1. configuring ffmpeg_git (/home/rdp/ffmpeg-windows-build-helpers/sandbox/native/ffmpeg_git) as $ PKG_CONFIG_PATH=/home/rdp/ffmpeg-windows-build-helpers/sandbox/cross_compilers/native/lib/pkgconfig PATH=/home/rdp/ffmpeg-windows-build-helpers/sandbox/cross_compilers/native/bin:$PATH ./configure –pkg-config=pkg-config –pkg-config-flags=–static –extra-version=ffmpeg-windows-build-helpers –enable-version3 –disable-debug –disable-w32threads –enable-libcaca –enable-gray –enable-libtesseract –enable-fontconfig –enable-gmp –enable-gnutls –enable-libass –enable-libbluray –enable-libbs2b –enable-libflite –enable-libfreetype –enable-libfribidi –enable-libgme –enable-libgsm –enable-libilbc –enable-libmodplug –enable-libmp3lame –enable-libopencore-amrnb –enable-libopencore-amrwb –enable-libopus –enable-libsnappy –enable-libsoxr –enable-libspeex –enable-libtheora –enable-libtwolame –enable-libvo-amrwbenc –enable-libvorbis –enable-libvpx –enable-libwebp –enable-libzimg –enable-libzvbi –enable-libmysofa –enable-libaom –enable-libopenjpeg –enable-libopenh264 –extra-libs=-lm –extra-cflags=-DLIBTWOLAME_STATIC –extra-cflags=-DMODPLUG_STATIC –extra-cflags=-DCACA_STATIC –enable-amf –enable-libmfx –enable-gpl –enable-avisynth –enable-frei0r –enable-filter=frei0r –enable-librubberband –enable-libvidstab –enable-libx264 –enable-libx265 –enable-libxvid –enable-avresample –extra-cflags=-mtune=generic –extra-cflags=-O3 –enable-static –disable-shared –prefix=/home/rdp/ffmpeg-windows-build-helpers/sandbox/cross_compilers/native
    ERROR: libmfx not found

    config.log

    gcc -Wl,–as-needed -Wl,-z,noexecstack -I/home/rdp/ffmpeg-windows-build-helpers/sandbox/cross_compilers/native/include -L/home/rdp/ffmpeg-windows-build-helpers/sandbox/cross_compilers/
    native/lib -o /tmp/ffconf.5wnauj9k/test /tmp/ffconf.5wnauj9k/test.o -lmfx -lstdc++ -ldl -lm
    /home/rdp/ffmpeg-windows-build-helpers/sandbox/cross_compilers/native/lib/libmfx.a(libmfx_la-main.o): In function `init_internal_hwctx(_mfxSession*) [clone .part.0]’:
    /home/rdp/ffmpeg-windows-build-helpers/sandbox/native/mfx_dispatch_git/src/main.cpp:913: undefined reference to `mfx_allocate_va’
    /home/rdp/ffmpeg-windows-build-helpers/sandbox/cross_compilers/native/lib/libmfx.a(libmfx_la-main.o): In function `MFXClose’:
    /home/rdp/ffmpeg-windows-build-helpers/sandbox/native/mfx_dispatch_git/src/main.cpp:534: undefined reference to `mfx_deallocate_va’
    collect2: error: ld returned 1 exit status
    require libmfx mfx/mfxvideo.h MFXInit -llibmfx
    check_lib libmfx mfx/mfxvideo.h MFXInit -llibmfx
    check_func_headers mfx/mfxvideo.h MFXInit -llibmfx
    test_ld cc -llibmfx
    test_cc
    BEGIN /tmp/ffconf.5wnauj9k/test.c
    1 #include
    2 #include
    3 long check_MFXInit(void) { return (long) MFXInit; }
    4 int main(void) { int ret = 0;
    5 ret |= ((intptr_t)check_MFXInit) & 0xFFFF;
    6 return ret; }
    END /tmp/ffconf.5wnauj9k/test.c
    gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -mtune=generic -O3 -DLIBTWOLAME_STATIC -DMODPLUG_STATIC -DCACA_STATIC -mtune=generic -O3 -std=c11 -fomit-frame-pointer -I/home/rdp/ffmpeg-windows-build-helpers/sandbox/cross_compilers/native/include -pthread -I/home/rdp/ffmpeg-windows-build-helpers/sandbox/cross_compilers/native/include -I/home/rdp/ffmpeg-windows-build-helpers/sandbox/cross_compilers/native/include -I/home/rdp/ffmpeg-windows-build-helpers/sandbox/cross_compilers/native/include -I/home/rdp/ffmpeg-windows-build-helpers/sandbox/cross_compilers/native/include -I/home/rdp/ffmpeg-windows-build-helpers/sandbox/cross_compilers/native/include/freetype2 -I/home/rdp/ffmpeg-windows-build-helpers/sandbox/cross_compilers/native/include/libpng16 -I/home/rdp/ffmpeg-windows-build-helpers/sandbox/cross_compilers/native/include -I/home/rdp/ffmpeg-windows-build-helpers/sandbox/cross_compilers/native/include/libxml2 -I/home/rdp/ffmpeg-windows-build-helpers/sandbox/cross_compilers/native/include/fribidi -I/home/rdp/ffmpeg-windows-build-helpers/sandbox/cross_compilers/native/include/freetype2 -I/home/rdp/ffmpeg-windows-build-helpers/sandbox/cross_compilers/native/include/libpng16 -I/home/rdp/ffmpeg-windows-build-helpers/sandbox/cross_compilers/native/include -I/home/rdp/ffmpeg-windows-build-helpers/sandbox/cross_compilers/native/include -I/home/rdp/ffmpeg-windows-build-helpers/sandbox/cross_compilers/native/include/freetype2 -I/home/rdp/ffmpeg-windows-build-helpers/sandbox/cross_compilers/native/include/libpng16 -I/home/rdp/ffmpeg-windows-build-helpers/sandbox/cross_compilers/native/include -I/home/rdp/ffmpeg-windows-build-helpers/sandbox/cross_compilers/native/include/libxml2 -I/home/rdp/ffmpeg-windows-build-helpers/sandbox/cross_compilers/native/include/freetype2 -I/home/rdp/ffmpeg-windows-build-helpers/sandbox/cross_compilers/native/include/libpng16 -I/home/rdp/ffmpeg-windows-build-helpers/sandbox/cross_compilers/native/include -I/home/rdp/ffmpeg-windows-build-helpers/sandbox/cross_compilers/native/include/bs2b -I/home/rdp/ffmpeg-windows-build-helpers/sandbox/cross_compilers/native/include -I/home/rdp/ffmpeg-windows-build-helpers/sandbox/cross_compilers/native/include -I/home/rdp/ffmpeg-windows-build-helpers/sandbox/cross_compilers/native/include/freetype2 -I/home/rdp/ffmpeg-windows-build-helpers/sandbox/cross_compilers/native/include/libpng16 -I/home/rdp/ffmpeg-windows-build-helpers/sandbox/cross_compilers/native/include -I/home/rdp/ffmpeg-windows-build-helpers/sandbox/cross_compilers/native/include/libxml2 -I/home/rdp/ffmpeg-windows-build-helpers/sandbox/cross_compilers/native/include/freetype2 -I/home/rdp/ffmpeg-windows-build-helpers/sandbox/cross_compilers/native/include/libpng16 -I/home/rdp/ffmpeg-windows-build-helpers/sandbox/cross_compilers/native/include -I/home/rdp/ffmpeg-windows-build-helpers/sandbox/cross_compilers/native/include/freetype2 -I/home/rdp/ffmpeg-windows-build-helpers/sandbox/cross_compilers/native/include/libpng16 -I/home/rdp/ffmpeg-windows-build-helpers/sandbox/cross_compilers/native/include -I/home/rdp/ffmpeg-windows-build-helpers/sandbox/cross_compilers/native/include/fribidi -I/home/rdp/ffmpeg-windows-build-helpers/sandbox/cross_compilers/native/include -c -o /tmp/ffconf.5wnauj9k/test.o /tmp/ffconf.5wnauj9k/test.c
    gcc -Wl,–as-needed -Wl,-z,noexecstack -o /tmp/ffconf.5wnauj9k/test /tmp/ffconf.5wnauj9k/test.o -llibmfx -lm
    /usr/bin/ld: cannot find -llibmfx
    collect2: error: ld returned 1 exit status
    ERROR: libmfx not found
    ~

    meant

    sudo apt install libva-dev

    ref https://github.com/lu-zero/mfx_dispatch/issues/24

  2. clang
    Already up-to-date.
    fetched no code changes, not forcing reconfigure for that…
    patch frei0r_load-shared-libraries-dynamically.diff already applied
    configuring ffmpeg_git (/home/rdp/ffmpeg-windows-build-helpers/sandbox/native/ffmpeg_git) as $ PKG_CONFIG_PATH=/home/rdp/ffmpeg-windows-build-helpers/sandbox/cross_compilers/native/lib/pkgconfig PATH=/home/rdp/ffmpeg-windows-build-helpers/sandbox/cross_compilers/native/bin:$PATH ./configure –pkg-config=pkg-config –pkg-config-flags=–static –extra-version=ffmpeg-windows-build-helpers –enable-version3 –disable-debug –disable-w32threads –enable-libcaca –enable-gray –enable-libtesseract –enable-fontconfig –enable-gmp –enable-gnutls –enable-libass –enable-libbluray –enable-libbs2b –enable-libflite –enable-libfreetype –enable-libfribidi –enable-libgme –enable-libgsm –enable-libilbc –enable-libmodplug –enable-libmp3lame –enable-libopencore-amrnb –enable-libopencore-amrwb –enable-libopus –enable-libsnappy –enable-libsoxr –enable-libspeex –enable-libtheora –enable-libtwolame –enable-libvo-amrwbenc –enable-libvorbis –enable-libvpx –enable-libwebp –enable-libzimg –enable-libzvbi –enable-libmysofa –enable-libaom –enable-libopenjpeg –enable-libopenh264 –extra-ldflags=-lm –extra-cflags=-DLIBTWOLAME_STATIC –extra-cflags=-DMODPLUG_STATIC –extra-cflags=-DCACA_STATIC –enable-amf –enable-libmfx –enable-gpl –enable-avisynth –enable-frei0r –enable-filter=frei0r –enable-librubberband –enable-libvidstab –enable-libx264 –enable-libx265 –enable-libxvid –enable-avresample –extra-cflags=-mtune=generic –extra-cflags=-O3 –enable-static –disable-shared –prefix=/home/rdp/ffmpeg-windows-build-helpers/sandbox/cross_compilers/native
    ERROR: libflite not found

    undefined reference to pow

    meant “add –extra-libs=-lm”

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload the CAPTCHA.