使用MinGW在Windows上编译OpenCV [英] Compiling OpenCV on Windows with MinGW
问题描述
我正在尝试在Windows 10上使用带有MinGW的CLion从源代码构建OpenCV.不幸的是,所提供的OpenCV构建不再包含MinGW构建.
I am trying to build OpenCV from source using CLion with MinGW on Windows 10. Unfortunately the provided builds for OpenCV do not include a MinGW build any more.
在编译时,尽管安装了Windows SDK和Visual Studio 2015 C ++工具,但仍然收到strsafe.h丢失的错误消息.
When compiling, I get an error that strsafe.h is missing, although I have Windows SDK and Visual Studio 2015 C++ tools installed.
有人尝试过在同一设置上构建OpenCV吗?
Has anyone tried building OpenCV on the same setup?
坦克!
推荐答案
经过进一步调查,结果证明Windows 10 SDK无法正确安装.即使在安装过程中检查了Windows软件开发套件并添加了标题,也没有包含实际安装了标题的包含文件夹.
After some further investigation it turned out that the Windows 10 Sdk did not install properly. Even with the Windows Software Development Kit checked during installation, which adds the headers, there were no include folders with headers actually installed.
这篇关于使用MinGW在Windows上编译OpenCV的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!