summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChin Huat Ang <chin.huat.ang@intel.com>2019-06-28 05:46:21 +0800
committerKhem Raj <raj.khem@gmail.com>2019-07-10 09:24:32 -0700
commite701e2d5c96efbb3d9b9adb800e8a9cdb61a3f84 (patch)
tree6bcb8ebb106950ea48f5072c60279e1ca87ad3bc
parent7db5a3051198380c76acdb6aad036e6ef1558212 (diff)
downloadmeta-openembedded-e701e2d5c96efbb3d9b9adb800e8a9cdb61a3f84.tar.gz
opencv: 3.4.5 -> 4.1.0
Update both opencv and opencv_contrib to 4.1.0 and refresh all patches. Remove tiny-dnn from SRC_URI as it is not picked up by opencv cmake build system. This also fixes a QA warning about using unstable github archive. Also update FILES_* to capture new paths which uses new directory name "opencv4" instead of "OpenCV". Signed-off-by: Chin Huat Ang <chin.huat.ang@intel.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-oe/recipes-support/opencv/opencv/0001-3rdparty-ippicv-Use-pre-downloaded-ipp.patch8
-rw-r--r--meta-oe/recipes-support/opencv/opencv/0001-Dont-use-isystem.patch8
-rw-r--r--meta-oe/recipes-support/opencv/opencv/0001-Temporarliy-work-around-deprecated-ffmpeg-RAW-functi.patch10
-rw-r--r--meta-oe/recipes-support/opencv/opencv/0002-Make-opencv-ts-create-share-library-intead-of-static.patch10
-rw-r--r--meta-oe/recipes-support/opencv/opencv/0003-To-fix-errors-as-following.patch37
-rw-r--r--meta-oe/recipes-support/opencv/opencv/fixpkgconfig.patch30
-rw-r--r--meta-oe/recipes-support/opencv/opencv/uselocalxfeatures.patch20
-rw-r--r--meta-oe/recipes-support/opencv/opencv_4.1.0.bb (renamed from meta-oe/recipes-support/opencv/opencv_3.4.5.bb)46
8 files changed, 51 insertions, 118 deletions
diff --git a/meta-oe/recipes-support/opencv/opencv/0001-3rdparty-ippicv-Use-pre-downloaded-ipp.patch b/meta-oe/recipes-support/opencv/opencv/0001-3rdparty-ippicv-Use-pre-downloaded-ipp.patch
index 4d76ad40c..5f909c1a8 100644
--- a/meta-oe/recipes-support/opencv/opencv/0001-3rdparty-ippicv-Use-pre-downloaded-ipp.patch
+++ b/meta-oe/recipes-support/opencv/opencv/0001-3rdparty-ippicv-Use-pre-downloaded-ipp.patch
@@ -1,16 +1,17 @@
1From 4801a057730632225337d7f6d26b9335e6b9b078 Mon Sep 17 00:00:00 2001 1From 85b882b4ceb57fe6538f47af58d0a970923fde0e Mon Sep 17 00:00:00 2001
2From: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com> 2From: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
3Date: Thu, 31 Mar 2016 00:20:15 +0200 3Date: Thu, 31 Mar 2016 00:20:15 +0200
4Subject: [PATCH] 3rdparty/ippicv: Use pre-downloaded ipp 4Subject: [PATCH] 3rdparty/ippicv: Use pre-downloaded ipp
5 5
6Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com> 6Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
7Signed-off-by: Ismo Puustinen <ismo.puustinen@intel.com> 7Signed-off-by: Ismo Puustinen <ismo.puustinen@intel.com>
8
8--- 9---
9 3rdparty/ippicv/ippicv.cmake | 15 +-------------- 10 3rdparty/ippicv/ippicv.cmake | 15 +--------------
10 1 file changed, 1 insertion(+), 14 deletions(-) 11 1 file changed, 1 insertion(+), 14 deletions(-)
11 12
12diff --git a/3rdparty/ippicv/ippicv.cmake b/3rdparty/ippicv/ippicv.cmake 13diff --git a/3rdparty/ippicv/ippicv.cmake b/3rdparty/ippicv/ippicv.cmake
13index d601da4bb..f6fc1098c 100644 14index ae8748c..305abdb 100644
14--- a/3rdparty/ippicv/ippicv.cmake 15--- a/3rdparty/ippicv/ippicv.cmake
15+++ b/3rdparty/ippicv/ippicv.cmake 16+++ b/3rdparty/ippicv/ippicv.cmake
16@@ -39,18 +39,5 @@ function(download_ippicv root_var) 17@@ -39,18 +39,5 @@ function(download_ippicv root_var)
@@ -33,6 +34,3 @@ index d601da4bb..f6fc1098c 100644
33- endif() 34- endif()
34+ set(${root_var} "${THE_ROOT}/${OPENCV_ICV_PACKAGE_SUBDIR}" PARENT_SCOPE) 35+ set(${root_var} "${THE_ROOT}/${OPENCV_ICV_PACKAGE_SUBDIR}" PARENT_SCOPE)
35 endfunction() 36 endfunction()
36--
372.13.4
38
diff --git a/meta-oe/recipes-support/opencv/opencv/0001-Dont-use-isystem.patch b/meta-oe/recipes-support/opencv/opencv/0001-Dont-use-isystem.patch
index bf0b80a30..40d3f53e1 100644
--- a/meta-oe/recipes-support/opencv/opencv/0001-Dont-use-isystem.patch
+++ b/meta-oe/recipes-support/opencv/opencv/0001-Dont-use-isystem.patch
@@ -1,4 +1,4 @@
1From 7144c44ec70dee73a628463b99ffeed74b1a8ef6 Mon Sep 17 00:00:00 2001 1From 9659f5a1e75fc29c9879c301767bba72ecf9042a Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 11 Sep 2018 00:21:18 -0700 3Date: Tue, 11 Sep 2018 00:21:18 -0700
4Subject: [PATCH] Dont use isystem 4Subject: [PATCH] Dont use isystem
@@ -8,12 +8,13 @@ clang really does not like it
8Upstream-Status: Pending 8Upstream-Status: Pending
9 9
10Signed-off-by: Khem Raj <raj.khem@gmail.com> 10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11
11--- 12---
12 cmake/OpenCVPCHSupport.cmake | 2 ++ 13 cmake/OpenCVPCHSupport.cmake | 2 ++
13 1 file changed, 2 insertions(+) 14 1 file changed, 2 insertions(+)
14 15
15diff --git a/cmake/OpenCVPCHSupport.cmake b/cmake/OpenCVPCHSupport.cmake 16diff --git a/cmake/OpenCVPCHSupport.cmake b/cmake/OpenCVPCHSupport.cmake
16index f9b1b48b65..fe27a136f5 100644 17index 59bc826..055dfce 100644
17--- a/cmake/OpenCVPCHSupport.cmake 18--- a/cmake/OpenCVPCHSupport.cmake
18+++ b/cmake/OpenCVPCHSupport.cmake 19+++ b/cmake/OpenCVPCHSupport.cmake
19@@ -18,6 +18,8 @@ IF(CV_GCC) 20@@ -18,6 +18,8 @@ IF(CV_GCC)
@@ -25,6 +26,3 @@ index f9b1b48b65..fe27a136f5 100644
25 SET(_PCH_include_prefix "-I") 26 SET(_PCH_include_prefix "-I")
26 SET(_PCH_isystem_prefix "-isystem") 27 SET(_PCH_isystem_prefix "-isystem")
27 SET(_PCH_define_prefix "-D") 28 SET(_PCH_define_prefix "-D")
28--
292.18.0
30
diff --git a/meta-oe/recipes-support/opencv/opencv/0001-Temporarliy-work-around-deprecated-ffmpeg-RAW-functi.patch b/meta-oe/recipes-support/opencv/opencv/0001-Temporarliy-work-around-deprecated-ffmpeg-RAW-functi.patch
index 63cb7f943..f8ccd1d55 100644
--- a/meta-oe/recipes-support/opencv/opencv/0001-Temporarliy-work-around-deprecated-ffmpeg-RAW-functi.patch
+++ b/meta-oe/recipes-support/opencv/opencv/0001-Temporarliy-work-around-deprecated-ffmpeg-RAW-functi.patch
@@ -1,19 +1,20 @@
1From 7d31f41d2a6759e244983504ce855fc32916b97a Mon Sep 17 00:00:00 2001 1From fe27d0e2341683606704115949d16250e4cacbfa Mon Sep 17 00:00:00 2001
2From: Jason Wessel <jason.wessel@windriver.com> 2From: Jason Wessel <jason.wessel@windriver.com>
3Date: Wed, 9 May 2018 13:33:59 -0700 3Date: Wed, 9 May 2018 13:33:59 -0700
4Subject: [PATCH] Temporarliy work around deprecated ffmpeg RAW function 4Subject: [PATCH] Temporarliy work around deprecated ffmpeg RAW function
5 compile failure until next uprev 5 compile failure until next uprev
6 6
7Signed-off-by: Jason Wessel <jason.wessel@windriver.com> 7Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
8
8--- 9---
9 modules/videoio/src/cap_ffmpeg_impl.hpp | 8 ++++++++ 10 modules/videoio/src/cap_ffmpeg_impl.hpp | 8 ++++++++
10 1 file changed, 8 insertions(+) 11 1 file changed, 8 insertions(+)
11 12
12diff --git a/modules/videoio/src/cap_ffmpeg_impl.hpp b/modules/videoio/src/cap_ffmpeg_impl.hpp 13diff --git a/modules/videoio/src/cap_ffmpeg_impl.hpp b/modules/videoio/src/cap_ffmpeg_impl.hpp
13index 5a9b10f075..97c6b74b07 100644 14index 0d360ad..566df66 100644
14--- a/modules/videoio/src/cap_ffmpeg_impl.hpp 15--- a/modules/videoio/src/cap_ffmpeg_impl.hpp
15+++ b/modules/videoio/src/cap_ffmpeg_impl.hpp 16+++ b/modules/videoio/src/cap_ffmpeg_impl.hpp
16@@ -667,6 +667,14 @@ struct ImplMutex::Impl 17@@ -736,6 +736,14 @@ struct ImplMutex::Impl
17 18
18 #endif 19 #endif
19 20
@@ -28,6 +29,3 @@ index 5a9b10f075..97c6b74b07 100644
28 void ImplMutex::init() 29 void ImplMutex::init()
29 { 30 {
30 impl = new Impl(); 31 impl = new Impl();
31--
322.11.0
33
diff --git a/meta-oe/recipes-support/opencv/opencv/0002-Make-opencv-ts-create-share-library-intead-of-static.patch b/meta-oe/recipes-support/opencv/opencv/0002-Make-opencv-ts-create-share-library-intead-of-static.patch
index a845505a8..46198fb7b 100644
--- a/meta-oe/recipes-support/opencv/opencv/0002-Make-opencv-ts-create-share-library-intead-of-static.patch
+++ b/meta-oe/recipes-support/opencv/opencv/0002-Make-opencv-ts-create-share-library-intead-of-static.patch
@@ -1,15 +1,16 @@
1From 350525293aef65490e80104ddd99e1b21c5d54b0 Mon Sep 17 00:00:00 2001 1From 46ffa1f8f443b71673774fcb864eb741bbc26200 Mon Sep 17 00:00:00 2001
2From: Bian Naimeng <biannm@cn.fujitsu.com> 2From: Bian Naimeng <biannm@cn.fujitsu.com>
3Date: Wed, 19 Apr 2017 03:11:37 +0900 3Date: Wed, 19 Apr 2017 03:11:37 +0900
4Subject: [PATCH 2/3] Make opencv-ts create share library intead of static. 4Subject: [PATCH] Make opencv-ts create share library intead of static.
5 5
6Signed-off-by: Lei Maohui <leimaohui@cn.fujitsu.com> 6Signed-off-by: Lei Maohui <leimaohui@cn.fujitsu.com>
7
7--- 8---
8 modules/ts/CMakeLists.txt | 2 +- 9 modules/ts/CMakeLists.txt | 2 +-
9 1 file changed, 1 insertion(+), 1 deletion(-) 10 1 file changed, 1 insertion(+), 1 deletion(-)
10 11
11diff --git a/modules/ts/CMakeLists.txt b/modules/ts/CMakeLists.txt 12diff --git a/modules/ts/CMakeLists.txt b/modules/ts/CMakeLists.txt
12index f95bed079..ee67858df 100644 13index f95bed0..ee67858 100644
13--- a/modules/ts/CMakeLists.txt 14--- a/modules/ts/CMakeLists.txt
14+++ b/modules/ts/CMakeLists.txt 15+++ b/modules/ts/CMakeLists.txt
15@@ -4,7 +4,7 @@ if(NOT BUILD_opencv_ts AND NOT BUILD_TESTS AND NOT BUILD_PERF_TESTS) 16@@ -4,7 +4,7 @@ if(NOT BUILD_opencv_ts AND NOT BUILD_TESTS AND NOT BUILD_PERF_TESTS)
@@ -21,6 +22,3 @@ index f95bed079..ee67858df 100644
21 set(OPENCV_MODULE_IS_PART_OF_WORLD FALSE) 22 set(OPENCV_MODULE_IS_PART_OF_WORLD FALSE)
22 23
23 if(WINRT) 24 if(WINRT)
24--
252.13.4
26
diff --git a/meta-oe/recipes-support/opencv/opencv/0003-To-fix-errors-as-following.patch b/meta-oe/recipes-support/opencv/opencv/0003-To-fix-errors-as-following.patch
index 5270b8c9f..336c2e08e 100644
--- a/meta-oe/recipes-support/opencv/opencv/0003-To-fix-errors-as-following.patch
+++ b/meta-oe/recipes-support/opencv/opencv/0003-To-fix-errors-as-following.patch
@@ -1,7 +1,7 @@
1From ace48a628dca34d742615598afeef42ed323a029 Mon Sep 17 00:00:00 2001 1From 867caccc358266f7021f076fc8c8e41bf048782c Mon Sep 17 00:00:00 2001
2From: Huang Qiyu <huangqy.fnst@cn.fujitsu.com> 2From: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
3Date: Fri, 19 May 2017 04:27:50 +0900 3Date: Fri, 19 May 2017 04:27:50 +0900
4Subject: [PATCH 3/3] To fix errors as following: 4Subject: [PATCH] To fix errors as following:
5 5
6"test_main.cpp:45: undefined reference to `parseCustomOptions(int, char**)'" 6"test_main.cpp:45: undefined reference to `parseCustomOptions(int, char**)'"
7"perf_abs.cpp:13: undefined reference to `cvtest::param_seed'" 7"perf_abs.cpp:13: undefined reference to `cvtest::param_seed'"
@@ -13,17 +13,18 @@ Also add the visibility changes for certain OpenCL-related functions in
13ts module. 13ts module.
14 14
15Signed-off-by: Ismo Puustinen <ismo.puustinen@intel.com> 15Signed-off-by: Ismo Puustinen <ismo.puustinen@intel.com>
16
16--- 17---
17 modules/ts/include/opencv2/ts.hpp | 6 +++--- 18 modules/ts/include/opencv2/ts.hpp | 4 ++--
18 modules/ts/include/opencv2/ts/ocl_test.hpp | 2 +- 19 modules/ts/include/opencv2/ts/ocl_test.hpp | 2 +-
19 modules/ts/include/opencv2/ts/ts_ext.hpp | 2 +- 20 modules/ts/include/opencv2/ts/ts_ext.hpp | 2 +-
20 3 files changed, 5 insertions(+), 5 deletions(-) 21 3 files changed, 4 insertions(+), 4 deletions(-)
21 22
22Index: git/modules/ts/include/opencv2/ts.hpp 23diff --git a/modules/ts/include/opencv2/ts.hpp b/modules/ts/include/opencv2/ts.hpp
23=================================================================== 24index b9d6b74..f1ee7ee 100644
24--- git.orig/modules/ts/include/opencv2/ts.hpp 25--- a/modules/ts/include/opencv2/ts.hpp
25+++ git/modules/ts/include/opencv2/ts.hpp 26+++ b/modules/ts/include/opencv2/ts.hpp
26@@ -608,7 +608,7 @@ protected: 27@@ -622,7 +622,7 @@ protected:
27 } 28 }
28 }; 29 };
29 30
@@ -32,7 +33,7 @@ Index: git/modules/ts/include/opencv2/ts.hpp
32 33
33 struct DefaultRngAuto 34 struct DefaultRngAuto
34 { 35 {
35@@ -671,7 +671,7 @@ private: 36@@ -685,7 +685,7 @@ private:
36 #endif 37 #endif
37 #endif 38 #endif
38 39
@@ -41,10 +42,10 @@ Index: git/modules/ts/include/opencv2/ts.hpp
41 42
42 #define CV_TEST_INIT0_NOOP (void)0 43 #define CV_TEST_INIT0_NOOP (void)0
43 44
44Index: git/modules/ts/include/opencv2/ts/ocl_test.hpp 45diff --git a/modules/ts/include/opencv2/ts/ocl_test.hpp b/modules/ts/include/opencv2/ts/ocl_test.hpp
45=================================================================== 46index 11572e9..438112e 100644
46--- git.orig/modules/ts/include/opencv2/ts/ocl_test.hpp 47--- a/modules/ts/include/opencv2/ts/ocl_test.hpp
47+++ git/modules/ts/include/opencv2/ts/ocl_test.hpp 48+++ b/modules/ts/include/opencv2/ts/ocl_test.hpp
48@@ -82,7 +82,7 @@ inline UMat ToUMat(InputArray src) 49@@ -82,7 +82,7 @@ inline UMat ToUMat(InputArray src)
49 return dst; 50 return dst;
50 } 51 }
@@ -54,10 +55,10 @@ Index: git/modules/ts/include/opencv2/ts/ocl_test.hpp
54 55
55 #define MAX_VALUE 357 56 #define MAX_VALUE 357
56 57
57Index: git/modules/ts/include/opencv2/ts/ts_ext.hpp 58diff --git a/modules/ts/include/opencv2/ts/ts_ext.hpp b/modules/ts/include/opencv2/ts/ts_ext.hpp
58=================================================================== 59index b5cea3e..e5b0b4b 100644
59--- git.orig/modules/ts/include/opencv2/ts/ts_ext.hpp 60--- a/modules/ts/include/opencv2/ts/ts_ext.hpp
60+++ git/modules/ts/include/opencv2/ts/ts_ext.hpp 61+++ b/modules/ts/include/opencv2/ts/ts_ext.hpp
61@@ -9,7 +9,7 @@ 62@@ -9,7 +9,7 @@
62 #define OPENCV_TS_EXT_HPP 63 #define OPENCV_TS_EXT_HPP
63 64
diff --git a/meta-oe/recipes-support/opencv/opencv/fixpkgconfig.patch b/meta-oe/recipes-support/opencv/opencv/fixpkgconfig.patch
deleted file mode 100644
index 3ed3468d5..000000000
--- a/meta-oe/recipes-support/opencv/opencv/fixpkgconfig.patch
+++ /dev/null
@@ -1,30 +0,0 @@
1Index: git/cmake/OpenCVGenPkgconfig.cmake
2===================================================================
3--- git.orig/cmake/OpenCVGenPkgconfig.cmake
4+++ git/cmake/OpenCVGenPkgconfig.cmake
5@@ -31,7 +31,7 @@ macro(fix_prefix lst isown)
6 get_filename_component(libdir "${item}" PATH)
7 get_filename_component(_libname "${item}" NAME)
8 ocv_get_libname(libname "${_libname}")
9- list(APPEND _lst "-L${libdir}" "-l${libname}")
10+ list(APPEND _lst "-l${libname}")
11 else()
12 list(APPEND _lst "-l${item}")
13 endif()
14@@ -124,11 +124,14 @@ ocv_list_unique(_extra)
15 ocv_list_unique(_3rdparty)
16
17 set(OPENCV_PC_LIBS
18- "-L\${exec_prefix}/${OPENCV_LIB_INSTALL_PATH}"
19+ "-L\${exec_prefix}/${OPENCV_3P_LIB_INSTALL_PATH}"
20 "${_modules}"
21 )
22 if(BUILD_SHARED_LIBS)
23- set(OPENCV_PC_LIBS_PRIVATE "${_extra}")
24+ set(OPENCV_PC_LIBS_PRIVATE
25+ "-L\${exec_prefix}/${OPENCV_LIB_INSTALL_PATH}"
26+ "${_extra}"
27+ )
28 else()
29 set(OPENCV_PC_LIBS_PRIVATE
30 "-L\${exec_prefix}/${OPENCV_3P_LIB_INSTALL_PATH}"
diff --git a/meta-oe/recipes-support/opencv/opencv/uselocalxfeatures.patch b/meta-oe/recipes-support/opencv/opencv/uselocalxfeatures.patch
deleted file mode 100644
index fc273a891..000000000
--- a/meta-oe/recipes-support/opencv/opencv/uselocalxfeatures.patch
+++ /dev/null
@@ -1,20 +0,0 @@
1diff --git a/modules/xfeatures2d/CMakeLists.txt b/modules/xfeatures2d/CMakeLists.txt
2index e1755595..c7009c47 100644
3--- a/modules/xfeatures2d/CMakeLists.txt
4+++ b/modules/xfeatures2d/CMakeLists.txt
5@@ -5,10 +5,10 @@ ocv_define_module(xfeatures2d opencv_core opencv_imgproc opencv_features2d openc
6 include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/download_vgg.cmake)
7 include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/download_boostdesc.cmake)
8 set(DOWNLOAD_DIR "${OpenCV_BINARY_DIR}/downloads/xfeatures2d")
9-download_boost_descriptors("${DOWNLOAD_DIR}" boost_status)
10-download_vgg_descriptors("${DOWNLOAD_DIR}" vgg_status)
11-if(NOT boost_status OR NOT vgg_status)
12- ocv_module_disable(xfeatures2d)
13-endif()
14+#download_boost_descriptors("${DOWNLOAD_DIR}" boost_status)
15+#download_vgg_descriptors("${DOWNLOAD_DIR}" vgg_status)
16+#if(NOT boost_status OR NOT vgg_status)
17+# ocv_module_disable(xfeatures2d)
18+#endif()
19
20 ocv_module_include_directories("${DOWNLOAD_DIR}")
diff --git a/meta-oe/recipes-support/opencv/opencv_3.4.5.bb b/meta-oe/recipes-support/opencv/opencv_4.1.0.bb
index ce60698b2..77b5dd60c 100644
--- a/meta-oe/recipes-support/opencv/opencv_3.4.5.bb
+++ b/meta-oe/recipes-support/opencv/opencv_4.1.0.bb
@@ -3,20 +3,18 @@ HOMEPAGE = "http://opencv.org/"
3SECTION = "libs" 3SECTION = "libs"
4 4
5LICENSE = "BSD-3-Clause" 5LICENSE = "BSD-3-Clause"
6LIC_FILES_CHKSUM = "file://LICENSE;md5=62d89c5dcb0583609ea919c56be0ee76" 6LIC_FILES_CHKSUM = "file://LICENSE;md5=6450921bb12a3133c8f5cb2a80343710"
7 7
8ARM_INSTRUCTION_SET_armv4 = "arm" 8ARM_INSTRUCTION_SET_armv4 = "arm"
9ARM_INSTRUCTION_SET_armv5 = "arm" 9ARM_INSTRUCTION_SET_armv5 = "arm"
10 10
11DEPENDS = "libtool swig-native bzip2 zlib glib-2.0 libwebp" 11DEPENDS = "libtool swig-native bzip2 zlib glib-2.0 libwebp"
12 12
13SRCREV_opencv = "8f1356c3c5b16721349582db461a2051653059e8" 13SRCREV_opencv = "371bba8f54560b374fbcd47e7e02f015ac4969ad"
14SRCREV_contrib = "7292df62624ded8af8035231435dfd17c93e1a80" 14SRCREV_contrib = "2c32791a9c500343568a21ea34bf2daeac2adae7"
15SRCREV_ipp = "32e315a5b106a7b89dbed51c28f8120a48b368b4" 15SRCREV_ipp = "32e315a5b106a7b89dbed51c28f8120a48b368b4"
16SRCREV_boostdesc = "34e4206aef44d50e6bbcd0ab06354b52e7466d26" 16SRCREV_boostdesc = "34e4206aef44d50e6bbcd0ab06354b52e7466d26"
17SRCREV_vgg = "fccf7cd6a4b12079f73bbfb21745f9babcd4eb1d" 17SRCREV_vgg = "fccf7cd6a4b12079f73bbfb21745f9babcd4eb1d"
18SRC_URI[tinydnn.md5sum] = "adb1c512e09ca2c7a6faef36f9c53e59"
19SRC_URI[tinydnn.sha256sum] = "e2c61ce8c5debaa644121179e9dbdcf83f497f39de853f8dd5175846505aa18b"
20 18
21def ipp_filename(d): 19def ipp_filename(d):
22 import re 20 import re
@@ -39,26 +37,21 @@ IPP_MD5 = "${@ipp_md5sum(d)}"
39 37
40SRCREV_FORMAT = "opencv_contrib_ipp_boostdesc_vgg" 38SRCREV_FORMAT = "opencv_contrib_ipp_boostdesc_vgg"
41SRC_URI = "git://github.com/opencv/opencv.git;name=opencv \ 39SRC_URI = "git://github.com/opencv/opencv.git;name=opencv \
42 git://github.com/opencv/opencv_contrib.git;destsuffix=contrib;name=contrib \ 40 git://github.com/opencv/opencv_contrib.git;destsuffix=contrib;name=contrib \
43 git://github.com/opencv/opencv_3rdparty.git;branch=ippicv/master_20180723;destsuffix=ipp;name=ipp \ 41 git://github.com/opencv/opencv_3rdparty.git;branch=ippicv/master_20180723;destsuffix=ipp;name=ipp \
44 git://github.com/opencv/opencv_3rdparty.git;branch=contrib_xfeatures2d_boostdesc_20161012;destsuffix=boostdesc;name=boostdesc \ 42 git://github.com/opencv/opencv_3rdparty.git;branch=contrib_xfeatures2d_boostdesc_20161012;destsuffix=boostdesc;name=boostdesc \
45 git://github.com/opencv/opencv_3rdparty.git;branch=contrib_xfeatures2d_vgg_20160317;destsuffix=vgg;name=vgg \ 43 git://github.com/opencv/opencv_3rdparty.git;branch=contrib_xfeatures2d_vgg_20160317;destsuffix=vgg;name=vgg \
46 https://github.com/tiny-dnn/tiny-dnn/archive/v1.0.0a3.tar.gz;destsuffix=git/3rdparty/tinydnn/tiny-dnn-1.0.0a3;name=tinydnn;unpack=false \ 44 file://0001-3rdparty-ippicv-Use-pre-downloaded-ipp.patch \
47 file://0001-3rdparty-ippicv-Use-pre-downloaded-ipp.patch \ 45 file://0002-Make-opencv-ts-create-share-library-intead-of-static.patch \
48 file://uselocalxfeatures.patch;patchdir=../contrib/ \ 46 file://0003-To-fix-errors-as-following.patch \
49 file://0002-Make-opencv-ts-create-share-library-intead-of-static.patch \ 47 file://0001-Temporarliy-work-around-deprecated-ffmpeg-RAW-functi.patch \
50 file://0003-To-fix-errors-as-following.patch \ 48 file://0001-Dont-use-isystem.patch \
51 file://fixpkgconfig.patch \ 49 "
52 file://0001-Temporarliy-work-around-deprecated-ffmpeg-RAW-functi.patch \ 50PV = "4.1.0"
53 file://0001-Dont-use-isystem.patch \
54"
55PV = "3.4.5"
56 51
57S = "${WORKDIR}/git" 52S = "${WORKDIR}/git"
58 53
59do_unpack_extra() { 54do_unpack_extra() {
60 mkdir -p ${S}/3rdparty/tinydnn/
61 tar xzf ${WORKDIR}/v1.0.0a3.tar.gz -C ${S}/3rdparty/tinydnn/
62 tar xzf ${WORKDIR}/ipp/ippicv/${IPP_FILENAME} -C ${WORKDIR} 55 tar xzf ${WORKDIR}/ipp/ippicv/${IPP_FILENAME} -C ${WORKDIR}
63 cp ${WORKDIR}/vgg/*.i ${WORKDIR}/contrib/modules/xfeatures2d/src 56 cp ${WORKDIR}/vgg/*.i ${WORKDIR}/contrib/modules/xfeatures2d/src
64 cp ${WORKDIR}/boostdesc/*.i ${WORKDIR}/contrib/modules/xfeatures2d/src 57 cp ${WORKDIR}/boostdesc/*.i ${WORKDIR}/contrib/modules/xfeatures2d/src
@@ -157,11 +150,11 @@ PACKAGES_DYNAMIC += "^libopencv-.*"
157 150
158FILES_${PN} = "" 151FILES_${PN} = ""
159FILES_${PN}-dbg += "${datadir}/OpenCV/java/.debug/* ${datadir}/OpenCV/samples/bin/.debug/*" 152FILES_${PN}-dbg += "${datadir}/OpenCV/java/.debug/* ${datadir}/OpenCV/samples/bin/.debug/*"
160FILES_${PN}-dev = "${includedir} ${libdir}/pkgconfig ${datadir}/OpenCV/*.cmake" 153FILES_${PN}-dev = "${includedir} ${libdir}/pkgconfig ${libdir}/cmake/opencv4/*.cmake"
161FILES_${PN}-staticdev += "${datadir}/OpenCV/3rdparty/lib/*.a" 154FILES_${PN}-staticdev += "${libdir}/opencv4/3rdparty/*.a"
162FILES_${PN}-apps = "${bindir}/* ${datadir}/OpenCV" 155FILES_${PN}-apps = "${bindir}/* ${datadir}/opencv4 ${datadir}/licenses"
163FILES_${PN}-java = "${datadir}/OpenCV/java" 156FILES_${PN}-java = "${datadir}/OpenCV/java"
164FILES_${PN}-samples = "${datadir}/OpenCV/samples/" 157FILES_${PN}-samples = "${datadir}/opencv4/samples/"
165 158
166INSANE_SKIP_${PN}-java = "libdir" 159INSANE_SKIP_${PN}-java = "libdir"
167INSANE_SKIP_${PN}-dbg = "libdir" 160INSANE_SKIP_${PN}-dbg = "libdir"
@@ -179,9 +172,6 @@ RDEPENDS_python3-opencv = "python3-core python3-numpy"
179RDEPENDS_${PN}-apps = "bash" 172RDEPENDS_${PN}-apps = "bash"
180 173
181do_install_append() { 174do_install_append() {
182 cp ${S}/include/opencv/*.h ${D}${includedir}/opencv/
183 sed -i '/blobtrack/d' ${D}${includedir}/opencv/cvaux.h
184
185 # Move Python files into correct library folder (for multilib build) 175 # Move Python files into correct library folder (for multilib build)
186 if [ "$libdir" != "/usr/lib" -a -d ${D}/usr/lib ]; then 176 if [ "$libdir" != "/usr/lib" -a -d ${D}/usr/lib ]; then
187 mv ${D}/usr/lib/* ${D}/${libdir}/ 177 mv ${D}/usr/lib/* ${D}/${libdir}/