package/opencv3: drop gstreamer 0.10.x support
authorPeter Korsgaard <peter@korsgaard.com>
Fri, 7 Feb 2020 14:50:22 +0000 (15:50 +0100)
committerYann E. MORIN <yann.morin.1998@free.fr>
Sat, 8 Feb 2020 21:42:54 +0000 (22:42 +0100)
With the upcoming removal of gstreamer 0.10, the logic for building opencv3
with support for it must go as well.

As there is now a single option for gstreamer (1.x) support, convert the
gstreamer support choice to a normal option for simplicity.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Config.in.legacy
package/opencv3/Config.in
package/opencv3/opencv3.mk

index 20cf568be9713c109e163db53a9671c85c15de92..34f99b54de04bb15aafecd3e49c045d65177bbc5 100644 (file)
@@ -146,6 +146,13 @@ endif
 
 comment "Legacy options removed in 2020.02"
 
+config BR2_PACKAGE_OPENCV3_WITH_GSTREAMER
+       bool "opencv3 gstreamer 0.10.x support removed"
+       select BR2_LEGACY
+       help
+         Gstreamer 0.10.x is no longer available in Buildroot, so
+         neither is the support in opencv3.
+
 config BR2_PACKAGE_OPENCV_WITH_GSTREAMER
        bool "opencv gstreamer 0.10.x support removed"
        select BR2_LEGACY
index fdd7152ee685b04c67c359f32e786c2f65ba7762..d4b17b6acf4d2ff8e53a9283d2f94bb154bd6f1b 100644 (file)
@@ -249,27 +249,6 @@ config BR2_PACKAGE_OPENCV3_WITH_FFMPEG
        help
          Use ffmpeg from the target system.
 
-choice
-       prompt "gstreamer support"
-       help
-         OpenCV prefers gstreamer-1 over gstreamer-0.10.
-
-config BR2_PACKAGE_OPENCV3_WITHOUT_GSTREAMER
-       bool "none"
-
-config BR2_PACKAGE_OPENCV3_WITH_GSTREAMER
-       bool "gstreamer-0.10"
-       depends on BR2_USE_MMU # gstreamer -> libglib2
-       depends on BR2_USE_WCHAR # gstreamer -> libglib2
-       depends on BR2_TOOLCHAIN_HAS_THREADS # gstreamer -> libglib2
-       select BR2_PACKAGE_GSTREAMER
-       select BR2_PACKAGE_GST_PLUGINS_BASE
-       select BR2_PACKAGE_GST_PLUGINS_BASE_PLUGIN_APP
-
-comment "gstreamer-0.10 support needs a toolchain w/ wchar, threads"
-       depends on BR2_USE_MMU
-       depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS
-
 config BR2_PACKAGE_OPENCV3_WITH_GSTREAMER1
        bool "gstreamer-1.x"
        depends on BR2_USE_MMU # gstreamer1 -> libglib2
@@ -278,13 +257,13 @@ config BR2_PACKAGE_OPENCV3_WITH_GSTREAMER1
        select BR2_PACKAGE_GSTREAMER1
        select BR2_PACKAGE_GST1_PLUGINS_BASE
        select BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_APP
+       help
+         Enable gstreamer support.
 
-comment "gstreamer-1.x support needs a toolchain w/ wchar, threads"
+comment "gstreamer support needs a toolchain w/ wchar, threads"
        depends on BR2_USE_MMU
        depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS
 
-endchoice
-
 config BR2_PACKAGE_OPENCV3_WITH_JASPER
        bool "jpeg2000 support"
        select BR2_PACKAGE_JASPER
index c99e84a29f3773bc6784a230d2085fa1c76ca16f..2c5d6b041d0f215ed61ae6b7db48e6e8568ab0d1 100644 (file)
@@ -206,6 +206,7 @@ OPENCV3_CONF_OPTS += \
        -DWITH_EIGEN=OFF \
        -DWITH_GDAL=OFF \
        -DWITH_GPHOTO2=OFF \
+       -DWITH_GSTREAMER_0_10=OFF \
        -DWITH_LAPACK=OFF \
        -DWITH_MATLAB=OFF \
        -DWITH_OPENCL=OFF \
@@ -229,13 +230,6 @@ else
 OPENCV3_CONF_OPTS += -DWITH_FFMPEG=OFF
 endif
 
-ifeq ($(BR2_PACKAGE_OPENCV3_WITH_GSTREAMER),y)
-OPENCV3_CONF_OPTS += -DWITH_GSTREAMER_0_10=ON
-OPENCV3_DEPENDENCIES += gstreamer gst-plugins-base
-else
-OPENCV3_CONF_OPTS += -DWITH_GSTREAMER_0_10=OFF
-endif
-
 ifeq ($(BR2_PACKAGE_OPENCV3_WITH_GSTREAMER1),y)
 OPENCV3_CONF_OPTS += -DWITH_GSTREAMER=ON
 OPENCV3_DEPENDENCIES += gstreamer1 gst1-plugins-base