请参考 Error compiling 4.1.0 source code with mingw-w64: 'D3D11_TEXTURE2D_DESC' was not declared in this scope · Issue #14286 · opencv/opencv --- 使用 mingw-w64 编译 4.1.0 源代码时出错:未在此范围内声明“D3D11_TEXTURE2D_DESC” ·期刊 #14286 ·opencv/opencv (github.com)