From: Martin Jansa <martin.jansa@gmail.com>
To: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Cc: openembedded-devel@lists.openembedded.org
Subject: Re: [meta-oe] [PATCH] opencv: Make opencv-ts create share library intead of static
Date: Tue, 16 May 2017 09:52:16 +0200 [thread overview]
Message-ID: <20170516075216.GA3088@jama> (raw)
In-Reply-To: <1494494868-44138-1-git-send-email-huangqy.fnst@cn.fujitsu.com>
[-- Attachment #1: Type: text/plain, Size: 5303 bytes --]
On Thu, May 11, 2017 at 05:27:48PM +0800, Huang Qiyu wrote:
> Refer to other distro,make opencv-ts create share library intead of static.
>
> Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
> ---
> ...-ts-create-share-library-intead-of-static.patch | 26 +++++++++++++
> .../opencv/0001-To-fix-errors-as-following.patch | 43 ++++++++++++++++++++++
> meta-oe/recipes-support/opencv/opencv_3.1.bb | 2 +
opencv_3.1.bb was removed from master some 4 months ago:
commit 75da410e4ec734930ff024041ac9f56cee9f7b8d
Author: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
AuthorDate: Thu Dec 29 14:35:08 2016 +0100
Commit: Martin Jansa <Martin.Jansa@gmail.com>
CommitDate: Tue Jan 10 13:12:55 2017 +0100
opencv: Update to version 3.2
Test your changes in _recent_ master before sending them!
Regards,
> 3 files changed, 71 insertions(+)
> create mode 100644 meta-oe/recipes-support/opencv/opencv/0001-Make-opencv-ts-create-share-library-intead-of-static.patch
> create mode 100644 meta-oe/recipes-support/opencv/opencv/0001-To-fix-errors-as-following.patch
>
> diff --git a/meta-oe/recipes-support/opencv/opencv/0001-Make-opencv-ts-create-share-library-intead-of-static.patch b/meta-oe/recipes-support/opencv/opencv/0001-Make-opencv-ts-create-share-library-intead-of-static.patch
> new file mode 100644
> index 0000000..05ec41f
> --- /dev/null
> +++ b/meta-oe/recipes-support/opencv/opencv/0001-Make-opencv-ts-create-share-library-intead-of-static.patch
> @@ -0,0 +1,26 @@
> +From 49d1f7c40a5d097f23671318045ac54bc07846cf Mon Sep 17 00:00:00 2001
> +From: Bian Naimeng <biannm@cn.fujitsu.com>
> +Date: Wed, 19 Apr 2017 03:11:37 +0900
> +Subject: [PATCH] Make opencv-ts create share library intead of static.
> +
> +Signed-off-by: Lei Maohui <leimaohui@cn.fujitsu.com>
> +---
> + modules/ts/CMakeLists.txt | 2 +-
> + 1 file changed, 1 insertion(+), 1 deletion(-)
> +
> +diff --git a/modules/ts/CMakeLists.txt b/modules/ts/CMakeLists.txt
> +index bb56da2..7bb4ce9 100644
> +--- a/modules/ts/CMakeLists.txt
> ++++ b/modules/ts/CMakeLists.txt
> +@@ -4,7 +4,7 @@ if(IOS)
> + ocv_module_disable(ts)
> + endif()
> +
> +-set(OPENCV_MODULE_TYPE STATIC)
> ++#set(OPENCV_MODULE_TYPE STATIC)
> + set(OPENCV_MODULE_IS_PART_OF_WORLD FALSE)
> +
> + ocv_warnings_disable(CMAKE_CXX_FLAGS -Wundef)
> +--
> +1.8.4.2
> +
> 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
> new file mode 100644
> index 0000000..40c4ad5
> --- /dev/null
> +++ b/meta-oe/recipes-support/opencv/opencv/0001-To-fix-errors-as-following.patch
> @@ -0,0 +1,43 @@
> +From 7eb2f7ea2fd1ede1d0ee0fafb660c8a62ac88127 Mon Sep 17 00:00:00 2001
> +From: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
> +Date: Thu, 11 May 2017 16:13:45 +0900
> +Subject: [PATCH] To fix errors as following:
> +
> +"test_main.cpp:45: undefined reference to `parseCustomOptions(int, char**)'"
> +"test_superres.cpp:270: undefined reference to `checkIppStatus()'"
> +
> +Signed-off-by: Lei Maohui <leimaohui@cn.fujitsu.com>
> +---
> + modules/ts/include/opencv2/ts.hpp | 2 +-
> + modules/ts/include/opencv2/ts/ts_ext.hpp | 2 +-
> + 2 files changed, 2 insertions(+), 2 deletions(-)
> +
> +diff --git a/modules/ts/include/opencv2/ts.hpp b/modules/ts/include/opencv2/ts.hpp
> +index e809f6b..d181e24 100644
> +--- a/modules/ts/include/opencv2/ts.hpp
> ++++ b/modules/ts/include/opencv2/ts.hpp
> +@@ -567,7 +567,7 @@ void dumpOpenCLDevice();
> + #define TEST_DUMP_OCL_INFO
> + #endif
> +
> +-void parseCustomOptions(int argc, char **argv);
> ++CV_EXPORTS void parseCustomOptions(int argc, char **argv);
> +
> + #define CV_TEST_MAIN(resourcesubdir, ...) \
> + int main(int argc, char **argv) \
> +diff --git a/modules/ts/include/opencv2/ts/ts_ext.hpp b/modules/ts/include/opencv2/ts/ts_ext.hpp
> +index 08039ba..8e72372 100644
> +--- a/modules/ts/include/opencv2/ts/ts_ext.hpp
> ++++ b/modules/ts/include/opencv2/ts/ts_ext.hpp
> +@@ -8,7 +8,7 @@
> + #ifndef __OPENCV_TS_EXT_HPP__
> + #define __OPENCV_TS_EXT_HPP__
> +
> +-void checkIppStatus();
> ++CV_EXPORTS void checkIppStatus();
> +
> + #undef TEST
> + #define TEST(test_case_name, test_name) \
> +--
> +2.7.4
> +
> diff --git a/meta-oe/recipes-support/opencv/opencv_3.1.bb b/meta-oe/recipes-support/opencv/opencv_3.1.bb
> index 1bbb965..52d44ba 100644
> --- a/meta-oe/recipes-support/opencv/opencv_3.1.bb
> +++ b/meta-oe/recipes-support/opencv/opencv_3.1.bb
> @@ -24,6 +24,8 @@ SRC_URI = "git://github.com/Itseez/opencv.git;name=opencv \
> file://0001-3rdparty-ippicv-Use-pre-downloaded-ipp.patch \
> file://fixgcc60.patch \
> file://fixpkgconfig.patch \
> + file://0001-Make-opencv-ts-create-share-library-intead-of-static.patch \
> + file://0001-To-fix-errors-as-following.patch \
> "
>
> PV = "3.1+git${SRCPV}"
> --
> 2.7.4
>
>
>
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 201 bytes --]
prev parent reply other threads:[~2017-05-16 7:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-11 9:27 [meta-oe] [PATCH] opencv: Make opencv-ts create share library intead of static Huang Qiyu
2017-05-16 7:52 ` Martin Jansa [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170516075216.GA3088@jama \
--to=martin.jansa@gmail.com \
--cc=huangqy.fnst@cn.fujitsu.com \
--cc=openembedded-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.