I've hit this, its a percularity of OpenCV4..
You use...Which is the standard way of doing this...
It usesWhich is non-standard.
To fix this you need to add "opencv4" to your standard directories ("-I opencv4" on GCC/Clang)
You don't say what build system you are using, but if it's cmake, you add "include_directories" to your build script.
You use...
Code:
#include <opencv4/opencv2/opencv.hpp>It uses
Code:
#include <opencv2/opencv.hpp>To fix this you need to add "opencv4" to your standard directories ("-I opencv4" on GCC/Clang)
You don't say what build system you are using, but if it's cmake, you add "include_directories" to your build script.
Statistics: Posted by NoxiBox — Fri Jul 31, 2026 1:44 pm







