aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2026-03-03 08:29:24 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2026-03-03 08:35:00 +0000
commit1e2de06018913e77cd802ce1642939d271d10f37 (patch)
treed7bb9bac169b77a70f011d4e0858280519ab33af
parent0afb0e4c9cfa384a9b9da1a952aa36431b4b9b59 (diff)
graphics/opencv: Fix potential build issues due to lack of #include <iostream>
Reported by: Vladimir Druzenko <vvd@freebsd.org>
-rw-r--r--graphics/opencv/files/patch-contrib_modules_viz_src_vtk_vtkVizInteractorStyle.cpp29
1 files changed, 29 insertions, 0 deletions
diff --git a/graphics/opencv/files/patch-contrib_modules_viz_src_vtk_vtkVizInteractorStyle.cpp b/graphics/opencv/files/patch-contrib_modules_viz_src_vtk_vtkVizInteractorStyle.cpp
new file mode 100644
index 000000000000..e42ea697763f
--- /dev/null
+++ b/graphics/opencv/files/patch-contrib_modules_viz_src_vtk_vtkVizInteractorStyle.cpp
@@ -0,0 +1,29 @@
+--- contrib/modules/viz/src/vtk/vtkVizInteractorStyle.cpp.orig 2026-03-03 08:26:40 UTC
++++ contrib/modules/viz/src/vtk/vtkVizInteractorStyle.cpp
+@@ -45,6 +45,8 @@
+
+ #include "../precomp.hpp"
+
++#include <iostream>
++
+ namespace cv { namespace viz
+ {
+ vtkStandardNewMacro(vtkVizInteractorStyle)
+@@ -96,7 +98,7 @@ void cv::viz::vtkVizInteractorStyle::saveScreenshot(co
+ 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() << ")" << std::endl;
+ }
+
+ //////////////////////////////////////////////////////////////////////////////////////////////
+@@ -118,7 +120,7 @@ void cv::viz::vtkVizInteractorStyle::exportScene(const
+ exporter->SetInput(Interactor->GetRenderWindow());
+ exporter->Write();
+
+- cout << "Scene successfully exported (" << file.c_str() << ")" << endl;
++ std::cout << "Scene successfully exported (" << file.c_str() << ")" << std::endl;
+ }
+
+ void cv::viz::vtkVizInteractorStyle::exportScene()