Details
-
Bug
-
Resolution: Fixed
-
P3: Somewhat important
-
6.5.3
-
None
-
-
f24e2a4d7 (dev), 57a0c3d56 (6.6), 36164122b (tqtc/lts-6.5)
Description
Since we moved from Qt 6.5.2 to 6.5.3 Qt no longer builds with FFmpeg/vaapi on Ubuntu 20.04. Ubuntu 22.04 is OK. I'm assuming this is because of the difference in versions of libva on these distros (v2.7 and v2.14 respectively).
There are a bunch of errors like this:
In file included from /home/martinb/workspace/qt6_local_build/src/qt6/qtmultimedia/src/plugins/multimedia/ffmpeg/qffmpegvaapisymbols.cpp:6:
/home/martinb/workspace/qt6_local_build/src/qt6/qtmultimedia/src/plugins/multimedia/ffmpeg/qffmpegvaapisymbols.cpp:82:13: error: ‘vaSyncBuffer’ was not declared in this scope; did you mean ‘vaMapBuffer’?
82 | DEFINE_FUNC(vaSyncBuffer, 3, VA_STATUS_ERROR_OPERATION_FAILED);
| ^~~~~~~~~~~~
We don't necessarily need vaapi so for us the workaround is to disable vaapi ie. --disable-vaapi when building FFmpeg and -no-feature-vaapi when building Qt.
Attachments
For Gerrit Dashboard: QTBUG-118510 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
517394,3 | Fix build with vaapi versions < 1.9.0 | dev | qt/qtmultimedia | Status: MERGED | +2 | 0 |
517548,2 | Fix build with vaapi versions < 1.9.0 | 6.6 | qt/qtmultimedia | Status: MERGED | +2 | 0 |
517570,2 | Fix build with vaapi versions < 1.9.0 | tqtc/lts-6.5 | qt/tqtc-qtmultimedia | Status: MERGED | +2 | 0 |