Visual Studio build latest OpenCV package in Debug & Release version. I want to use AddingImage.cpp to test it and build it succesfully with static libraries but on runtime I get an error
---------------------------
ConsoleApplication1.exe - System Error
---------------------------
The code execution cannot proceed because opencv_core470d.dll was not found. Reinstalling the program may fix this problem.
---------------------------
OK
---------------------------
if it depends on that dll, you did not link it against static , but dynamic libs
(if that’s ok, at least make sure, the folder containing the opencv dll’s is on the PATH, so they can be found at runtime)
use BUILD_SHARED_LIBS=OFF cmake option to build static opencv libs