diff options
author | Gary Bisson <gary.bisson@boundarydevices.com> | 2018-09-12 15:20:46 +0200 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2018-09-12 10:30:23 -0300 |
commit | 68cadfdbcf5e4c2c30d396a61dbe3d1eaa40deac (patch) | |
tree | 6608caa7685ef66ae4272c867948e60a7b5845a0 /recipes-multimedia | |
parent | 82e14816a9f07781a792eda4cb2f72b94a7bba8c (diff) | |
download | meta-freescale-68cadfdbcf5e4c2c30d396a61dbe3d1eaa40deac.tar.gz |
gstreamer1.0-plugins-bad: fix build for opencv >= 3.4.2
Since OpenCV was updated to version 3.4.3 in meta-openembedded:
7b9f86ca7 opencv: Update to 3.4.3
The gstreamer-plugins from NXP is therefore out of sync and can't build
without this patch from upstream.
Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'recipes-multimedia')
-rw-r--r-- | recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0001-opencv-fix-build-for-opencv-3-4-2.patch | 63 | ||||
-rw-r--r-- | recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.14.imx.bb | 1 |
2 files changed, 64 insertions, 0 deletions
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0001-opencv-fix-build-for-opencv-3-4-2.patch b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0001-opencv-fix-build-for-opencv-3-4-2.patch new file mode 100644 index 00000000..5c53e8e5 --- /dev/null +++ b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0001-opencv-fix-build-for-opencv-3-4-2.patch | |||
@@ -0,0 +1,63 @@ | |||
1 | From c247745faaf885fd3fa094198fc0ea288e295dbf Mon Sep 17 00:00:00 2001 | ||
2 | From: Thibault Saunier <tsaunier@igalia.com> | ||
3 | Date: Fri, 13 Jul 2018 14:42:28 -0400 | ||
4 | Subject: [PATCH] opencv: Fix build for opencv >= 3.4.2 | ||
5 | MIME-Version: 1.0 | ||
6 | Content-Type: text/plain; charset=UTF-8 | ||
7 | Content-Transfer-Encoding: 8bit | ||
8 | |||
9 | The `CV_RGB` macro is now in `imgproc.hpp`. | ||
10 | |||
11 | Fixes: | ||
12 | |||
13 | ../subprojects/gst-plugins-bad/ext/opencv/gsthanddetect.cpp:497:40: error: ‘CV_RGB’ was not declared in this scope | ||
14 | cvCircle (img, center, radius, CV_RGB (0, 0, 200), 1, 8, 0); | ||
15 | ^~~~~~ | ||
16 | --- | ||
17 | ext/opencv/MotionCells.cpp | 3 +++ | ||
18 | ext/opencv/gsthanddetect.cpp | 3 +++ | ||
19 | ext/opencv/gsttemplatematch.cpp | 3 +++ | ||
20 | 3 files changed, 9 insertions(+) | ||
21 | |||
22 | diff --git a/ext/opencv/MotionCells.cpp b/ext/opencv/MotionCells.cpp | ||
23 | index f85989e117..175ec901b2 100644 | ||
24 | --- a/ext/opencv/MotionCells.cpp | ||
25 | +++ b/ext/opencv/MotionCells.cpp | ||
26 | @@ -51,6 +51,9 @@ | ||
27 | |||
28 | #include <errno.h> | ||
29 | #include "MotionCells.h" | ||
30 | +#if (CV_MAJOR_VERSION >= 3) | ||
31 | +#include <opencv2/imgproc.hpp> | ||
32 | +#endif | ||
33 | #include <opencv2/imgproc/imgproc_c.h> | ||
34 | |||
35 | MotionCells::MotionCells () | ||
36 | diff --git a/ext/opencv/gsthanddetect.cpp b/ext/opencv/gsthanddetect.cpp | ||
37 | index 60fd5be72b..47203fd0ea 100644 | ||
38 | --- a/ext/opencv/gsthanddetect.cpp | ||
39 | +++ b/ext/opencv/gsthanddetect.cpp | ||
40 | @@ -62,6 +62,9 @@ | ||
41 | |||
42 | /* element header */ | ||
43 | #include "gsthanddetect.h" | ||
44 | +#if (CV_MAJOR_VERSION >= 3) | ||
45 | +#include <opencv2/imgproc.hpp> | ||
46 | +#endif | ||
47 | #include <opencv2/imgproc/imgproc_c.h> | ||
48 | |||
49 | GST_DEBUG_CATEGORY_STATIC (gst_handdetect_debug); | ||
50 | diff --git a/ext/opencv/gsttemplatematch.cpp b/ext/opencv/gsttemplatematch.cpp | ||
51 | index f39208dc28..ec0b56af88 100644 | ||
52 | --- a/ext/opencv/gsttemplatematch.cpp | ||
53 | +++ b/ext/opencv/gsttemplatematch.cpp | ||
54 | @@ -63,6 +63,9 @@ | ||
55 | |||
56 | #include "../../gst-libs/gst/gst-i18n-plugin.h" | ||
57 | #include "gsttemplatematch.h" | ||
58 | +#if (CV_MAJOR_VERSION >= 3) | ||
59 | +#include <opencv2/imgproc.hpp> | ||
60 | +#endif | ||
61 | #include <opencv2/imgproc/imgproc_c.h> | ||
62 | |||
63 | GST_DEBUG_CATEGORY_STATIC (gst_template_match_debug); | ||
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.14.imx.bb b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.14.imx.bb index 313d4da1..f35c825b 100644 --- a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.14.imx.bb +++ b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.14.imx.bb | |||
@@ -23,6 +23,7 @@ SRC_URI = " \ | |||
23 | ${GST1.0-PLUGINS-BAD_SRC};branch=${SRCBRANCH} \ | 23 | ${GST1.0-PLUGINS-BAD_SRC};branch=${SRCBRANCH} \ |
24 | file://configure-allow-to-disable-libssh2.patch \ | 24 | file://configure-allow-to-disable-libssh2.patch \ |
25 | file://0001-Makefile.am-don-t-hardcode-libtool-name-when-running.patch \ | 25 | file://0001-Makefile.am-don-t-hardcode-libtool-name-when-running.patch \ |
26 | file://0001-opencv-fix-build-for-opencv-3-4-2.patch \ | ||
26 | " | 27 | " |
27 | 28 | ||
28 | SRCREV = "07ad0bb676a16c2dffb0f0e415a873f0924cfdc0" | 29 | SRCREV = "07ad0bb676a16c2dffb0f0e415a873f0924cfdc0" |