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

  • 问题

  • 按照网络上的指导试图进行用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

    • 已移动 Baron Bi 2017年12月12日 7:11 三方问题
    2017年11月26日 11:18

全部回复

  • Hi,

    感谢在MSDN论坛发帖。

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

    对于这个问题,建议你使用记事本打开.vcxproj文件。搜索OutputPath关键字。查看设置的内容是否正确。是否包含非法字符。

    该论坛是讨论c++开发微软产品遇到的问题,对于你的情况,建议你到OpenCV论坛寻求更好的帮助。

    谢谢你的理解与支持。

    Best Regards,

    Baron Bi


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    2017年11月27日 3:04