[Qt-interest] How do I tell with qmake whether system is 64 or 32-bit?
Bob Hood
bhood2 at comcast.net
Thu Jun 9 02:51:10 CEST 2011
On 6/8/2011 6:06 PM, Nikos Chantziaras wrote:
> Then how do I link to the correct library?
I don't think there's a way to detect it explicitly from within a qmake
environment. We typically pass it in as a configuration flag, and then
reference that setting within the *.pro files (e.g., "CONFIG+=32_dll").
A simple Python script can detect/configure your environment, set flags
appropriately for the qmake execution, and then launch 'qmake' for you with
the settings. Under Windows, there are environment variables available that
indicate 32- or 64-bit OS; Linux will report the architecture using the "uname
-m" command (e.g., "i686" for 32-bit, "x86_64" for 64-bit). The Mac doesn't
really have a distinction.
There are ways to do it if you really need it. :)
Render me gone, |||
Bob ^(===)^
---------------------------------oOO--(_)--OOo---------------------------------
We can't all be architects. Some of us excel at building from the blueprints.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110608/18e590e9/attachment.html
More information about the Qt-interest-old
mailing list