Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 1 | From ace48a628dca34d742615598afeef42ed323a029 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 3/3] 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 | modules/ts/include/opencv2/ts.hpp | 6 +++--- |
| 18 | modules/ts/include/opencv2/ts/ocl_test.hpp | 2 +- |
| 19 | modules/ts/include/opencv2/ts/ts_ext.hpp | 2 +- |
| 20 | 3 files changed, 5 insertions(+), 5 deletions(-) |
| 21 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame^] | 22 | Index: git/modules/ts/include/opencv2/ts.hpp |
| 23 | =================================================================== |
| 24 | --- git.orig/modules/ts/include/opencv2/ts.hpp |
| 25 | +++ git/modules/ts/include/opencv2/ts.hpp |
| 26 | @@ -608,7 +608,7 @@ protected: |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 27 | } |
| 28 | }; |
| 29 | |
| 30 | -extern uint64 param_seed; |
| 31 | +CV_EXPORTS extern uint64 param_seed; |
| 32 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame^] | 33 | struct DefaultRngAuto |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 34 | { |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame^] | 35 | @@ -671,7 +671,7 @@ private: |
| 36 | #endif |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 37 | #endif |
| 38 | |
| 39 | -void parseCustomOptions(int argc, char **argv); |
| 40 | +CV_EXPORTS void parseCustomOptions(int argc, char **argv); |
| 41 | |
| 42 | #define CV_TEST_INIT0_NOOP (void)0 |
| 43 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame^] | 44 | Index: git/modules/ts/include/opencv2/ts/ocl_test.hpp |
| 45 | =================================================================== |
| 46 | --- git.orig/modules/ts/include/opencv2/ts/ocl_test.hpp |
| 47 | +++ git/modules/ts/include/opencv2/ts/ocl_test.hpp |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 48 | @@ -82,7 +82,7 @@ inline UMat ToUMat(InputArray src) |
| 49 | return dst; |
| 50 | } |
| 51 | |
| 52 | -extern int test_loop_times; |
| 53 | +CV_EXPORTS extern int test_loop_times; |
| 54 | |
| 55 | #define MAX_VALUE 357 |
| 56 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame^] | 57 | Index: git/modules/ts/include/opencv2/ts/ts_ext.hpp |
| 58 | =================================================================== |
| 59 | --- git.orig/modules/ts/include/opencv2/ts/ts_ext.hpp |
| 60 | +++ git/modules/ts/include/opencv2/ts/ts_ext.hpp |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 61 | @@ -9,7 +9,7 @@ |
| 62 | #define OPENCV_TS_EXT_HPP |
| 63 | |
| 64 | namespace cvtest { |
| 65 | -void checkIppStatus(); |
| 66 | +CV_EXPORTS void checkIppStatus(); |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame^] | 67 | extern bool skipUnstableTests; |
| 68 | extern bool runBigDataTests; |
| 69 | extern int testThreads; |