From: Alessandro Rubini <rubini@gnudd.com>
To: thomas.petazzoni@bootlin.com
Cc: buildroot@buildroot.org
Subject: [Buildroot] [PATCH v2] package/opencv: fix a webp dependency
Date: Fri, 28 Aug 2026 22:02:28 +0200 [thread overview]
Message-ID: <apHpVO5XvrAs52H1@arcana.i.gnudd.com> (raw)
In-Reply-To: <aohHBg5JtecHVORq@windsurf>
When BR2_PACKAGE_OPENCV4_WITH_WEBP=y we need to enable mux and demux
too, otherwise build 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 (thanks Thomas for checking),
but not in 2023.08.x whence my defconfig originated.
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
---
This is v2 of what was called "package/opencv: depend on webp mux/demux",
but as suggested by Thomas the dependency is not uplevel, so this is
fixed according to his suggestions. Tested on current master.
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.
--
2.47.3
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2026-08-28 20:02 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-26 21:59 [Buildroot] [PATCH] package/opencv: depend on webp mux/demux Alessandro Rubini
2026-08-21 10:23 ` Thomas Petazzoni via buildroot
2026-08-21 10:28 ` Thomas Petazzoni via buildroot
2026-08-21 12:40 ` Thomas Petazzoni via buildroot
2026-08-24 11:47 ` Alessandro Rubini
2026-08-28 20:02 ` Alessandro Rubini [this message]
2026-08-28 21:38 ` [Buildroot] [PATCH v2] package/opencv: fix a webp dependency Thomas Petazzoni via buildroot
2026-08-29 21:34 ` Thomas Petazzoni via buildroot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=apHpVO5XvrAs52H1@arcana.i.gnudd.com \
--to=rubini@gnudd.com \
--cc=buildroot@buildroot.org \
--cc=thomas.petazzoni@bootlin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.