Re: [Interest] Target machine not set in projects generated by qmake for Visual Studio
Hi Everybody! 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 and later: 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? Thanks. Tony Hi Tony, This is how I modified the .pro files of my projects: win32 { contains(QMAKE_HOST.arch, x86_64) { QMAKE_LFLAGS += /MACHINE:X64 } else { QMAKE_LFLAGS += /MACHINE:X86 } } IIRC this selects X64 if you run Windows 64 bit. You would have to omit the check if you only want 32 bit builds now. I don't know how you select this setting depending on the Qt libraries you use for a given build. Hope it helps, Ben ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] Target machine not set in projects generated by qmake for Visual Studio
Thanks Ben, that was the clue I was looking for. Tony Hi Tony, This is how I modified the .pro files of my projects: win32 { contains(QMAKE_HOST.arch, x86_64) { QMAKE_LFLAGS += /MACHINE:X64 } else { QMAKE_LFLAGS += /MACHINE:X86 } } IIRC this selects X64 if you run Windows 64 bit. You would have to omit the check if you only want 32 bit builds now. I don't know how you select this setting depending on the Qt libraries you use for a given build. Hope it helps, Ben ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
[Interest] Target machine not set in projects generated by qmake for Visual Studio
Hi Everybody! 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 and later: 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? Thanks. Tony ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] Target machine not set in projects generated by qmake for Visual Studio
On segunda-feira, 3 de junho de 2013 14.44.37, Tony Rietwyk wrote: 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? You've done the only thing you can do. -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel Open Source Technology Center signature.asc Description: This is a digitally signed message part. ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] Target machine not set in projects generated by qmake for Visual Studio
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. Scott -Original Message- From: interest-bounces+scott.bloom=onshorecs@qt-project.org [mailto:interest-bounces+scott.bloom=onshorecs@qt-project.org] On Behalf Of Tony Rietwyk Sent: Sunday, June 2, 2013 9:45 PM To: interest@qt-project.org Subject: [Interest] Target machine not set in projects generated by qmake for Visual Studio Hi Everybody! 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 and later: 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? Thanks. Tony ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest