[opencv3] Fix use of std::cout (#53036)

This commit is contained in:
Kai Pastor 2026-07-23 20:26:53 +02:00 committed by GitHub
parent 12519d6ed5
commit 5495a1176f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 38 additions and 3 deletions

View File

@ -0,0 +1,30 @@
diff --git a/modules/viz/src/vtk/vtkVizInteractorStyle.cpp b/modules/viz/src/vtk/vtkVizInteractorStyle.cpp
index e2d3380..8943cb9 100644
--- a/modules/viz/src/vtk/vtkVizInteractorStyle.cpp
+++ b/modules/viz/src/vtk/vtkVizInteractorStyle.cpp
@@ -44,6 +44,7 @@
//M*/
#include "../precomp.hpp"
+#include <iostream>
namespace cv { namespace viz
{
@@ -96,7 +97,7 @@ void cv::viz::vtkVizInteractorStyle::saveScreenshot(const String &file)
snapshot_writer->SetFileName(file.c_str());
snapshot_writer->Write();
- cout << "Screenshot successfully captured (" << file.c_str() << ")" << endl;
+ std::cout << "Screenshot successfully captured (" << file.c_str() << ")" << endl;
}
//////////////////////////////////////////////////////////////////////////////////////////////
@@ -118,7 +119,7 @@ void cv::viz::vtkVizInteractorStyle::exportScene(const String &file)
exporter->SetInput(Interactor->GetRenderWindow());
exporter->Write();
- cout << "Scene successfully exported (" << file.c_str() << ")" << endl;
+ std::cout << "Scene successfully exported (" << file.c_str() << ")" << endl;
}
void cv::viz::vtkVizInteractorStyle::exportScene()

View File

@ -24,6 +24,7 @@ vcpkg_from_github(
0019-enable-pkgconf.patch
0021-protobuf-6.patch # 1db93911aeb65599f22db47d5d39f75bc94a821d
0022-include-thread.patch
0023-cout.diff
)
vcpkg_find_acquire_program(PKGCONFIG)

View File

@ -1,7 +1,7 @@
{
"name": "opencv3",
"version": "3.4.20",
"port-version": 2,
"port-version": 3,
"description": "Open Source Computer Vision Library",
"homepage": "https://github.com/opencv/opencv",
"license": "BSD-3-Clause",

View File

@ -896,7 +896,6 @@ opencv3[opengl]:arm64-osx=no-separate-feature-test # needs gui (gtk | qt)
opencv3[opengl]:x64-linux=no-separate-feature-test # needs gui (gtk | qt)
opencv3[opengl](android)=feature-fails
opencv3[ovis]:arm64-linux=cascade
opencv3[python]:arm64-linux=cascade
opencv3[qt]:arm64-linux=cascade
opencv3[quality]:arm64-linux=cascade
opencv3[sfm]:arm64-linux=cascade

View File

@ -7422,7 +7422,7 @@
},
"opencv3": {
"baseline": "3.4.20",
"port-version": 2
"port-version": 3
},
"opencv4": {
"baseline": "4.12.0",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "d856d027d756d99e8c293873ba039bc9c1349dd6",
"version": "3.4.20",
"port-version": 3
},
{
"git-tree": "742c03e19a5b6b467411f297c502c9815e5168c0",
"version": "3.4.20",