diff --git a/package/opencv4/Config.in b/package/opencv4/Config.in index a7f5592122..47c1cf3f4a 100644 --- a/package/opencv4/Config.in +++ b/package/opencv4/Config.in @@ -157,9 +157,10 @@ config BR2_PACKAGE_OPENCV4_LIB_OBJDETECT Include opencv_objdetect (object detection) module into the OpenCV build. -comment "objdetect needs a glibc or musl toolchain" +comment "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_LIB_PHOTO bool "photo" @@ -207,9 +208,10 @@ config BR2_PACKAGE_OPENCV4_LIB_STITCHING Include opencv_stitching (images stitching) module into the OpenCV build. -comment "stitching needs a glibc or musl toolchain" +comment "stitching 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_LIB_SUPERRES bool "superres" @@ -332,6 +334,10 @@ config BR2_PACKAGE_OPENCV4_WITH_PROTOBUF help Use shared protobuf from the target system. +comment "protobuf support needs a toolchain w/ gcc >= 8" + depends on BR2_PACKAGE_PROTOBUF_ARCH_SUPPORTS + depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_8 + config BR2_PACKAGE_OPENCV4_WITH_TBB bool "tbb support" depends on !BR2_TOOLCHAIN_USES_UCLIBC # tbb