Some time ago I had to compile the OpenCV library to use it with mingw compiler. As you probably know, OpenCV’s precompile package, which is shared on its webpage is compiled using Visual Studio. What does it mean? It means that if you want to use that version in mingw compile you won’t be able to do it. To make use of it you’ll need to compile it again.
On that time, compile a library to me was not a easy task. I ever got confused with the whole process. In some case I was successed, so here we are.
I found some of my compiled versions for Win32 with mingw.