opencvmingw Wiki
Brought to you by:
ollydbg
See how to build the OpenCV library in this wiki page: [Build OpenCV under MinGW]
If you do not want to build the OpenCV library yourself, just follow the readme.txt files in the Files folders, such as: https://sourceforge.net/projects/opencvmingw/files/opencv2.4.6/