From 538e7bf2c1bf913ceeb64c31bc08e9c9d919cabd Mon Sep 17 00:00:00 2001 From: Emil Askerov Date: Fri, 16 Oct 2026 22:40:28 +0300 Subject: [PATCH] Fix: Add missing includes for std::back_inserter and std::atomic Newer LLVM/libc++ versions (e.g. LLVM 23.1.3, llvm-mingw-20261006-ucrt) no longer transitively include and . This causes build failures in: modules/calib3d/src/stereo_geom.cpp, modules/gapi/include/opencv2/gapi/infer/ie.hpp (std::back_inserter), and modules/gapi/include/opencv2/gapi/gasync_context.hpp (std::atomic). Fixes build with modern LLVM/MinGW toolchains without CMake workarounds. --- modules/calib3d/src/stereo_geom.cpp | 1 + modules/gapi/include/opencv2/gapi/gasync_context.hpp | 2 ++ modules/gapi/include/opencv2/gapi/infer/ie.hpp | 1 + 3 files changed, 4 insertions(+) diff --git a/modules/calib3d/src/stereo_geom.cpp b/modules/calib3d/src/stereo_geom.cpp index 4c91522bdc..e8da6a40c8 100644 --- a/modules/calib3d/src/stereo_geom.cpp +++ b/modules/calib3d/src/stereo_geom.cpp @@ -3,6 +3,7 @@ // of this distribution and at http://opencv.org/license.html #include "precomp.hpp" +#include namespace cv { diff --git a/modules/gapi/include/opencv2/gapi/gasync_context.hpp b/modules/gapi/include/opencv2/gapi/gasync_context.hpp index f49b59822d..7393c18986 100644 --- a/modules/gapi/include/opencv2/gapi/gasync_context.hpp +++ b/modules/gapi/include/opencv2/gapi/gasync_context.hpp @@ -7,6 +7,8 @@ #ifndef OPENCV_GAPI_GASYNC_CONTEXT_HPP #define OPENCV_GAPI_GASYNC_CONTEXT_HPP +#include + #if !defined(GAPI_STANDALONE) # include #else // Without OpenCV diff --git a/modules/gapi/include/opencv2/gapi/infer/ie.hpp b/modules/gapi/include/opencv2/gapi/infer/ie.hpp index 9f9518d0b8..9b834aaabd 100644 --- a/modules/gapi/include/opencv2/gapi/infer/ie.hpp +++ b/modules/gapi/include/opencv2/gapi/infer/ie.hpp @@ -11,6 +11,7 @@ #include #include #include +#include #include // tuple, tuple_size #include