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

Scott Aron Bloom scott.bloom at onshorecs.com
Wed Mar 4 18:15:45 CET 2015


-----Original Message-----
From: Giuseppe D'Angelo [mailto:dangelog at gmail.com] 
Sent: Wednesday, March 04, 2015 9:10 AM
To: Scott Aron Bloom
Cc: interest at qt-project.org
Subject: Re: [Interest] Is there a command line call to qmake to test the bit width?

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,
--


By then its too late.. I want the shell script that calls the make system to fail, saying you have the qmake setup wrong...

Its really only an issue when linking, since it will pick up the wrong libraries.
 
Scott


More information about the Interest mailing list