diff options
Diffstat (limited to 'meta-xilinx-bsp/recipes-support/opencv/opencv_3.4.3/0003-To-fix-errors-as-following.patch')
-rw-r--r-- | meta-xilinx-bsp/recipes-support/opencv/opencv_3.4.3/0003-To-fix-errors-as-following.patch | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/meta-xilinx-bsp/recipes-support/opencv/opencv_3.4.3/0003-To-fix-errors-as-following.patch b/meta-xilinx-bsp/recipes-support/opencv/opencv_3.4.3/0003-To-fix-errors-as-following.patch new file mode 100644 index 00000000..336c2e08 --- /dev/null +++ b/meta-xilinx-bsp/recipes-support/opencv/opencv_3.4.3/0003-To-fix-errors-as-following.patch | |||
@@ -0,0 +1,70 @@ | |||
1 | From 867caccc358266f7021f076fc8c8e41bf048782c Mon Sep 17 00:00:00 2001 | ||
2 | From: Huang Qiyu <huangqy.fnst@cn.fujitsu.com> | ||
3 | Date: Fri, 19 May 2017 04:27:50 +0900 | ||
4 | Subject: [PATCH] To fix errors as following: | ||
5 | |||
6 | "test_main.cpp:45: undefined reference to `parseCustomOptions(int, char**)'" | ||
7 | "perf_abs.cpp:13: undefined reference to `cvtest::param_seed'" | ||
8 | "test_superres.cpp:270: undefined reference to `checkIppStatus()'" | ||
9 | |||
10 | Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com> | ||
11 | |||
12 | Also add the visibility changes for certain OpenCL-related functions in | ||
13 | ts module. | ||
14 | |||
15 | Signed-off-by: Ismo Puustinen <ismo.puustinen@intel.com> | ||
16 | |||
17 | --- | ||
18 | modules/ts/include/opencv2/ts.hpp | 4 ++-- | ||
19 | modules/ts/include/opencv2/ts/ocl_test.hpp | 2 +- | ||
20 | modules/ts/include/opencv2/ts/ts_ext.hpp | 2 +- | ||
21 | 3 files changed, 4 insertions(+), 4 deletions(-) | ||
22 | |||
23 | diff --git a/modules/ts/include/opencv2/ts.hpp b/modules/ts/include/opencv2/ts.hpp | ||
24 | index b9d6b74..f1ee7ee 100644 | ||
25 | --- a/modules/ts/include/opencv2/ts.hpp | ||
26 | +++ b/modules/ts/include/opencv2/ts.hpp | ||
27 | @@ -622,7 +622,7 @@ protected: | ||
28 | } | ||
29 | }; | ||
30 | |||
31 | -extern uint64 param_seed; | ||
32 | +CV_EXPORTS extern uint64 param_seed; | ||
33 | |||
34 | struct DefaultRngAuto | ||
35 | { | ||
36 | @@ -685,7 +685,7 @@ private: | ||
37 | #endif | ||
38 | #endif | ||
39 | |||
40 | -void parseCustomOptions(int argc, char **argv); | ||
41 | +CV_EXPORTS void parseCustomOptions(int argc, char **argv); | ||
42 | |||
43 | #define CV_TEST_INIT0_NOOP (void)0 | ||
44 | |||
45 | diff --git a/modules/ts/include/opencv2/ts/ocl_test.hpp b/modules/ts/include/opencv2/ts/ocl_test.hpp | ||
46 | index 11572e9..438112e 100644 | ||
47 | --- a/modules/ts/include/opencv2/ts/ocl_test.hpp | ||
48 | +++ b/modules/ts/include/opencv2/ts/ocl_test.hpp | ||
49 | @@ -82,7 +82,7 @@ inline UMat ToUMat(InputArray src) | ||
50 | return dst; | ||
51 | } | ||
52 | |||
53 | -extern int test_loop_times; | ||
54 | +CV_EXPORTS extern int test_loop_times; | ||
55 | |||
56 | #define MAX_VALUE 357 | ||
57 | |||
58 | diff --git a/modules/ts/include/opencv2/ts/ts_ext.hpp b/modules/ts/include/opencv2/ts/ts_ext.hpp | ||
59 | index b5cea3e..e5b0b4b 100644 | ||
60 | --- a/modules/ts/include/opencv2/ts/ts_ext.hpp | ||
61 | +++ b/modules/ts/include/opencv2/ts/ts_ext.hpp | ||
62 | @@ -9,7 +9,7 @@ | ||
63 | #define OPENCV_TS_EXT_HPP | ||
64 | |||
65 | namespace cvtest { | ||
66 | -void checkIppStatus(); | ||
67 | +CV_EXPORTS void checkIppStatus(); | ||
68 | extern bool skipUnstableTests; | ||
69 | extern bool runBigDataTests; | ||
70 | extern int testThreads; | ||