1From f42c9b8c7bafcadc7e95fb25a391707f970eb426 Mon Sep 17 00:00:00 2001 2From: Huang Qiyu <huangqy.fnst@cn.fujitsu.com> 3Date: Fri, 19 May 2017 04:27:50 +0900 4Subject: [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 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> 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 23diff --git a/modules/ts/include/opencv2/ts.hpp b/modules/ts/include/opencv2/ts.hpp 24index ed7491a89a..80919d13ee 100644 25--- a/modules/ts/include/opencv2/ts.hpp 26+++ b/modules/ts/include/opencv2/ts.hpp 27@@ -728,7 +728,7 @@ protected: 28 } 29 }; 30 31-extern uint64 param_seed; 32+CV_EXPORTS extern uint64 param_seed; 33 34 struct DefaultRngAuto 35 { 36@@ -791,7 +791,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 45diff --git a/modules/ts/include/opencv2/ts/ocl_test.hpp b/modules/ts/include/opencv2/ts/ocl_test.hpp 46index 11572e9f48..438112e2aa 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 58diff --git a/modules/ts/include/opencv2/ts/ts_ext.hpp b/modules/ts/include/opencv2/ts/ts_ext.hpp 59index b2a4cac241..b94c681c0c 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; 71