the official OpenCV library binaries for C++, on Windows, are for MSVC/Visual Studio only.
youtube videos on this topic are usually junk. if you do follow them, be aware that everything could be bad advice. be critical of everything they say or do there.
you can set up a VS solution/project yourself. that requires setting some paths and listing the modules of opencv that you want to use (core, imgcodecs, imgproc, highgui, and so on). this is not much work. if you aren’t familiar with C++ on the level of telling your toolchain where to find libraries and to link them to your program, then this will require learning about this general development task as well.
or use CMake with a minimal cmakelists.txt for your project. CMake is supposed to be able to find OpenCV on your system. this step might need some manual intervention.
remember that the official binaries already give you a compiled OpenCV. you don’t need to build opencv yourself (if you use MSVC/Visual Studio). you only need to build your own program code to use OpenCV.
I tried to run opencv using Visual Studio on Windows 11. But it is missing many include files. I think I was missing some steps during the installation process. For instance if I go look for
opencv2/include there is only one include file located in the directory. that file has the name,
opencv.hpp
the location of that file is placed under the C drive.
full path is
C:\opencv\sources\include\opencv2
The bin directory is also under opencv as I would have expected.
I think I should have done done something with the Contribution area but I did not install it.