Skip to contentSkip to conversation

opencv: Add packageconfig for building tests

PATCH New Khem Raj 1 participant 2 messages Mar 4, 2021

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/2 opencv: Add packageconfig for building tests

This could be enabled when ptests are enabled but generally its fine to disable them

---
 meta-oe/recipes-support/opencv/opencv_4.5.1.bb | 1 +
 1 file changed, 1 insertion(+)
meta-oe/recipes-support/opencv/opencv_4.5.1.bb +1 -0
index a595e788a2..d6652a01d9 100644
@@ -124,6 +124,7 @@ PACKAGECONFIG[python2] = "-DPYTHON2_NUMPY_INCLUDE_DIRS:PATH=${STAGING_LIBDIR}/${
 PACKAGECONFIG[python3] = "-DPYTHON3_NUMPY_INCLUDE_DIRS:PATH=${STAGING_LIBDIR}/${PYTHON_DIR}/site-packages/numpy/core/include,,python3-numpy,"
 PACKAGECONFIG[samples] = "-DBUILD_EXAMPLES=ON -DINSTALL_PYTHON_EXAMPLES=ON,-DBUILD_EXAMPLES=OFF,,"
 PACKAGECONFIG[tbb] = "-DWITH_TBB=ON,-DWITH_TBB=OFF,tbb,"
+PACKAGECONFIG[tests] = "-DBUILD_TESTS=ON,-DBUILD_TESTS=OFF,,"
 PACKAGECONFIG[text] = "-DBUILD_opencv_text=ON,-DBUILD_opencv_text=OFF,tesseract,"
 PACKAGECONFIG[tiff] = "-DWITH_TIFF=ON,-DWITH_TIFF=OFF,tiff,"
 PACKAGECONFIG[v4l] = "-DWITH_V4L=ON,-DWITH_V4L=OFF,v4l-utils,"
Signature · 1 line
2.30.1
author
#1 lore raw

PATCH 2/2 opencv: Remove duplicate patch

<thread> include is already taken care with 0001-Fix-building-opencv-using-gcc-11.x-19244.patch

---
 .../opencv/0001-Add-missing-include.patch     | 28 -------------------
 .../recipes-support/opencv/opencv_4.5.1.bb    |  1 -
 2 files changed, 29 deletions(-)
 delete mode 100644 meta-oe/recipes-support/opencv/opencv/0001-Add-missing-include.patch
meta-oe/recipes-support/opencv/opencv/0001-Add-missing-include.patch deleted +0 -28
deleted file mode 100644
index 432f3c83ee..0000000000
@@ -1,28 +0,0 @@
-From 4d984c65384e7d1f409f7e4cc56548a0924b09aa Mon Sep 17 00:00:00 2001
-From: Khem Raj <[email protected]>
-Date: Tue, 2 Mar 2021 21:53:21 -0800
-Subject: [PATCH] Add missing include
-
-this is highlighted by gcc-11
-
-Upstream-Status: Pending
-Signed-off-by: Khem Raj <[email protected]>
----
- modules/gapi/test/gapi_async_test.cpp | 1 +
- 1 file changed, 1 insertion(+)
-
-diff --git a/modules/gapi/test/gapi_async_test.cpp b/modules/gapi/test/gapi_async_test.cpp
-index 66b8be4dd3..aa0c9c7cfb 100644
---- a/modules/gapi/test/gapi_async_test.cpp
-+++ b/modules/gapi/test/gapi_async_test.cpp
-@@ -13,6 +13,7 @@
- 
- #include <condition_variable>
- #include <stdexcept>
-+#include <thread>
- 
- namespace opencv_test
- {
--- 
-2.30.1
-
meta-oe/recipes-support/opencv/opencv_4.5.1.bb +0 -1
index d6652a01d9..d87e140ba7 100644
@@ -49,7 +49,6 @@ SRC_URI = "git://github.com/opencv/opencv.git;name=opencv \
            file://0001-Dont-use-isystem.patch \
            file://download.patch \
            file://0001-Make-ts-module-external.patch \
-           file://0001-Add-missing-include.patch \
            file://0001-Fix-building-opencv-using-gcc-11.x-19244.patch \
            "
 SRC_URI_append_riscv64 = " file://0001-Use-Os-to-compile-tinyxml2.cpp.patch;patchdir=../contrib"
Signature · 1 line
2.30.1