[Qt-interest] Qt 4.5.3 and target architecture mismatch

Malyushytsky, Alex alex at wai.com
Wed Feb 3 21:47:03 CET 2010


VS has cross-compiler which builds 64 bit code on the 32 bit OS.
It does not mean you can run it, but you can build.
If you are running from the command line you have to setup environment for either 32 or 64 bit compiler.

>From command line it is defined in the project settings.
You mentioned before that if you specify target x86 VS complains that main.obj is 64 bit.
As for me this has nothing to do with QT, I would look at the settings if I were you.
At least try to rebuild project completely after you specify x86 target.

Hope this helps, sorry if not.

Regards,
     Alex



-----Original Message-----
From: qt-interest-bounces at trolltech.com [mailto:qt-interest-bounces at trolltech.com] On Behalf Of Joshua Senecal
Sent: Wednesday, February 03, 2010 7:25 AM
To: qt-interest at trolltech.com
Subject: Re: [Qt-interest] Qt 4.5.3 and target architecture mismatch

Hi Alex,

Thanks for taking the time to respond; it's greatly appreciated.

>
> >> 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.

If you'll refer to my original post, I mention that the OS is 32-bit
(Server 2008 32-Bit), and in the project settings the platform is set to
Win32. I get errors if I set the target machine type to "x86" or "not
set". This is what's confusing me.

I've been through all the settings that I can find, and everything I can
see says I should be compiling for a 32-bit architecture. Hence my
wondering if there might be a Qt configuration issue.

Thanks!

-Josh
_______________________________________________
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