[Interest] Is there a command line call to qmake to test the bit width?

Giuseppe D'Angelo dangelog at gmail.com
Wed Mar 4 18:09:49 CET 2015


On 4 March 2015 at 18:05, Scott Aron Bloom <scott.bloom at onshorecs.com> wrote:
> I am creating two versions of my tool, 32 and 64 bit.  However, I have, more
> than once, started a build against the wrong path, so it was building
> against Qt 64 when it was supposed to build against Qt 32 (or vice versa)
>
>
>
> Is there a qmake or some way, that in the setup scripts to my build, I can
> confirm the version I am running against?

In qmake see $$QT_ARCH, in your C++ file you can use QT_POINTER_SIZE.

HTH,
-- 
Giuseppe D'Angelo



More information about the Interest mailing list