Skip to content

Commit

Permalink
[opencv3/4] add missing include (#33226)
Browse files Browse the repository at this point in the history
  • Loading branch information
autoantwort committed Aug 18, 2023
1 parent 607e797 commit 57d42f6
Show file tree
Hide file tree
Showing 9 changed files with 40 additions and 4 deletions.
12 changes: 12 additions & 0 deletions ports/opencv3/0019-missing-include.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff --git a/modules/dnn/src/op_halide.cpp b/modules/dnn/src/op_halide.cpp
index c96971bc6aac..d107e01887d0 100644
--- a/modules/dnn/src/op_halide.cpp
+++ b/modules/dnn/src/op_halide.cpp
@@ -11,6 +11,7 @@

#ifdef HAVE_HALIDE
#include <HalideRuntimeOpenCL.h>
+#include <thread>
#endif // HAVE_HALIDE

namespace cv
1 change: 1 addition & 0 deletions ports/opencv3/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ vcpkg_from_github(
0010-fix-uwp-tiff-imgcodecs.patch
0011-remove-python2.patch
0012-fix-zlib.patch
0019-missing-include.patch
fix-tbb-error.patch
)
# Disallow accidental build of vendored copies
Expand Down
2 changes: 1 addition & 1 deletion ports/opencv3/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "opencv3",
"version": "3.4.18",
"port-version": 10,
"port-version": 11,
"description": "Open Source Computer Vision Library",
"homepage": "https://github.com/opencv/opencv",
"license": "BSD-3-Clause",
Expand Down
12 changes: 12 additions & 0 deletions ports/opencv4/0019-missing-include.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff --git a/modules/dnn/src/op_halide.cpp b/modules/dnn/src/op_halide.cpp
index 653de36146cc..db1a72278e70 100644
--- a/modules/dnn/src/op_halide.cpp
+++ b/modules/dnn/src/op_halide.cpp
@@ -14,6 +14,7 @@
#include "halide_scheduler.hpp"

#include <HalideRuntimeOpenCL.h>
+#include <thread>
#endif // HAVE_HALIDE

namespace cv {
1 change: 1 addition & 0 deletions ports/opencv4/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ vcpkg_from_github(
0012-fix-zlib.patch
0015-fix-freetype.patch
0017-fix-flatbuffers.patch
0019-missing-include.patch
"${ARM64_WINDOWS_FIX}"
)
# Disallow accidental build of vendored copies
Expand Down
2 changes: 1 addition & 1 deletion ports/opencv4/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "opencv4",
"version": "4.8.0",
"port-version": 2,
"port-version": 3,
"description": "computer vision library",
"homepage": "https://github.com/opencv/opencv",
"license": "Apache-2.0",
Expand Down
4 changes: 2 additions & 2 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -6010,11 +6010,11 @@
},
"opencv3": {
"baseline": "3.4.18",
"port-version": 10
"port-version": 11
},
"opencv4": {
"baseline": "4.8.0",
"port-version": 2
"port-version": 3
},
"opendnp3": {
"baseline": "3.1.1",
Expand Down
5 changes: 5 additions & 0 deletions versions/o-/opencv3.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "8eca838beb277535a53756ceb5da17aa8b5050a8",
"version": "3.4.18",
"port-version": 11
},
{
"git-tree": "b66d5bf3d61ae3bd5e71952b7642658d8562ae5d",
"version": "3.4.18",
Expand Down
5 changes: 5 additions & 0 deletions versions/o-/opencv4.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "d22421d8b63a7e2221f91520e9dcfcce1ca7bb48",
"version": "4.8.0",
"port-version": 3
},
{
"git-tree": "89d6da3b45b7e1667bdc3083f9641e57ad4930a9",
"version": "4.8.0",
Expand Down

0 comments on commit 57d42f6

Please sign in to comment.