Opencv Mingw Build. Add mingw to the windows path variable open the control panel system and security system advanced system settings environment variables system variables variable name. To finalize the installation go to the set the opencv environment variable and add it to the systems path section.
Once done install cmake. Add mingw to the windows path variable open the control panel system and security system advanced system settings environment variables system variables variable name. In my build the source code location is.
Once done install cmake.
Download the opencv source from their official git repository. In case you had trouble finding the link. In my build the source code location is. Includepath d.