-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
65499b3
commit 5296222
Showing
4 changed files
with
130 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
recipes/opencv/4.x/patches/4.8.1-0003-openvino-cmake-fix.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- a/cmake/OpenCVUtils.cmake | ||
+++ b/cmake/OpenCVUtils.cmake | ||
@@ -1632,13 +1632,19 @@ function(ocv_add_external_target name inc link def) | ||
endif() | ||
endfunction() | ||
|
||
+set(__OPENCV_EXPORTED_EXTERNAL_TARGETS "" CACHE INTERNAL "") | ||
function(ocv_install_used_external_targets) | ||
if(NOT BUILD_SHARED_LIBS | ||
AND NOT (CMAKE_VERSION VERSION_LESS "3.13.0") # upgrade CMake: https://gitlab.kitware.com/cmake/cmake/-/merge_requests/2152 | ||
) | ||
foreach(tgt in ${ARGN}) | ||
if(tgt MATCHES "^ocv\.3rdparty\.") | ||
- install(TARGETS ${tgt} EXPORT OpenCVModules) | ||
+ list(FIND __OPENCV_EXPORTED_EXTERNAL_TARGETS "${tgt}" _found) | ||
+ if(_found EQUAL -1) # don't export target twice | ||
+ install(TARGETS ${tgt} EXPORT OpenCVModules) | ||
+ list(APPEND __OPENCV_EXPORTED_EXTERNAL_TARGETS "${tgt}") | ||
+ set(__OPENCV_EXPORTED_EXTERNAL_TARGETS "${__OPENCV_EXPORTED_EXTERNAL_TARGETS}" CACHE INTERNAL "") | ||
+ endif() | ||
endif() | ||
endforeach() | ||
endif() |
79 changes: 79 additions & 0 deletions
79
recipes/opencv/4.x/patches/4.8.1-0004-use-openvino-2-0-only.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
commit 47686834b94fe9023e5d827dc498c43232227359 | ||
Author: TolyaTalamanov <anatoliy.talamanov@intel.com> | ||
Date: Wed Jan 17 13:28:53 2024 +0000 | ||
|
||
Ifdef OpenVINO API 1.0 usage in G-API module | ||
|
||
diff --git a/modules/gapi/src/backends/ie/giebackend.cpp b/modules/gapi/src/backends/ie/giebackend.cpp | ||
index 6026f29ae5..1f2d134efb 100644 | ||
--- a/modules/gapi/src/backends/ie/giebackend.cpp | ||
+++ b/modules/gapi/src/backends/ie/giebackend.cpp | ||
@@ -2,7 +2,7 @@ | ||
// It is subject to the license terms in the LICENSE file found in the top-level directory | ||
// of this distribution and at http://opencv.org/license.html. | ||
// | ||
-// Copyright (C) 2018-2023 Intel Corporation | ||
+// Copyright (C) 2018-2024 Intel Corporation | ||
|
||
#include "precomp.hpp" | ||
|
||
@@ -10,7 +10,7 @@ | ||
// (cv::gapi::ie::backend() is still there and is defined always) | ||
#include "backends/ie/giebackend.hpp" | ||
|
||
-#ifdef HAVE_INF_ENGINE | ||
+#if defined HAVE_INF_ENGINE && INF_ENGINE_RELEASE < 2024000000 | ||
|
||
#if INF_ENGINE_RELEASE <= 2019010000 | ||
# error G-API IE module supports only OpenVINO IE >= 2019 R1 | ||
diff --git a/modules/gapi/src/backends/ie/giebackend.hpp b/modules/gapi/src/backends/ie/giebackend.hpp | ||
index c7d938878d..98715fc2db 100644 | ||
--- a/modules/gapi/src/backends/ie/giebackend.hpp | ||
+++ b/modules/gapi/src/backends/ie/giebackend.hpp | ||
@@ -2,7 +2,7 @@ | ||
// It is subject to the license terms in the LICENSE file found in the top-level directory | ||
// of this distribution and at http://opencv.org/license.html. | ||
// | ||
-// Copyright (C) 2018-2020 Intel Corporation | ||
+// Copyright (C) 2018-2024 Intel Corporation | ||
|
||
#ifndef OPENCV_GAPI_GIEBACKEND_HPP | ||
#define OPENCV_GAPI_GIEBACKEND_HPP | ||
@@ -10,7 +10,7 @@ | ||
// Include anyway - cv::gapi::ie::backend() still needs to be defined | ||
#include "opencv2/gapi/infer/ie.hpp" | ||
|
||
-#ifdef HAVE_INF_ENGINE | ||
+#if defined HAVE_INF_ENGINE && INF_ENGINE_RELEASE < 2024000000 | ||
|
||
#include <ade/util/algorithm.hpp> // type_list_index | ||
#include <condition_variable> | ||
diff --git a/modules/gapi/src/backends/ie/giebackend/giewrapper.cpp b/modules/gapi/src/backends/ie/giebackend/giewrapper.cpp | ||
index a185e7b8ce..6df8187e16 100644 | ||
--- a/modules/gapi/src/backends/ie/giebackend/giewrapper.cpp | ||
+++ b/modules/gapi/src/backends/ie/giebackend/giewrapper.cpp | ||
@@ -2,9 +2,9 @@ | ||
// It is subject to the license terms in the LICENSE file found in the top-level directory | ||
// of this distribution and at http://opencv.org/license.html. | ||
// | ||
-// Copyright (C) 2020 Intel Corporation | ||
+// Copyright (C) 2020-2024 Intel Corporation | ||
|
||
-#ifdef HAVE_INF_ENGINE | ||
+#if defined HAVE_INF_ENGINE && INF_ENGINE_RELEASE < 2024000000 | ||
|
||
#include <vector> | ||
#include <string> | ||
diff --git a/modules/gapi/test/infer/gapi_infer_ie_test.cpp b/modules/gapi/test/infer/gapi_infer_ie_test.cpp | ||
index 58e37040e8..06855fdec8 100644 | ||
--- a/modules/gapi/test/infer/gapi_infer_ie_test.cpp | ||
+++ b/modules/gapi/test/infer/gapi_infer_ie_test.cpp | ||
@@ -6,7 +6,7 @@ | ||
|
||
#include "../test_precomp.hpp" | ||
|
||
-#ifdef HAVE_INF_ENGINE | ||
+#if defined HAVE_INF_ENGINE && INF_ENGINE_RELEASE < 2024000000 | ||
|
||
#include <stdexcept> | ||
#include <mutex> |