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

App fails to build with qmake with static Qt + static FFmpeg, wrong linker flags

XMLWordPrintable

    • macOS, Windows
    • 121106ae1 (dev), 62f949d7d (6.10), ee567d379 (tqtc/lts-6.8)

      When Qt is built statically with a static version of FFmpeg, when building an app it does not to link correctly with FFmpeg libs, being impossible to build an app without modifying the Makefile manually.

       

      ```

      ld: library 'libavformat.a' not found

      which is caused by this:
      /Users/nsantos/Qt/6.8.4/macos_static/lib/libQt6FFmpegMediaPluginImpl.a -framework VideoToolbox -llibavformat.a -llibavcodec.a -llibswresample.a -llibswscale.a -llibavutil.a

      ```

      Since this is in the generated .prf files, I believe this use case hasn't been fully tested.

      In order to reproduce, build Qt statically and provide a static build of FFmpeg, then try to build the attached example.

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

            jbornema Joerg Bornemann
            sinosoidal Nuno Santos
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes