* [PATCH] opencv: fix compilation error when OpenCL is enabled.
@ 2017-06-07 11:08 Ismo Puustinen
2017-06-07 16:21 ` Leonardo Sandoval
0 siblings, 1 reply; 3+ messages in thread
From: Ismo Puustinen @ 2017-06-07 11:08 UTC (permalink / raw)
To: openembedded-devel
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>
---
.../opencv/0001-To-fix-errors-as-following.patch | 41 ++++++++++++++++++----
1 file 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 820ab81..9c1b9b3 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 @@
-From db1d9cc82b68f6593360d66ef40cb6b0fc377e6e Mon Sep 17 00:00:00 2001
+From a4abe478bf4514ec95aa10b2d6f258647ce325f5 Mon Sep 17 00:00:00 2001
From: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Date: Fri, 19 May 2017 04:27:50 +0900
Subject: [PATCH] To fix errors as following:
@@ -8,13 +8,19 @@ Subject: [PATCH] To fix errors as following:
"test_superres.cpp:270: undefined reference to `checkIppStatus()'"
Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
+
+Also add the visibility changes for certain OpenCL-related functions in
+ts module.
+
+Signed-off-by: Ismo Puustinen <ismo.puustinen@intel.com>
---
- modules/ts/include/opencv2/ts.hpp | 4 ++--
- modules/ts/include/opencv2/ts/ts_ext.hpp | 2 +-
- 2 files changed, 3 insertions(+), 3 deletions(-)
+ modules/ts/include/opencv2/ts.hpp | 6 +++---
+ modules/ts/include/opencv2/ts/ocl_test.hpp | 2 +-
+ modules/ts/include/opencv2/ts/ts_ext.hpp | 2 +-
+ 3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/modules/ts/include/opencv2/ts.hpp b/modules/ts/include/opencv2/ts.hpp
-index c573905..7ff6cc1 100644
+index c573905..230f598 100644
--- a/modules/ts/include/opencv2/ts.hpp
+++ b/modules/ts/include/opencv2/ts.hpp
@@ -539,7 +539,7 @@ protected:
@@ -26,7 +32,15 @@ index c573905..7ff6cc1 100644
struct CV_EXPORTS DefaultRngAuto
{
-@@ -602,7 +602,7 @@ void dumpOpenCLDevice();
+@@ -595,14 +595,14 @@ CV_EXPORTS std::string findDataFile(const std::string& relative_path, bool requi
+
+ #ifdef HAVE_OPENCL
+ namespace ocl {
+-void dumpOpenCLDevice();
++CV_EXPORTS void dumpOpenCLDevice();
+ }
+ #define TEST_DUMP_OCL_INFO cvtest::ocl::dumpOpenCLDevice();
+ #else
#define TEST_DUMP_OCL_INFO
#endif
@@ -35,6 +49,19 @@ index c573905..7ff6cc1 100644
#define CV_TEST_MAIN(resourcesubdir, ...) \
int main(int argc, char **argv) \
+diff --git a/modules/ts/include/opencv2/ts/ocl_test.hpp b/modules/ts/include/opencv2/ts/ocl_test.hpp
+index c967cd7..ff35b40 100644
+--- a/modules/ts/include/opencv2/ts/ocl_test.hpp
++++ b/modules/ts/include/opencv2/ts/ocl_test.hpp
+@@ -84,7 +84,7 @@ inline UMat ToUMat(InputArray src)
+ return dst;
+ }
+
+-extern int test_loop_times;
++CV_EXPORTS extern int test_loop_times;
+
+ #define MAX_VALUE 357
+
diff --git a/modules/ts/include/opencv2/ts/ts_ext.hpp b/modules/ts/include/opencv2/ts/ts_ext.hpp
index 05ccc63..8075065 100644
--- a/modules/ts/include/opencv2/ts/ts_ext.hpp
@@ -49,5 +76,5 @@ index 05ccc63..8075065 100644
#define CV_TEST_INIT \
--
-2.7.4
+2.9.4
--
2.9.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] opencv: fix compilation error when OpenCL is enabled.
2017-06-07 11:08 [PATCH] opencv: fix compilation error when OpenCL is enabled Ismo Puustinen
@ 2017-06-07 16:21 ` Leonardo Sandoval
2017-06-07 21:46 ` Puustinen, Ismo
0 siblings, 1 reply; 3+ messages in thread
From: Leonardo Sandoval @ 2017-06-07 16:21 UTC (permalink / raw)
To: Ismo Puustinen; +Cc: openembedded-devel
On Wed, 2017-06-07 at 14:08 +0300, Ismo Puustinen wrote:
> 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>
> ---
> .../opencv/0001-To-fix-errors-as-following.patch | 41 ++++++++++++++++++----
> 1 file changed, 34 insertions(+), 7 deletions(-)
>
no bb change to include this patch?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] opencv: fix compilation error when OpenCL is enabled.
2017-06-07 16:21 ` Leonardo Sandoval
@ 2017-06-07 21:46 ` Puustinen, Ismo
0 siblings, 0 replies; 3+ messages in thread
From: Puustinen, Ismo @ 2017-06-07 21:46 UTC (permalink / raw)
To: Leonardo Sandoval; +Cc: openembedded-devel@lists.openembedded.org
> > 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>
> > ---
> > .../opencv/0001-To-fix-errors-as-following.patch | 41
> ++++++++++++++++++----
> > 1 file changed, 34 insertions(+), 7 deletions(-)
> >
>
> no bb change to include this patch?
No, I amended the already-submitted patch (from 2e6d62fd47b9e6a859175ec5521f6ce2505f4b23). That patch was just missing two or three symbols which were not exported, and all the changes seemed to belong into one patch.
I can also just add another patch if it seems a better approach and add it to the recipe. I was just thinking that it would be cleaner to do it with just one patch.
Ismo
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-06-07 21:46 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-07 11:08 [PATCH] opencv: fix compilation error when OpenCL is enabled Ismo Puustinen
2017-06-07 16:21 ` Leonardo Sandoval
2017-06-07 21:46 ` Puustinen, Ismo
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.