summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/opencv
diff options
context:
space:
mode:
authorIsmo Puustinen <ismo.puustinen@intel.com>2017-06-07 14:08:54 +0300
committerMartin Jansa <Martin.Jansa@gmail.com>2017-06-12 06:56:45 +0200
commit3b37c18838207c774501bc6d30c61bd935314d8b (patch)
treeaa00c062e2156bde66de95cda95464f67eb53a93 /meta-oe/recipes-support/opencv
parent7110ebcffe813778b0d6623480cf24e2e0b46326 (diff)
downloadmeta-openembedded-3b37c18838207c774501bc6d30c61bd935314d8b.tar.gz
opencv: fix compilation error when OpenCL is enabled.
The patch which changes test module function visilibility was missing some OpenCL symbols. Export also those. Signed-off-by: Ismo Puustinen <ismo.puustinen@intel.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-support/opencv')
-rw-r--r--meta-oe/recipes-support/opencv/opencv/0001-To-fix-errors-as-following.patch41
1 files changed, 34 insertions, 7 deletions
diff --git a/meta-oe/recipes-support/opencv/opencv/0001-To-fix-errors-as-following.patch b/meta-oe/recipes-support/opencv/opencv/0001-To-fix-errors-as-following.patch
index 820ab81f6..9c1b9b3ae 100644
--- a/meta-oe/recipes-support/opencv/opencv/0001-To-fix-errors-as-following.patch
+++ b/meta-oe/recipes-support/opencv/opencv/0001-To-fix-errors-as-following.patch
@@ -1,4 +1,4 @@
1From db1d9cc82b68f6593360d66ef40cb6b0fc377e6e Mon Sep 17 00:00:00 2001 1From a4abe478bf4514ec95aa10b2d6f258647ce325f5 Mon Sep 17 00:00:00 2001
2From: Huang Qiyu <huangqy.fnst@cn.fujitsu.com> 2From: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
3Date: Fri, 19 May 2017 04:27:50 +0900 3Date: Fri, 19 May 2017 04:27:50 +0900
4Subject: [PATCH] To fix errors as following: 4Subject: [PATCH] To fix errors as following:
@@ -8,13 +8,19 @@ Subject: [PATCH] To fix errors as following:
8"test_superres.cpp:270: undefined reference to `checkIppStatus()'" 8"test_superres.cpp:270: undefined reference to `checkIppStatus()'"
9 9
10Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com> 10Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
11
12Also add the visibility changes for certain OpenCL-related functions in
13ts module.
14
15Signed-off-by: Ismo Puustinen <ismo.puustinen@intel.com>
11--- 16---
12 modules/ts/include/opencv2/ts.hpp | 4 ++-- 17 modules/ts/include/opencv2/ts.hpp | 6 +++---
13 modules/ts/include/opencv2/ts/ts_ext.hpp | 2 +- 18 modules/ts/include/opencv2/ts/ocl_test.hpp | 2 +-
14 2 files changed, 3 insertions(+), 3 deletions(-) 19 modules/ts/include/opencv2/ts/ts_ext.hpp | 2 +-
20 3 files changed, 5 insertions(+), 5 deletions(-)
15 21
16diff --git a/modules/ts/include/opencv2/ts.hpp b/modules/ts/include/opencv2/ts.hpp 22diff --git a/modules/ts/include/opencv2/ts.hpp b/modules/ts/include/opencv2/ts.hpp
17index c573905..7ff6cc1 100644 23index c573905..230f598 100644
18--- a/modules/ts/include/opencv2/ts.hpp 24--- a/modules/ts/include/opencv2/ts.hpp
19+++ b/modules/ts/include/opencv2/ts.hpp 25+++ b/modules/ts/include/opencv2/ts.hpp
20@@ -539,7 +539,7 @@ protected: 26@@ -539,7 +539,7 @@ protected:
@@ -26,7 +32,15 @@ index c573905..7ff6cc1 100644
26 32
27 struct CV_EXPORTS DefaultRngAuto 33 struct CV_EXPORTS DefaultRngAuto
28 { 34 {
29@@ -602,7 +602,7 @@ void dumpOpenCLDevice(); 35@@ -595,14 +595,14 @@ CV_EXPORTS std::string findDataFile(const std::string& relative_path, bool requi
36
37 #ifdef HAVE_OPENCL
38 namespace ocl {
39-void dumpOpenCLDevice();
40+CV_EXPORTS void dumpOpenCLDevice();
41 }
42 #define TEST_DUMP_OCL_INFO cvtest::ocl::dumpOpenCLDevice();
43 #else
30 #define TEST_DUMP_OCL_INFO 44 #define TEST_DUMP_OCL_INFO
31 #endif 45 #endif
32 46
@@ -35,6 +49,19 @@ index c573905..7ff6cc1 100644
35 49
36 #define CV_TEST_MAIN(resourcesubdir, ...) \ 50 #define CV_TEST_MAIN(resourcesubdir, ...) \
37 int main(int argc, char **argv) \ 51 int main(int argc, char **argv) \
52diff --git a/modules/ts/include/opencv2/ts/ocl_test.hpp b/modules/ts/include/opencv2/ts/ocl_test.hpp
53index c967cd7..ff35b40 100644
54--- a/modules/ts/include/opencv2/ts/ocl_test.hpp
55+++ b/modules/ts/include/opencv2/ts/ocl_test.hpp
56@@ -84,7 +84,7 @@ inline UMat ToUMat(InputArray src)
57 return dst;
58 }
59
60-extern int test_loop_times;
61+CV_EXPORTS extern int test_loop_times;
62
63 #define MAX_VALUE 357
64
38diff --git a/modules/ts/include/opencv2/ts/ts_ext.hpp b/modules/ts/include/opencv2/ts/ts_ext.hpp 65diff --git a/modules/ts/include/opencv2/ts/ts_ext.hpp b/modules/ts/include/opencv2/ts/ts_ext.hpp
39index 05ccc63..8075065 100644 66index 05ccc63..8075065 100644
40--- a/modules/ts/include/opencv2/ts/ts_ext.hpp 67--- a/modules/ts/include/opencv2/ts/ts_ext.hpp
@@ -49,5 +76,5 @@ index 05ccc63..8075065 100644
49 76
50 #define CV_TEST_INIT \ 77 #define CV_TEST_INIT \
51-- 78--
522.7.4 792.9.4
53 80