简体   繁体   中英

Qt5Cored.lib(Qt5Cored.dll) : module machine type 'x64' conflicts with target machine type 'X86'

I do all in Jenkins. I'm using CMake for configuring my project with Makefile Generator: Visual Studio 12. After this I have solution file - * .sln. My next step is building project using MSBuild. I run it with command line arguments -/p:"VisualStudioVersion=12.0". While this step is prorocessing I get the message:

> Qt5Cored.lib(Qt5Cored.dll) : fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86'

I tried to using Makefile Generator : Visual Studio 12 Win64 and there were more failures. After I also tried to run MSBuild with parameter /p:"Platform=x64" but it failed - "Debug|x64" is invalid.

I have Qt for x64 platform and my machine is x64 too. I also have right paths to Qt in CMAKE_PREFIX_PATH . I really have no idea what else to do:C

我解决了我的问题:我为x86安装了Qt,它可以工作:))

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM