diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2019-03-19 09:37:39 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-19 09:37:39 -0300 |
commit | b4cecfc99678bb1e3f3824b9a6be8b86ef9d9a03 (patch) | |
tree | 57243c528f17f3d92f2108072e4bcf4fc421bb21 | |
parent | 4ee590743c3c897724c5add273ab04518fece770 (diff) | |
parent | 5b35bca70f67d9e8bcb02859ba09ed16287db8d7 (diff) | |
download | meta-freescale-b4cecfc99678bb1e3f3824b9a6be8b86ef9d9a03.tar.gz |
Merge pull request #65 from vdehors/master
recipes-multimedia/gstreamer: Fix compilation with OpenCV 3.4.5
-rw-r--r-- | recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0002-opencv-Fix-build-with-opencv-3.4.5.patch | 40 | ||||
-rw-r--r-- | recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.14.imx.bb | 1 |
2 files changed, 41 insertions, 0 deletions
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0002-opencv-Fix-build-with-opencv-3.4.5.patch b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0002-opencv-Fix-build-with-opencv-3.4.5.patch new file mode 100644 index 00000000..4c9cba61 --- /dev/null +++ b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0002-opencv-Fix-build-with-opencv-3.4.5.patch | |||
@@ -0,0 +1,40 @@ | |||
1 | From 70661ec35ba7655b52f4043ee7362202bc632472 Mon Sep 17 00:00:00 2001 | ||
2 | From: Vincent Dehors <vincent.dehors@smile.fr> | ||
3 | Date: Mon, 4 Mar 2019 09:01:37 +0100 | ||
4 | Subject: [PATCH] opencv: Fix build with opencv >= 3.4.5 | ||
5 | |||
6 | Including C header imgproc_c.h leads to a compilation error : several | ||
7 | conflicting declartions for cvMoments(). Including the HPP fixes this error | ||
8 | as it is done in other CPP files in the same directory. | ||
9 | |||
10 | Upstream-Status: Inappropriate, code ported to C++ in more recent version | ||
11 | Signed-off-by: Vincent DEHORS <vincent.dehors@smile.fr> | ||
12 | |||
13 | --- | ||
14 | ext/opencv/gstgrabcut.cpp | 9 +++++---- | ||
15 | 1 file changed, 5 insertions(+), 4 deletions(-) | ||
16 | |||
17 | diff --git a/ext/opencv/gstgrabcut.cpp b/ext/opencv/gstgrabcut.cpp | ||
18 | index 4cbc706d5..65b508f20 100644 | ||
19 | --- a/ext/opencv/gstgrabcut.cpp | ||
20 | +++ b/ext/opencv/gstgrabcut.cpp | ||
21 | @@ -85,11 +85,12 @@ | ||
22 | #endif | ||
23 | |||
24 | #include "gstgrabcut.h" | ||
25 | -extern "C" | ||
26 | -{ | ||
27 | + | ||
28 | +#if (CV_MAJOR_VERSION >= 3) | ||
29 | +#include <opencv2/imgproc.hpp> | ||
30 | +#endif | ||
31 | #include <opencv2/imgproc/imgproc_c.h> | ||
32 | -} | ||
33 | -#include <opencv2/imgproc/imgproc.hpp> | ||
34 | + | ||
35 | GST_DEBUG_CATEGORY_STATIC (gst_grabcut_debug); | ||
36 | #define GST_CAT_DEFAULT gst_grabcut_debug | ||
37 | |||
38 | -- | ||
39 | 2.20.1 | ||
40 | |||
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 2e3f3469..9d7a1eed 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 | |||
@@ -24,6 +24,7 @@ SRC_URI = " \ | |||
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 | file://0001-opencv-fix-build-for-opencv-3-4-2.patch \ |
27 | file://0002-opencv-Fix-build-with-opencv-3.4.5.patch \ | ||
27 | " | 28 | " |
28 | 29 | ||
29 | SRCREV = "03e6ef6a371a0578a9629abde8e9c83e66f34b11" | 30 | SRCREV = "03e6ef6a371a0578a9629abde8e9c83e66f34b11" |