again. if using mingw for a compiler, you must build your own. local libraries first
once you, ve build the libs.
for a simple, one file project, you can use some cmdline (like g++ myfile.cpp -I myincludes/opencv4/include -l opencv_core411 -o my.exe)
for now, please cleanup (or even delete) th build folder& start all over with cmake
gl !