From: Samuel Martin <s.martin49@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v7 1/7] package/opencv: add a choice for selecting gstreamer support
Date: Sat, 4 Jul 2015 21:06:55 +0200 [thread overview]
Message-ID: <1436036821-10073-2-git-send-email-s.martin49@gmail.com> (raw)
In-Reply-To: <1436036821-10073-1-git-send-email-s.martin49@gmail.com>
OpenCV 3.0 support both gstreamer-0.10 and gstreamer-1.x, but only one
is used at the time.
This patch turns the gstreamer support into a choice, in order to prepare
adding the support for gstreamer-1 in a following patch.
Signed-off-by: Samuel Martin <s.martin49@gmail.com>
---
changes v6->v7:
- move gstreamer comment inside the choice (Yann)
changes v5->v6:
- new patch
---
package/opencv/Config.in | 20 +++++++++++++++-----
1 file changed, 15 insertions(+), 5 deletions(-)
diff --git a/package/opencv/Config.in b/package/opencv/Config.in
index 576f667..c3b7535 100644
--- a/package/opencv/Config.in
+++ b/package/opencv/Config.in
@@ -173,19 +173,29 @@ config BR2_PACKAGE_OPENCV_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_OPENCV_WITHOUT_GSTREAMER
+ bool "none"
+
config BR2_PACKAGE_OPENCV_WITH_GSTREAMER
- bool "gstreamer support"
- depends on BR2_USE_MMU # gstreamer -> libglib2
- depends on BR2_USE_WCHAR # gstreamer -> libglib2
- depends on BR2_TOOLCHAIN_HAS_THREADS # gstreamer -> libglib2
+ bool "gstreamer-0.10"
+ depends on BR2_USE_MMU # libglib2
+ depends on BR2_USE_WCHAR # libglib2
+ depends on BR2_TOOLCHAIN_HAS_THREADS # libglib2
select BR2_PACKAGE_GSTREAMER
select BR2_PACKAGE_GST_PLUGINS_BASE
select BR2_PACKAGE_GST_PLUGINS_BASE_PLUGIN_APP
-comment "gstreamer support needs a toolchain w/ wchar, threads"
+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
+endchoice
+
config BR2_PACKAGE_OPENCV_WITH_GTK
bool "gtk support"
depends on BR2_PACKAGE_XORG7
--
2.4.5
next prev parent reply other threads:[~2015-07-04 19:06 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-04 19:06 [Buildroot] [PATCH v7 0/7] OpenCV bump Samuel Martin
2015-07-04 19:06 ` Samuel Martin [this message]
2015-07-05 8:35 ` [Buildroot] [PATCH v7 1/7] package/opencv: add a choice for selecting gstreamer support Yann E. MORIN
2015-07-04 19:06 ` [Buildroot] [PATCH v7 2/7] package/opencv: add gstreamer-1.x support Samuel Martin
2015-07-05 8:45 ` Yann E. MORIN
2015-07-05 9:10 ` Samuel Martin
2015-07-04 19:06 ` [Buildroot] [PATCH v7 3/7] package/opencv: add a choice for selecting the gui toolkit Samuel Martin
2015-07-05 8:49 ` Yann E. MORIN
2015-07-04 19:06 ` [Buildroot] [PATCH v7 4/7] package/opencv: add qt5 support Samuel Martin
2015-07-05 9:11 ` Yann E. MORIN
2015-07-04 19:06 ` [Buildroot] [PATCH v7 5/7] package/opencv: add gtk3 support Samuel Martin
2015-07-05 9:21 ` Yann E. MORIN
2015-07-05 9:31 ` Samuel Martin
2015-07-04 19:07 ` [Buildroot] [PATCH v7 6/7] package/opencv: add opengl support Samuel Martin
2015-07-05 9:27 ` Yann E. MORIN
2015-07-04 19:07 ` [Buildroot] [PATCH v7 7/7] package/vlc: add opencv support Samuel Martin
2015-07-05 9:39 ` Yann E. MORIN
2015-07-05 9:49 ` Samuel Martin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1436036821-10073-2-git-send-email-s.martin49@gmail.com \
--to=s.martin49@gmail.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox