Hello. I used this tutorial - Installation by Making Your Own Libraries from the Source Files - OpenCV: Installation in Windows
to build a library OpenCV 4.5.2 for Visual Studio 2012
During
Go to the build directory and open the created OpenCV solution. Depending on just how much of the above options you have selected the solution may contain quite a lot of projects so be tolerant on the IDE at the startup. Now you need to build both the Release and the Debug binaries. Use the drop-down menu on your IDE to change to another of these after building for one of them.
I get the error C: \ lib2 \ opencv \ modules \ core \ include \ opencv2 / core / cvdef.h (736): fatal error C1189: #error: “OpenCV 4.x + requires enabled C ++ 11 support”