1、fatal error LNK1112: module machine type ‘x64’ conflicts with target machine type ‘X86’
用QtCreator+cmake打开CMakeLists.txt后,直接编译,会报如上错误。经查,可能是QtCreator+cmake打开CMakeLists.txt默认使用32位(X86)架构解析。编译时,编译器和Makefile不一致。
解决办法:在QtCreator左侧“项目”页中显示指定构建套件后,关闭QtCreator再打开重新解析CMakeLists.txt生成Makefile即可。
OBS编译问题汇
猜你喜欢
转载自blog.csdn.net/e5max/article/details/54615173
今日推荐
周排行