From e1ec936cf732e50bddb588985a8d6738b43da3ac Mon Sep 17 00:00:00 2001 From: Alessandro Rubini Date: Fri, 28 Aug 2026 22:02:28 +0200 Subject: [PATCH] package/opencv: fix webp dependency When BR2_PACKAGE_OPENCV4_WITH_WEBP=y we need to enable mux and demux support in webp, otherwise the build of OpenCV fails as follows: CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: WEBP_DEMUX_LIBRARY linked by target "opencv_imgcodecs" in directory [...]/build/opencv4-4.13.0/modules/imgcodecs WEBP_MUX_LIBRARY linked by target "opencv_imgcodecs" in directory [...]/build/opencv4-4.13.0/modules/imgcodecs The issue already exists in 2025.02.x. Fixes: https://autobuild.buildroot.net/results/d3e0446a87d32469267e241866c4224143170f31/ Signed-off-by: Alessandro Rubini Signed-off-by: Thomas Petazzoni --- package/opencv4/Config.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package/opencv4/Config.in b/package/opencv4/Config.in index 47c1cf3f4a..e4a15f742b 100644 --- a/package/opencv4/Config.in +++ b/package/opencv4/Config.in @@ -369,6 +369,8 @@ config BR2_PACKAGE_OPENCV4_WITH_V4L config BR2_PACKAGE_OPENCV4_WITH_WEBP bool "webp support" select BR2_PACKAGE_WEBP + select BR2_PACKAGE_WEBP_DEMUX + select BR2_PACKAGE_WEBP_MUX help Enable WebP support.