From a67ab908d4f546bda9a94521f3b1f37aea60a365 Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni Date: Sat, 3 Jan 2026 23:43:16 +0100 Subject: [PATCH] package/opencv4-contrib: add missing gcc >= 8 dependencies Commit 75ab6cf93a3ba505897ae99b5ff4bffda55d3c7b ("package/{python-}protobuf: bump to version 28.1") added a whole bunch of gcc >= 8 dependencies to OpenCV 4 options, but forgot to propagate those to opencv4-contrib. Fixes: WARNING: unmet direct dependencies detected for BR2_PACKAGE_OPENCV4_LIB_OBJDETECT Depends on [n]: BR2_PACKAGE_OPENCV4 [=y] && !BR2_TOOLCHAIN_USES_UCLIBC [=n] && BR2_PACKAGE_PROTOBUF_ARCH_SUPPORTS [=y] && BR2_TOOLCHAIN_GCC_AT_LEAST_8 [=n] Selected by [y]: - BR2_PACKAGE_OPENCV4_CONTRIB_LIB_FACE [=y] && BR2_PACKAGE_OPENCV4_CONTRIB [=y] && BR2_PACKAGE_PROTOBUF_ARCH_SUPPORTS [=y] && !BR2_TOOLCHAIN_USES_UCLIBC [=n] Signed-off-by: Thomas Petazzoni Signed-off-by: Julien Olivain --- package/opencv4-contrib/Config.in | 36 ++++++++++++++++++++----------- 1 file changed, 23 insertions(+), 13 deletions(-) diff --git a/package/opencv4-contrib/Config.in b/package/opencv4-contrib/Config.in index ad61c3fbe8..529687dd96 100644 --- a/package/opencv4-contrib/Config.in +++ b/package/opencv4-contrib/Config.in @@ -76,28 +76,32 @@ config BR2_PACKAGE_OPENCV4_CONTRIB_LIB_DNN_OBJDETECT bool "dnn_objdetect" depends on BR2_PACKAGE_PROTOBUF_ARCH_SUPPORTS # opencv4 dnn depends on !BR2_TOOLCHAIN_USES_UCLIBC # opencv4 dnn + depends on BR2_TOOLCHAIN_GCC_AT_LEAST_8 # opencv4 dnn select BR2_PACKAGE_OPENCV4_LIB_DNN help Object Detection using CNNs -- Implements compact CNN Model for object detection. Trained using Caffe but uses opencv_dnn module. -comment "dnn_objdetect needs a glibc or musl toolchain" +comment "dnn_objdetect needs a glibc or musl toolchain w/ gcc >= 8" depends on BR2_PACKAGE_PROTOBUF_ARCH_SUPPORTS - depends on BR2_TOOLCHAIN_USES_UCLIBC + depends on BR2_TOOLCHAIN_USES_UCLIBC || \ + !BR2_TOOLCHAIN_GCC_AT_LEAST_8 config BR2_PACKAGE_OPENCV4_CONTRIB_LIB_DNN_SUPERRES bool "dnn_superres" depends on BR2_PACKAGE_PROTOBUF_ARCH_SUPPORTS # opencv4 dnn depends on !BR2_TOOLCHAIN_USES_UCLIBC # opencv4 dnn + depends on BR2_TOOLCHAIN_GCC_AT_LEAST_8 # opencv4 dnn select BR2_PACKAGE_OPENCV4_LIB_DNN help Superresolution using CNNs -- Contains four trained convolutional neural networks to upscale images. -comment "dnn_superres needs a glibc or musl toolchain" +comment "dnn_superres needs a glibc or musl toolchain w/ gcc >= 8" depends on BR2_PACKAGE_PROTOBUF_ARCH_SUPPORTS - depends on BR2_TOOLCHAIN_USES_UCLIBC + depends on BR2_TOOLCHAIN_USES_UCLIBC || \ + !BR2_TOOLCHAIN_GCC_AT_LEAST_8 config BR2_PACKAGE_OPENCV4_CONTRIB_LIB_DNNS_EASILY_FOOLED bool "dnns_easily_fooled" @@ -109,27 +113,31 @@ config BR2_PACKAGE_OPENCV4_CONTRIB_LIB_DPM bool "dpm" depends on BR2_PACKAGE_PROTOBUF_ARCH_SUPPORTS # opencv4 objdetect depends on !BR2_TOOLCHAIN_USES_UCLIBC # opencv4 objdetect + depends on BR2_TOOLCHAIN_GCC_AT_LEAST_8 # opencv4 objdetect select BR2_PACKAGE_OPENCV4_LIB_OBJDETECT help Deformable Part Model -- Felzenszwalb's Cascade with deformable parts object recognition code. -comment "dpm needs a glibc or musl toolchain" - depends on BR2_PACKAGE_PROTOBUF_ARCH_SUPPORTS # opencv4 objdetect - depends on BR2_TOOLCHAIN_USES_UCLIBC # opencv4 objdetect +comment "dpm needs a glibc or musl toolchain w/ gcc >= 8" + depends on BR2_PACKAGE_PROTOBUF_ARCH_SUPPORTS + depends on BR2_TOOLCHAIN_USES_UCLIBC || \ + !BR2_TOOLCHAIN_GCC_AT_LEAST_8 config BR2_PACKAGE_OPENCV4_CONTRIB_LIB_FACE bool "face" depends on BR2_PACKAGE_PROTOBUF_ARCH_SUPPORTS # opencv4 objdetect depends on !BR2_TOOLCHAIN_USES_UCLIBC # opencv4 objdetect + depends on BR2_TOOLCHAIN_GCC_AT_LEAST_8 # opencv4 objdetect select BR2_PACKAGE_OPENCV4_LIB_OBJDETECT help Face Recognition -- Face recognition techniques: Eigen, Fisher and Local Binary Pattern Histograms LBPH methods. -comment "face needs a glibc or musl toolchain" - depends on BR2_PACKAGE_PROTOBUF_ARCH_SUPPORTS # opencv4 objdetect - depends on BR2_TOOLCHAIN_USES_UCLIBC # opencv4 objdetect +comment "face needs a glibc or musl toolchain w/ gcc >= 8" + depends on BR2_PACKAGE_PROTOBUF_ARCH_SUPPORTS + depends on BR2_TOOLCHAIN_USES_UCLIBC || \ + !BR2_TOOLCHAIN_GCC_AT_LEAST_8 config BR2_PACKAGE_OPENCV4_CONTRIB_LIB_FREETYPE bool "freetype" @@ -347,15 +355,17 @@ config BR2_PACKAGE_OPENCV4_CONTRIB_LIB_XOBJDETECT bool "xobjdetect" depends on BR2_PACKAGE_PROTOBUF_ARCH_SUPPORTS # opencv4 objdetect depends on !BR2_TOOLCHAIN_USES_UCLIBC # opencv4 objdetect + depends on BR2_TOOLCHAIN_GCC_AT_LEAST_8 # opencv4 objdetect select BR2_PACKAGE_OPENCV4_LIB_OBJDETECT help Boosted 2D Object Detection -- Uses a Waldboost cascade and local binary patterns computed as integral features for 2D object detection. -comment "xobjdetect needs a glibc or musl toolchain" - depends on BR2_PACKAGE_PROTOBUF_ARCH_SUPPORTS # opencv4 objdetect - depends on BR2_TOOLCHAIN_USES_UCLIBC # opencv4 objdetect +comment "xobjdetect needs a glibc or musl toolchain w/ gcc >= 8" + depends on BR2_PACKAGE_PROTOBUF_ARCH_SUPPORTS + depends on BR2_TOOLCHAIN_USES_UCLIBC || \ + !BR2_TOOLCHAIN_GCC_AT_LEAST_8 config BR2_PACKAGE_OPENCV4_CONTRIB_LIB_XPHOTO bool "xphoto"