Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 7747

C/C++ • Re: Error building OpenCV program using VS Code, remote SSH and C++

$
0
0
I've hit this, its a percularity of OpenCV4..
You use...

Code:

#include <opencv4/opencv2/opencv.hpp>
Which is the standard way of doing this...
It uses

Code:

#include <opencv2/opencv.hpp>
Which 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.

Statistics: Posted by NoxiBox — Fri Jul 31, 2026 1:44 pm



Viewing all articles
Browse latest Browse all 7747

Latest Images

Trending Articles



Latest Images