qt+opencv LNK4272:library machine type 'x64' conflicts with target mathine type 'x86'

运行时报错如上图所示,原因是你使用的opencv库是64位的,qt里面使用的编译器MSVC是32位的,解决方法如下:

qt+opencv LNK4272:library machine type 'x64' conflicts with target mathine type 'x86'_第1张图片qt+opencv LNK4272:library machine type 'x64' conflicts with target mathine type 'x86'_第2张图片

将构建套件修改位64bit;

 

转载于:https://www.cnblogs.com/canyeweiwei/p/10619818.html

你可能感兴趣的:(qt+opencv LNK4272:library machine type 'x64' conflicts with target mathine type 'x86')