qbs

Qbs setting target machine type


I'm trying to build Qbs example collidingmice on Windows 10 x64 and got the following error message:

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

I tried setting the following in the collidingmice.qbs

qbs.architecture : "x64"

and got the message

'x64' differs from the architecture produced by this compiler (x86)

I then tried

qbs.architecture : "x86_64"

which gives the error message;

'x86_64' differs from the architecture produced by this compiler (x86)

I then tried

qbs.architecture : "x86"

which gives the error message;

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

Is there a way to set target machine type e.g. to 'x86' or 'x64' in Qbs?


Solution

  • My guess is that you are using an x86 compiler and an x64 Qt, which will not work. How did you set up your profile?