opencv3: enable support for dnn library

opencv dnn library configuration is not enable in
the configuration. This patch enable opencv to
build with dnn library.

Signed-off-by: Mohamad Noor Alim Hussin <mnalim@efinixinc.com>
This commit is contained in:
Mohamad Noor Alim Hussin
2022-05-09 15:43:48 +08:00
committed by Byron Lathi
parent 0d4c604da8
commit 40adc6ae96
2 changed files with 16 additions and 1 deletions

View File

@@ -298,6 +298,13 @@ comment "protobuf support needs a toolchain w/ gcc >= 4.8"
depends on BR2_PACKAGE_PROTOBUF_ARCH_SUPPORTS
depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
config BR2_PACKAGE_OPENCV3_DNN
bool "dnn support"
select BR2_PACKAGE_OPENCV3_WITH_PROTOBUF
select BR2_PACKAGE_PROTOBUF
help
Use shared dnn library
config BR2_PACKAGE_OPENCV3_WITH_TIFF
bool "tiff support"
select BR2_PACKAGE_TIFF

View File

@@ -108,7 +108,8 @@ OPENCV3_CONF_OPTS += \
-DBUILD_opencv_videoio=$(if $(BR2_PACKAGE_OPENCV3_LIB_VIDEOIO),ON,OFF) \
-DBUILD_opencv_videostab=$(if $(BR2_PACKAGE_OPENCV3_LIB_VIDEOSTAB),ON,OFF) \
-DBUILD_opencv_viz=OFF \
-DBUILD_opencv_world=OFF
-DBUILD_opencv_world=OFF \
-DBUILD_opencv_dnn=$(if $(BR2_PACKAGE_OPENCV3_LIB_DNN),ON,OFF)
# Hardware support options.
#
@@ -258,6 +259,13 @@ OPENCV3_CONF_OPTS += -DWITH_GTK=ON -DWITH_GTK_2_X=OFF
OPENCV3_DEPENDENCIES += libgtk3
endif
ifeq ($(BR2_PACKAGE_OPENCV3_DNN),y)
OPENCV3_CONF_OPTS += -DBUILD_opencv_dnn=ON \
-DPROTOBUF_UPDATE_FILES=ON \
-DWITH_PROTOBUF=ON
OPENCV3_DEPENDENCIES += protobuf
endif
ifeq ($(BR2_PACKAGE_OPENCV3_WITH_JASPER),y)
OPENCV3_CONF_OPTS += -DWITH_JASPER=ON
OPENCV3_DEPENDENCIES += jasper