[Interest] Target machine not set in projects generated by qmake for Visual Studio
Scott Aron Bloom
scott.bloom at onshorecs.com
Mon Jun 3 07:42:42 CEST 2013
You can explicitly set the MACHINE switch using a QMAKE flag.. Its been a while, but there is a debug and release QMAKE_***_ LINK flag that you can set it on.
I have moved to cmake, but I had filed this bug years ago, it never got resolved last time I checked.
From: interest-bounces+scott.bloom=onshorecs.com at qt-project.org [mailto:interest-bounces+scott.bloom=onshorecs.com at qt-project.org] On Behalf Of Tony Rietwyk
Sent: Sunday, June 2, 2013 9:45 PM
To: interest at qt-project.org
Subject: [Interest] Target machine not set in projects generated by qmake for Visual Studio
When I build my Qt 4.8.4 projects on Windows 7, I always get this warning:
LINK : warning LNK4068: /MACHINE not specified; defaulting to X86
<project_name> - 0 error(s), 1 warning(s)
which sucks. I have tried changing mkspecs/win32-msvc2008/qmake.conf to
include /MACHINE:X86 in QMAKE_LFLAGS, which works well for the moment. It
will need changing once we go to X64 builds.
How should I specify this in the qmake.conf file so that X32 or X64 builds are generated correctly by qmake?
Interest mailing list
Interest at qt-project.org
More information about the Interest