Yes, I have recently succesfully built OpenCV 3.0 on Windows 10 and 7 using MinGW-w64 for use with CLion.
Suggestions, based on my experience:
- Use latest MinGW or MinGW-w64. Older versions have some quirks with supporting C++11 standart and being compatible with Win stuff at the same time, and I was not able to built OpenCV as a result
- Use latest OpenCV version. I had some problems when trying to compile older releases (for example OpenCV 3.0 BETA)
- Disable IPP. For some reason it doesn't compile with MinGW, and I was not motivated enough to find out why.
Of course, you have to ensure that correct MinGW is being hooked up during build (in case you have multiple installed), clean cmake binary dir between changes and so on.