mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-27 21:26:36 +00:00
package/opencv: drop gstreamer 0.10.x support
With the upcoming removal of gstreamer 0.10, the logic for building opencv 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>
This commit is contained in:
parent
d89fa735a7
commit
0220ad8b13
@ -146,6 +146,13 @@ endif
|
|||||||
|
|
||||||
comment "Legacy options removed in 2020.02"
|
comment "Legacy options removed in 2020.02"
|
||||||
|
|
||||||
|
config BR2_PACKAGE_OPENCV_WITH_GSTREAMER
|
||||||
|
bool "opencv 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 opencv.
|
||||||
|
|
||||||
config BR2_PACKAGE_LIBPLAYER
|
config BR2_PACKAGE_LIBPLAYER
|
||||||
bool "libplayer package was removed"
|
bool "libplayer package was removed"
|
||||||
select BR2_LEGACY
|
select BR2_LEGACY
|
||||||
|
@ -195,44 +195,21 @@ config BR2_PACKAGE_OPENCV_WITH_FFMPEG
|
|||||||
help
|
help
|
||||||
Use ffmpeg from the target system.
|
Use ffmpeg from the target system.
|
||||||
|
|
||||||
choice
|
|
||||||
prompt "gstreamer support"
|
|
||||||
help
|
|
||||||
OpenCV prefers gstreamer-1 over gstreamer-0.10.
|
|
||||||
|
|
||||||
config BR2_PACKAGE_OPENCV_WITHOUT_GSTREAMER
|
|
||||||
bool "none"
|
|
||||||
|
|
||||||
config BR2_PACKAGE_OPENCV_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
|
|
||||||
depends on !BR2_STATIC_LIBS # gstreamer
|
|
||||||
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, dynamic library"
|
|
||||||
depends on BR2_USE_MMU
|
|
||||||
depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || \
|
|
||||||
BR2_STATIC_LIBS
|
|
||||||
|
|
||||||
config BR2_PACKAGE_OPENCV_WITH_GSTREAMER1
|
config BR2_PACKAGE_OPENCV_WITH_GSTREAMER1
|
||||||
bool "gstreamer-1.x"
|
bool "gstreamer support"
|
||||||
depends on BR2_USE_MMU # gstreamer1 -> libglib2
|
depends on BR2_USE_MMU # gstreamer1 -> libglib2
|
||||||
depends on BR2_USE_WCHAR # gstreamer1 -> libglib2
|
depends on BR2_USE_WCHAR # gstreamer1 -> libglib2
|
||||||
depends on BR2_TOOLCHAIN_HAS_THREADS # gstreamer1 -> libglib2
|
depends on BR2_TOOLCHAIN_HAS_THREADS # gstreamer1 -> libglib2
|
||||||
select BR2_PACKAGE_GSTREAMER1
|
select BR2_PACKAGE_GSTREAMER1
|
||||||
select BR2_PACKAGE_GST1_PLUGINS_BASE
|
select BR2_PACKAGE_GST1_PLUGINS_BASE
|
||||||
select BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_APP
|
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_MMU
|
||||||
depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS
|
depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS
|
||||||
|
|
||||||
endchoice
|
|
||||||
|
|
||||||
config BR2_PACKAGE_OPENCV_WITH_GTK
|
config BR2_PACKAGE_OPENCV_WITH_GTK
|
||||||
bool "gtk support"
|
bool "gtk support"
|
||||||
depends on BR2_PACKAGE_XORG7
|
depends on BR2_PACKAGE_XORG7
|
||||||
|
@ -155,6 +155,7 @@ OPENCV_CONF_OPTS += \
|
|||||||
OPENCV_CONF_OPTS += \
|
OPENCV_CONF_OPTS += \
|
||||||
-DWITH_1394=OFF \
|
-DWITH_1394=OFF \
|
||||||
-DWITH_EIGEN=OFF \
|
-DWITH_EIGEN=OFF \
|
||||||
|
-DWITH_GSTREAMER_0_10=OFF \
|
||||||
-DWITH_IMAGEIO=OFF \
|
-DWITH_IMAGEIO=OFF \
|
||||||
-DWITH_OPENCL=OFF \
|
-DWITH_OPENCL=OFF \
|
||||||
-DWITH_OPENEXR=OFF \
|
-DWITH_OPENEXR=OFF \
|
||||||
@ -178,13 +179,6 @@ else
|
|||||||
OPENCV_CONF_OPTS += -DWITH_FFMPEG=OFF
|
OPENCV_CONF_OPTS += -DWITH_FFMPEG=OFF
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(BR2_PACKAGE_OPENCV_WITH_GSTREAMER),y)
|
|
||||||
OPENCV_CONF_OPTS += -DWITH_GSTREAMER_0_10=ON
|
|
||||||
OPENCV_DEPENDENCIES += gstreamer gst-plugins-base
|
|
||||||
else
|
|
||||||
OPENCV_CONF_OPTS += -DWITH_GSTREAMER_0_10=OFF
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(BR2_PACKAGE_OPENCV_WITH_GSTREAMER1),y)
|
ifeq ($(BR2_PACKAGE_OPENCV_WITH_GSTREAMER1),y)
|
||||||
OPENCV_CONF_OPTS += -DWITH_GSTREAMER=ON
|
OPENCV_CONF_OPTS += -DWITH_GSTREAMER=ON
|
||||||
OPENCV_DEPENDENCIES += gstreamer1 gst1-plugins-base
|
OPENCV_DEPENDENCIES += gstreamer1 gst1-plugins-base
|
||||||
|
Loading…
x
Reference in New Issue
Block a user