[Qt-interest] How do I tell with qmake whether system is 64 or32-bit?

Malyushytsky, Alex alex at wai.com
Fri Jun 10 00:20:05 CEST 2011


This  become interesting.
Could you clarify how "win32:contains(QMAKE_HOST.arch, x86_64) {" can help to find which version of my application I am going to build.
If I do it from command line for MS compiler  line result depends on which compiler environment is set ( for example I normally build qt this way ).

Regards,

Alex

-----Original Message-----
From: qt-interest-bounces+alex=wai.com at qt.nokia.com [mailto:qt-interest-bounces+alex=wai.com at qt.nokia.com] On Behalf Of Bo Thorsen
Sent: Thursday, June 09, 2011 12:41 PM
To: qt-interest at qt.nokia.com
Subject: Re: [Qt-interest] How do I tell with qmake whether system is 64 or32-bit?

Den 09-06-2011 21:21, Ben Swerts skrev:
> Hi Nikos,
>
> For quite a few systems you can check the QMAKESPEC, as mentioned before.
> For Windows, however, you'll need something else. We use this construct:
>
> win32:contains(QMAKE_HOST.arch, x86_64) {
>    LIBS += fmodex64
> } else {
>    LIBS += fmodex32
> }

This with the *-64 approaches a complete solution for linux and windows.
Now we just need that mac guys to come along with their solution, although this might be handled by -64 as well.

Sounds like something I'll sum up on my blog.

Bo Thorsen,
Fionia Software.

--

Expert Qt and C++ developer for hire
Contact me if you need expert Qt help
http://www.fioniasoftware.dk
_______________________________________________
Qt-interest mailing list
Qt-interest at qt.nokia.com
http://lists.qt.nokia.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