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

FindFFmpeg.cmake constructs invalid .pc file path on multiarch systems (e.g., aarch64)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 6.9.0
    • Multimedia
    • None
    • Linux/X11

      When building Qt Multimedia from Qt 6.9.0 source using system-provided FFmpeg, the FindFFmpeg.cmake script fails to locate .pc files due to incorrect path construction logic in __ffmpeg_internal_set_dependencies():

      set(PC_FILE ${${_component}_LIBRARY_DIR}/../lib/pkgconfig/lib${lib}.pc)

       

      It actually looks for the .pc files under /usr/lib/aarch64-linux-gnu/../lib/pkgconfig (which is   /usr/lib/lib/pkgconfig  ), but they are actually located at /usr/lib/aarch64-linux-gnu/pkgconfig

       

       

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

            qtmultimediateam Qt Multimedia Team
            yuxin_ 欣 雨
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes