求助,用visual Studio 2017,cmake,编译opencv 3.3,遇到问题The OutputPath property is not set for project

weixin_38066001 2017-11-26 11:18:51
按照网络上的指导试图进行用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
...全文
23 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复

476

社区成员

发帖
与我相关
我的任务
社区描述
其他技术讨论专区
其他 技术论坛(原bbs)
社区管理员
  • 其他技术讨论专区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧