[Qt-interest] Qt 4.5.3 and target architecture mismatch

Malyushytsky, Alex alex at wai.com
Tue Feb 2 23:46:59 CET 2010


As far as I know QT never provided x64 binaries - I always was complaining about it.
Nokia treats x64 configuration as rare and unusual.
So I doubt you could get binaries pre-built for x64.

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

Message above says that "QtCored4.lib" is X86 - means 32 bit, but
your target is x64 (64 bit).
Target is defined in your project, so problem is mostly likely in the settings.

Regards,
    Alex


-----Original Message-----
From: qt-interest-bounces at trolltech.com [mailto:qt-interest-bounces at trolltech.com] On Behalf Of Joshua Senecal
Sent: Tuesday, February 02, 2010 1:23 PM
To: qt-interest at trolltech.com
Subject: [Qt-interest] Qt 4.5.3 and target architecture mismatch

Hi All,

Using the Nokia-provided binary installer (.exe) I recently installed Qt
on a new machine for development, and I can't get any code using Qt to
compile. Not even a simple "Hello, World"-type app.

The Microsoft compiler (I'm using Visual Studio Standard 2008) is giving
me this error:

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

I've done the usual search, on Microsoft's sites and elsewhere, and my
understanding is the message is telling me that I've essentially got an
architecture mispatch: the library was compiled for one architecture,
the code for another.

The problem is the operating system *is* 32-bit (Server 2008), so there
shouldn't be anything targeting x64. The configuration settings show the
platform as Win32. The property at Properties->linker->advanced->Target
Machine is "Not Set" but if I set it to x86, I get the following error:

.\Debug\main.obj : fatal error LNK1112: module machine type 'x64'
conflicts with target machine type 'X86'.

Is this a configuration issue with Qt, or with the Microsoft
compiler/project settings? Can anyone offer any pointers on how to fix
it?

Thanks!

-Josh Senecal
_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest


---------------------------------------------------------------------------------------------------
Weidlinger Associates, Inc. made the following annotations.

"This message and any attachments are solely for the intended recipient and may contain confidential or privileged information. If you are not the intended recipient, any disclosure, copying, use, or distribution of the information included in this message and any attachments is prohibited. If you have received this communication in error, please notify us by reply e-mail and immediately and permanently delete this message and any attachments. Thank you."

"Please consider our environment before printing this email."




More information about the Qt-interest-old mailing list