Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-136802

Linking against static FFmpeg that has VAAPI support enabled causes build to fail

XMLWordPrintable

    • Linux/Wayland
    • cdf7d697b (dev), 3a0aa9cfb (6.10), ebc6f7372 (6.9), ad8d06169 (tqtc/lts-6.8)

      Multimedia build doesn't add -lva-drm -lva-x11 libraries when linking and that causes:

      [14/2218] Linking CXX shared module qtbase/plugins/multimedia/libffmpegmediaplugin.so
      FAILED: qtbase/plugins/multimedia/libffmpegmediaplugin.so
      ..
      /usr/bin/ld: /usr/local/ffmpeg/7.1/lib/libavutil.a(hwcontext_vaapi.o): in function `vaapi_device_derive':
      /home/user/ffmpeg-7.1/libavutil/hwcontext_vaapi.c:2044: undefined reference to `vaGetDisplayDRM'
      /usr/bin/ld: /usr/local/ffmpeg/7.1/lib/libavutil.a(hwcontext_vaapi.o): in function `vaapi_device_create':
      /home/user/projects/ffmpeg-7.1/libavutil/hwcontext_vaapi.c:1846: undefined reference to `vaGetDisplayDRM'
      /usr/bin/ld: /home/user/ffmpeg-7.1/libavutil/hwcontext_vaapi.c:1864: undefined reference to `vaGetDisplay'
      collect2: error: ld returned 1 exit status
      

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            timblechmann tim blechmann
            poikelin Joni Poikelin
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes