Windows SDK 7.1インストール

4548 ワード

Microsoft Windows SDK 7.1のインストール中にエラーが発生しました:Microsoft Windows SDK for Windows 7 product has reported the following error:Please refer to SamplesSetupHTMLConfigDetails.htm document for further information.
まず私のインストール環境について説明します.
システム:Windows 7 SP 1
IDE:Visual Studio 2010 SP 1(以下VS 2010 SP 1と略す)
次に、インストール前にWindows SDK 7.1のオフライン版とKB 2519277インストールパッケージをダウンロードします.もう一つ重要なのは、VS 2010 SP 1のインストール時にMicrosoft Visual C++2010 x 86 Redistributable-10.0.30319以降も自動的にインストールされ、Microsoft Visual C++2010 x 86 Redistributable-10.0.30319よりも高いバージョン(Microsoft Visual C++2010 x 86 Redistributable-10.0.30319を除く)を必ずアンインストールすることです.
また、Windows SDK 7.1のインストールを開始することができます.VC-Compilerのインストールは、インストール時に選択しないでください.その他のオプションはデフォルトです.
次に、vs 2010 sp 1をインストールする(link)
最後に、事前にダウンロードしたVC-Compiler-KB2519277インストールパッケージをインストールし、インストールを完了します.
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
vs 2010 sp 1がインストールされていない場合は、以下の手順でインストールします.
1>インストールvs 2010
2>Windows sdk v 7のインストール.1、インストール前にvc++x 86/x 64 runtime/redistributableのバージョンが10.0.30319より大きくないことを確認します.存在する場合はアンインストール
3>インストールvs 2010 sp 1
4>VC-Compiler-KB 2519277のインストール
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
いくつかの手順の説明:
1.Microsoft Visual C++2010 x 86 Redistributable-10.0.30319より高いバージョンをアンインストールする理由:
Windows SDK 7.1では、Microsoft Visual C++2010 x 86 Redistributable-10.0.30319以降はサポートされていません.
2.Windows SDK 7.1のインストール時にVC-Compilerのインストールを直接選択しない理由:
VS 2010のSP 1パッチをインストールすると、VC-Compilerにインストールの問題が発生し、解決せずに、直接VC-Compilerをインストールするとエラーが発生します.だからVC-Compilerのインストールをスキップして、Windows SDK 7.1をインストールした後にKB 2519277でパッケージをインストールして補充します.
 
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.