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

/usr/bin/ld: cannot find -llibformat.a when linking static Qt with FFmpeg

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.5.1
    • Multimedia
    • Ubuntu 20.04.6 LTS
    • Linux/X11

    Description

      Following on from https://bugreports.qt.io/browse/QTBUG-111460 I have compiled a static version of Qt 6.5.1 with FFmpeg (see attached Python build script). When I try to build this project https://github.com/martinburchell/qml-camera-example/ with this Qt, I get the error:

      /usr/bin/ld: cannot find -llibavformat.a

      It looks like the LIBS section of the Makefile (attached) is generated incorrectly.

      Is https://bugreports.qt.io/browse/QTBUG-107462 related?

      Attachments

        1. build.py
          2 kB
        2. find-ffmpeg.patch
          1 kB
        3. find-ffmpeg-2.patch
          2 kB
        4. Makefile
          153 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            crmaurei Cristian Maureira-Fredes
            martinburchell Martin Burchell
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes