-
Bug
-
Resolution: Fixed
-
P3: Somewhat important
-
6.8.4
-
-
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.
For Gerrit Dashboard: QTBUG-138596 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
668397,4 | CMake: Handle library names like libavformat.a in .prl files | dev | qt/qtbase | Status: MERGED | +2 | +1 |
677177,2 | CMake: Handle library names like libavformat.a in .prl files | 6.10 | qt/qtbase | Status: MERGED | +2 | 0 |
677226,2 | CMake: Handle library names like libavformat.a in .prl files | tqtc/lts-6.8 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |