完整的报错信息: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库时出现该问题。
在.sln、.vcxproj文件中查找并修改
<EnableEnhancedInstructionSet>AdvancedVectorExtensions2</EnableEnhancedInstructionSet>
改为
<EnableEnhancedInstructionSet>NoExtensions</EnableEnhancedInstructionSet>
表述的很模糊,没有环境版本以及后续稳定性情况,具体如何操作也不详。
求大神支招!!
目前知道AdvancedVectorExtensions512大概是一种指令系统,参考链接:https://en.wikichip.org/wiki/x86/avx-512;专业英文水平有限,