Skip to content

Commit

Permalink
[opencv4] Add include <chrono> for system_clock
Browse files Browse the repository at this point in the history
  • Loading branch information
WangWeiLin-MV committed Dec 24, 2024
1 parent 80d54ff commit 2f81923
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 2 deletions.
13 changes: 13 additions & 0 deletions ports/opencv4/0021-add-include-chrono.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/modules/gapi/src/streaming/gstreamer/gstreamersource.cpp b/modules/gapi/src/streaming/gstreamer/gstreamersource.cpp
index 9fb15729b45a..0d6d7dd5b248 100644
--- a/modules/gapi/src/streaming/gstreamer/gstreamersource.cpp
+++ b/modules/gapi/src/streaming/gstreamer/gstreamersource.cpp
@@ -17,6 +17,8 @@

#include <opencv2/imgproc.hpp>

+#include <chrono>
+
#ifdef HAVE_GSTREAMER
#include <gst/app/gstappsink.h>
#include <gst/gstbuffer.h>
1 change: 1 addition & 0 deletions ports/opencv4/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ vcpkg_from_github(
0017-fix-flatbuffers.patch
0019-opencl-kernel.patch
0020-miss-openexr.patch
0021-add-include-chrono.patch
)
# Disallow accidental build of vendored copies
file(REMOVE_RECURSE "${SOURCE_PATH}/3rdparty/openexr")
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.10.0",
"port-version": 2,
"port-version": 3,
"description": "computer vision library",
"homepage": "https://github.com/opencv/opencv",
"license": "Apache-2.0",
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -6682,7 +6682,7 @@
},
"opencv4": {
"baseline": "4.10.0",
"port-version": 2
"port-version": 3
},
"opendnp3": {
"baseline": "3.1.1",
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": "861c7b1b95b029c442acc37d2f4aa970bcb0beab",
"version": "4.10.0",
"port-version": 3
},
{
"git-tree": "c493a7ea4c35003983be050429d12e2a51ee8fed",
"version": "4.10.0",
Expand Down

0 comments on commit 2f81923

Please sign in to comment.