安裝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.