diff options
author | Rolf Eike Beer <eb@emlix.com> | 2023-02-23 07:51:30 +0100 |
---|---|---|
committer | Michal Klocek <michal.klocek@qt.io> | 2023-03-02 12:10:19 +0100 |
commit | 9a6bbecfc5839b8f52fe605cc6a347f39accb42b (patch) | |
tree | a09f712a291f700562930d8ba7d8646eecfa6ca7 | |
parent | 47c398a510d13b1bbe41a665141f9eea52ffac32 (diff) |
CMake: check for vpx_codec_vp9_cx() presence in libvpx
This function is present in the headers even if the vp9 encoder is
disabled during build. It is actually used later, which leads to a
linker error when not present.
Change-Id: I77247c76b29c132386c4d77861c0f63418321871
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
(cherry picked from commit df9a9c357f3ce2298846839d24878d519903ca9f)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit 12be7ebfb9da83282e8b13b09aa636e0e700f659)
-rw-r--r-- | configure.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.cmake b/configure.cmake index 1e4cbea08..b20ab3b65 100644 --- a/configure.cmake +++ b/configure.cmake @@ -99,6 +99,7 @@ int main() { pkt.data.frame.height[0] = 0u; auto a = CONSTRAINED_FROM_ABOVE_DROP; auto b = VPX_IMG_FMT_NV12; + auto v9 = vpx_codec_vp9_cx(); }" ) |