If you are trying to figure out which qmake created the Makefile your script is using, you can try call "make qmake -n". This will give you the qmake command that is being used including the path to qmake itself. You can then query that qmake for the QMAKE_SPEC it is defaults to (linux-g++-64 or linux-g++-32).
On Wed, Mar 4, 2015 at 11:16 AM Scott Aron Bloom <[email protected]> wrote: > -----Original Message----- > From: Giuseppe D'Angelo [mailto:[email protected]] > Sent: Wednesday, March 04, 2015 9:10 AM > To: Scott Aron Bloom > Cc: [email protected] > 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 <[email protected]> > 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 > _______________________________________________ > Interest mailing list > [email protected] > http://lists.qt-project.org/mailman/listinfo/interest >
_______________________________________________ Interest mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/interest
