opencv 、opencv contrib扩展模块配置过程中cmake报错

https://blog.csdn.net/xd_cauthy/article/details/90899259https://blog.csdn.net/biaobro/article/details/79141868https://blog.csdn.net/mrxjh/article/details/82982950 opencv4入门学习https://blog.csdn.net/zhangfuliang123/article/details/98667754 看了上面...
摘要由CSDN通过智能技术生成


https://blog.csdn.net/xd_cauthy/article/details/90899259

https://blog.csdn.net/biaobro/article/details/79141868
https://blog.csdn.net/mrxjh/article/details/82982950
    opencv4入门学习
https://blog.csdn.net/zhangfuliang123/article/details/98667754


    看了上面一些博客,
向来直接使用编译好的库来用,结果发现opencv_contrib只有源码,只好找opencv的最新4.3.0版自己编译了。
1、我发现我的vs版本是2017的,并且安装目录不好。。。configure的时候要选 vs 15 2017版本,选错则会报错。
    (想要重新进行configure报错:需要先在cmake中的 file选项-->delete cache来删除缓存。)
2、在下载玩opencv-4.3.0.zip   opencv_contrib-4.3.0.zip  之后,解压均出现提示:不可预料的文件结尾。

      不知道是不是好压的毛病

3、在configure时,cmake报错如下:
    貌似是因为 无法运行该命令:
    D:/Microsoft's dog/VisualStudio/2017/Community/MSBuild/15.0/Bin/MSBuild.exe
        来获取VCTargetPath的值,应该是路径的错。。。。还是再装上2019吧,vs2017被依赖了,早年的文件夹果然带来了麻烦
        相关可看一下 https://blog.csdn.net/xd_cauthy/article/details/90899259
        在条件“Exists('D:\Microsoft's dog\VisualStudio\2017\Community\MSBuild\$(MSBuildToolsVersion)\Microsoft.Common.props')”中的字符位置 22 处发现意外标记“s”。 
        第22个字符刚好就是 ' 后的 s 字符,出现报错

Selecting Windows SDK version 10.0.17763.0 to target Windows 10.0.17134.
CMake Error at CMakeLists.txt:106 (enable_language):
  Failed to run MSBuild command:
    D:/Microsoft's dog/VisualStudio/2017/Community/MSBuild/15.0/Bin/MSBuild.exe
  to get the value of VCTargetsPath:

    用于 .NET Framework 的 Microsoft (R) 生成引擎版本 15.9.21+g9802d43bc3
    版权所有(C) Microsoft Corporation。保留所有权利。
    生成启动时间为 2020/5/16 17:55:18。

    节点 1 上的项目“D:\software\opencv\opencv_430\opencvbuild-430\CMakeFiles\3.17.1\VCTargetsPath.vcxproj”(默认目标)。
    D:\Microsoft's dog\VisualStudio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.Cpp.Default.props(15,92): error MSB4092: 在条件“Exists('D:\Microsoft's dog\VisualStudio\2017\Community\MSBuild\$(MSBuildToolsVersion)\Microsoft.Common.props')”中的字符位置 22 处发现意外标记“s”。 [D:\softwar

  • 1
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值