#CmakeでOpenCVのビルドを行いたい
OpenCVのビルドを行いたいのですが、私が参考にしたサイトが参考にしたサイトの通りに行きません。
#エラーメッセージ
CMake Deprecation Warning at CMakeLists.txt:72 (cmake_policy):
The OLD behavior for policy CMP0022 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
CMake Deprecation Warning at CMakeLists.txt:77 (cmake_policy):
The OLD behavior for policy CMP0026 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
CMake Error at CMakeLists.txt:93 (project):
Failed to run MSBuild command:
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community/MSBuild/15.0/Bin/MSBuild.exe
to get the value of VCTargetsPath:
.NET Framework 向け Microsoft (R) Build Engine バージョン 15.4.8.50001 Copyright (C) Microsoft Corporation.All rights reserved. 2017/11/21 20:20:45 にビルドを開始しました。 ノード 1 上のプロジェクト "C:\Users\○○\Downloads\opencv-3.1.0\build\CMakeFiles\3.9.4\VCTargetsPath.vcxproj" (既定のターゲット)。 C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Platforms\ARM\PlatformToolsets\v141\Toolset.targets(45,5): error MSB8036: Windows SDK バージョン 10.0.15063.0 が見つかりませんでした。必要なバージョンの Windows SDK をインストールするか、プロジェクト プロパティ ページで SDK バージョンを変更するか、ソリューションを右クリックして [ソリューションの再ターゲット] を選択してください。 [C:\Users\○○\Downloads\opencv-3.1.0\build\CMakeFiles\3.9.4\VCTargetsPath.vcxproj] プロジェクト "C:\Users\○○\Downloads\opencv-3.1.0\build\CMakeFiles\3.9.4\VCTargetsPath.vcxproj" (既定のターゲット) のビルドが終了しました -- 失敗。 ビルドに失敗しました。 "C:\Users\tatsuya\Downloads\opencv-3.1.0\build\CMakeFiles\3.9.4\VCTargetsPath.vcxproj" (既定のターゲット) (1) -> (Desktop_PlatformPrepareForBuild ターゲット) -> C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Platforms\ARM\PlatformToolsets\v141\Toolset.targets(45,5): error MSB8036: Windows SDK バージョン 10.0.15063.0 が見つかりませんでした。必要なバージョンの Windows SDK をインストールするか、プロジェクト プロパティ ページで SDK バージョンを変更するか、ソリューションを右クリックして [ソリューションの再ターゲット] を選択してください。 [C:\Users\○○\Downloads\opencv-3.1.0\build\CMakeFiles\3.9.4\VCTargetsPath.vcxproj] 0 個の警告 1 エラー 経過時間 00:00:00.18
Exit code: 1
Configuring incomplete, errors occurred!
See also "C:/Users/○○/Downloads/opencv-3.1.0/build/CMakeFiles/CMakeOutput.log".
#補足
前回に似たような質問をしたのですがその時は私があまりに初心者すぎる故に見捨てられました。
下手にいじってややこしくなるのが怖いのでエラーが出てからは何もいじってません。
あなたの回答
tips
プレビュー