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

Bo Thorsen bo at fioniasoftware.dk
Thu Jun 9 21:40:40 CEST 2011


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



More information about the Qt-interest-old mailing list