https://blog.youkuaiyun.com/xd_cauthy/article/details/90899259
https://blog.youkuaiyun.com/biaobro/article/details/79141868
https://blog.youkuaiyun.com/mrxjh/article/details/82982950
opencv4入门学习
https://blog.youkuaiyun.com/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.youkuaiyun.com/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