按照网络上的指导试图进行用visual Studio 2017,cmake,编译opencv 3.3
Selecting Windows SDK version 10.0.16299.0 to target Windows 10.0.14393.
CMake Error at CMakeLists.txt:127 (project):
Failed to run MSBuild command:
MSBuild.exe
to get the value of VCTargetsPath:
用于 .NET Framework 的 Microsoft (R) 生成引擎版本 15.4.8.50001
版权所有(C) Microsoft Corporation。保留所有权利。
生成启动时间为 2017/11/26 18:50:08。
节点 1 上的项目“D:\opencv3_3\opencv\buildnew\CMakeFiles\3.10.0-rc5\VCTargetsPath.vcxproj”(默认目标)。
D:\VS\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(748,5): error : The OutputPath property is not set for project 'VCTargetsPath.vcxproj'. Please check to make sure that you have specified a valid combination of Configuration and Platform for this
project. Configuration='Debug' Platform='x64'. You may be seeing this message because you are trying to build a project without a solution file, and have specified a non-default Configuration or Platform that doesn't exist for this project. [D:\opencv3_3\opencv\buildnew\CMakeFiles\3.10.0-rc5\VCTargetsPath.vcxproj]
已完成生成项目“D:\opencv3_3\opencv\buildnew\CMakeFiles\3.10.0-rc5\VCTargetsPath.vcxproj”(默认目标)的操作 - 失败。
生成失败。
“D:\opencv3_3\opencv\buildnew\CMakeFiles\3.10.0-rc5\VCTargetsPath.vcxproj”(默认目标) (1) ->
(_CheckForInvalidConfigurationAndPlatform 目标) ->
D:\VS\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(748,5): error : The OutputPath property is not set for project 'VCTargetsPath.vcxproj'. Please check to make sure that you have specified a valid combination of Configuration and Platform for this
project. Configuration='Debug' Platform='x64'. You may be seeing this message because you are trying to build a project without a solution file, and have specified a non-default Configuration or Platform that doesn't exist for this project. [D:\opencv3_3\opencv\buildnew\CMakeFiles\3.10.0-rc5\VCTargetsPath.vcxproj]
0 个警告
1 个错误
已用时间 00:00:00.14
Exit code: 1