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

      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.

        1. test-multimedia.zip
          191 kB
          Nuno Santos
        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:
            6 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes