From 2c8972f763c103f551d1b387d79255c790eedcf6 Mon Sep 17 00:00:00 2001 From: Rmys Date: Thu, 9 Dec 2021 16:14:19 +0300 Subject: [PATCH] opencv ver. bump --- science/robotics/opencv/actions.py | 2 +- science/robotics/opencv/files/2a4348e0.patch | 22 ++++++++++++++++++++ science/robotics/opencv/pspec.xml | 12 +++++++++-- 3 files changed, 33 insertions(+), 3 deletions(-) create mode 100644 science/robotics/opencv/files/2a4348e0.patch diff --git a/science/robotics/opencv/actions.py b/science/robotics/opencv/actions.py index b2b3fe3011..8236990664 100644 --- a/science/robotics/opencv/actions.py +++ b/science/robotics/opencv/actions.py @@ -63,7 +63,7 @@ def setup(): -DBUILD_opencv_java_bindings_generator=OFF \ -DPYTHON3_EXECUTABLE=/usr/bin/python3 \ -DOPENCV_GENERATE_PKGCONFIG=ON \ - -DOPENCV_EXTRA_MODULES_PATH=../../opencv_contrib-%s/modules \ + -DOPENCV_EXTRA_MODULES_PATH=../opencv_contrib-%s/modules \ " % (get.installDIR(), get.srcVERSION()), sourceDir="..") # -DUSE_O3=OFF # -DUSE_OMIT_FRAME_POINTER=OFF diff --git a/science/robotics/opencv/files/2a4348e0.patch b/science/robotics/opencv/files/2a4348e0.patch new file mode 100644 index 0000000000..ca0ef85183 --- /dev/null +++ b/science/robotics/opencv/files/2a4348e0.patch @@ -0,0 +1,22 @@ +From 2a4348e07cdcf59c134b3a2850ef57f617b6224f Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?S=C3=A9rgio=20M=2E=20Basto?= +Date: Thu, 14 Oct 2021 11:57:41 +0100 +Subject: [PATCH] opencv-4.5.4 enable_cvv fixes #3063 + +The cvv module is compiled conditionally on HAVE_QT5. But in opencv commit 87d4970e8b4b3251035fdf4a0101335ee5904a58 this variable was renamed to HAVE_QT, so the module is never compiled. + +Also check if QT_VERSION_MAJOR >= 5 +--- + modules/cvv/CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/opencv_contrib-4.5.4/modules/cvv/CMakeLists.txt b/opencv_contrib-4.5.4/modules/cvv/CMakeLists.txt +index 709464ee896..c264ef1eada 100644 +--- a/opencv_contrib-4.5.4/modules/cvv/CMakeLists.txt ++++ b/opencv_contrib-4.5.4/modules/cvv/CMakeLists.txt +@@ -1,4 +1,4 @@ +-if(NOT HAVE_QT5 OR NOT HAVE_CXX11) ++if(NOT HAVE_QT OR NOT HAVE_CXX11 OR QT_VERSION_MAJOR LESS 5) + ocv_module_disable(cvv) + return() + endif() diff --git a/science/robotics/opencv/pspec.xml b/science/robotics/opencv/pspec.xml index 9bfb2c31fd..c9573629ac 100644 --- a/science/robotics/opencv/pspec.xml +++ b/science/robotics/opencv/pspec.xml @@ -12,8 +12,8 @@ library Computer vision library opencv is a programming library mainly aimed at the real time computer vision. Example applications are human-computer interaction, object identification, face recognition, motion tracking, mobile robotics. - https://github.com/opencv/opencv/archive/4.5.1.tar.gz - https://github.com/opencv/opencv_contrib/archive/4.5.1.tar.gz + https://github.com/opencv/opencv/archive/4.5.4.tar.gz + https://github.com/opencv/opencv_contrib/archive/4.5.4.tar.gz cmake hdf5-devel @@ -52,6 +52,7 @@ openjpeg2-devel + 2a4348e0.patch @@ -118,6 +119,13 @@ + + 2021-12-09 + 4.5.4 + Version bump. + Mustafa Cinasal + muscnsl@gmail.com + 2021-10-23 4.5.1