Results 1 to 9 of 9

Thread: How to determine target architecture in qmake project file?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #6
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Wiki edits
    17

    Default Re: How to determine target architecture in qmake project file?

    These libraries of yours are not built as part of the same project with the same settings?
    Are you cross compiling?

    I think on Windows you can use QMAKE_TARGET.arch to tell "x86" from "x86_64" but that does not exist on Linux.
    On Linux something like this might get you there:
    Qt Code:
    1. linux-g++:QMAKE_TARGET.arch = $$QMAKE_HOST.arch
    2. linux-g++-32:QMAKE_TARGET.arch = x86
    3. linux-g++-64:QMAKE_TARGET.arch = x86_64
    To copy to clipboard, switch view to plain text mode 
    Lifted from : http://qt-project.org/faq/answer/how...bit_or_a_64_bi
    Last edited by ChrisW67; 27th December 2013 at 02:00. Reason: Added some stuff

  2. The following user says thank you to ChrisW67 for this useful post:

    Infinity (10th January 2014)

Similar Threads

  1. Share my qmake project file
    By ibingow in forum Qt Tools
    Replies: 0
    Last Post: 30th August 2011, 09:19
  2. Replies: 1
    Last Post: 3rd December 2009, 23:34
  3. qmake can't process project file on windows
    By s-troz in forum Qt Programming
    Replies: 3
    Last Post: 25th October 2008, 14:51
  4. making qmake create VisualStudio console app project file?
    By akos.maroy in forum Qt Programming
    Replies: 2
    Last Post: 18th August 2008, 14:45
  5. qmake: detecting x86_64 architecture?
    By akos.maroy in forum Qt Programming
    Replies: 3
    Last Post: 2nd August 2008, 11:26

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.