安装Microsoft Windows SDK 7.1的时候出现了一下错误:
Microsoft Windows SDK for Windows 7 product has reported the following error: Please refer to Samples\Setup\HTML\ConfigDetails.htm document for further information.
首先说明一下我的安装环境,
系统:Windows 7 SP1
IDE:Visual Studio 2010 SP1(以下简称VS2010SP1)
其次,在安装之前要先下载Windows SDK 7.1的离线版,和KB2519277安装包。还有一点很重要,就是在安装VS2010SP1时还自动安装了 Microsoft Visual C++ 2010 x86 Redistributable - 10.0.30319 及更高版本,一定要先卸载比 Microsoft Visual C++ 2010 x86 Redistributable - 10.0.30319 更高的版本(不包括Microsoft Visual C++ 2010 x86 Redistributable - 10.0.30319 )。
再次,现在终于可以开始安装Windows SDK 7.1了,注意在安装时不要选择安装 VC-Compiler,其它选项默认即可。
然后,安装vs2010 sp1(link)
最后,安装我们事先下载好的 VC-Compiler-KB2519277 安装包,到此完成安装。
---------------------------------------分割线----------------------------------------
如果没有安装vs 2010 sp1,按照如下顺序安装
1> 安装vs2010
2> 安装 windows sdk v7.1, 安装之前确保所有vc++ x86/x64 runtime/redistributable 版本不能大于 10.0.30319. 存在则卸载
3> 安装vs2010 sp1
4> 安装VC-Compiler-KB2519277
---------------------------------------分割线----------------------------------------
对于一些步骤的说明:
1. 卸载比 Microsoft Visual C++ 2010 x86 Redistributable - 10.0.30319 更高的版本的原因:
Windows SDK 7.1不支持Microsoft Visual C++ 2010 x86 Redistributable - 10.0.30319 以上版本。
2. 安装Windows SDK 7.1时不直接选择安装 VC-Compiler 的原因:
在安装VS2010的SP1补丁时,VC-Compiler就出现了安装问题,没有解决,直接安装VC-Compiler会出错。所以跳过VC-Compiler的安装,待安装完Windows SDK 7.1后再用KB2519277安装包补上。
PS1:
----> c:\program files (x86)\microsoft visual studio 10.0\vc\include\intrin.h(26): fatal error C1083: Cannot open include file: 'ammintrin.h': No such file or directory
Error is caused because file intrin.h have reference to ammintrin.h, and after this update there is no such file. Relevant fragment from intrin.h:
#if defined(_M_IX86) || defined(_M_X64)
#include <immintrin.h>
#include <ammintrin.h>
Searching Google for the answer I found only one link in Russian. Russian developer says, he have reinstalled Visual Studio. Tried to search MS Connect again, and found:Windows Update KB2455033 breaks build with missing ammintrin.h.
The workaround is to install Visual Studio 2010 SP1. Download it form Microsoft Website: Microsoft Visual Studio 2010 Service Pack 1 (Installer).
It does work.
PS2:
----> Unexpected Standard exception from MEX file.
----> opencv\modules\core\src\convert.cpp:265: error: (-215) mv && n > 0
see here for solutions.