package/opencv: add inter-module dependencies
authorBernd Kuhls <bernd.kuhls@t-online.de>
Mon, 18 Apr 2016 20:17:54 +0000 (22:17 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 18 Apr 2016 22:12:08 +0000 (00:12 +0200)
As stated by Samuel the opencv2 package lacks inter-module dependencies:
http://lists.busybox.net/pipermail/buildroot/2016-April/158902.html

This patch adds the necessary code for freeswitch's mod_cv to compile.

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Reviewed-by: Samuel Martin <s.martin49@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/opencv/Config.in

index 8bc6c347790ed53fcef059a47982496fb8cd6746..b563312fe86bc75a80165e97f3e115962c3b5bea 100644 (file)
@@ -23,6 +23,13 @@ config BR2_PACKAGE_OPENCV_LIB_CALIB3D
 config BR2_PACKAGE_OPENCV_LIB_CONTRIB
        bool "contrib"
        default y
+       # modules/contrib/CMakeLists.txt
+       select BR2_PACKAGE_OPENCV_LIB_CALIB3D
+       select BR2_PACKAGE_OPENCV_LIB_FEATURES2D
+       select BR2_PACKAGE_OPENCV_LIB_IMGPROC
+       select BR2_PACKAGE_OPENCV_LIB_ML
+       select BR2_PACKAGE_OPENCV_LIB_OBJDETECT
+       select BR2_PACKAGE_OPENCV_LIB_VIDEO
        help
          Include opencv_contrib module into the OpenCV build.
 
@@ -46,6 +53,8 @@ config BR2_PACKAGE_OPENCV_LIB_GPU
 config BR2_PACKAGE_OPENCV_LIB_HIGHGUI
        bool "highgui"
        default y
+       # modules/highgui/CMakeLists.txt
+       select BR2_PACKAGE_OPENCV_LIB_IMGPROC
        help
          Include opencv_highgui module into the OpenCV build.
 
@@ -58,6 +67,10 @@ config BR2_PACKAGE_OPENCV_LIB_IMGPROC
 config BR2_PACKAGE_OPENCV_LIB_LEGACY
        bool "legacy"
        default y
+       # modules/legacy/CMakeLists.txt
+       select BR2_PACKAGE_OPENCV_LIB_CALIB3D
+       select BR2_PACKAGE_OPENCV_LIB_ML
+       select BR2_PACKAGE_OPENCV_LIB_VIDEO
        help
          Include opencv_legacy module into the OpenCV build.
 
@@ -75,6 +88,8 @@ config BR2_PACKAGE_OPENCV_LIB_NONFREE
 config BR2_PACKAGE_OPENCV_LIB_OBJDETECT
        bool "objdetect"
        default y
+       # modules/objdetect/CMakeLists.txt
+       select BR2_PACKAGE_OPENCV_LIB_IMGPROC
        help
          Include opencv_objdetect module into the OpenCV build.