OPENCV,CMAKE,VS2019生成库时报错:targets(423,5): error MSB6011: 传递给 Microsoft.Build.CPPTasks.CL 任务的参数无效。

完整的报错信息:10>D:\VS2019install_file\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(423,5): error : 元素 <EnableEnhancedInstructionSet> 具有无效值“AdvancedVectorExtensions512”。

10>D:\VS2019install_file\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(423,5): error MSB6011: 传递给 Microsoft.Build.CPPTasks.CL 任务的参数无效。

来龙去脉:用cmake生成OPENCV3.4.15的vs2019项目,按照网上的资料,配置好环境变量和工程属性,编译生成LIB库时出现该问题。

有道友发帖子:https://blog.youkuaiyun.com/ghost663527/article/details/40081887?utm_medium=distribute.pc_relevant_t0.none-task-blog-2%7Edefault%7EBlogCommendFromMachineLearnPai2%7Edefault-1.control&depth_1-utm_source=distribute.pc_relevant_t0.none-task-blog-2%7Edefault%7EBlogCommendFromMachineLearnPai2%7Edefault-1.control

在.sln、.vcxproj文件中查找并修改

<EnableEnhancedInstructionSet>AdvancedVectorExtensions2</EnableEnhancedInstructionSet>
改为
<EnableEnhancedInstructionSet>NoExtensions</EnableEnhancedInstructionSet>

表述的很模糊,没有环境版本以及后续稳定性情况,具体如何操作也不详。

求大神支招!!

目前知道AdvancedVectorExtensions512大概是一种指令系统,参考链接:https://en.wikichip.org/wiki/x86/avx-512;专业英文水平有限,


 

评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

zhangyan8600

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值