Results 1 to 5 of 5

Thread: project file for 64 and 32 bit under linux

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #5
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: project file for 64 and 32 bit under linux

    Ok, I read the docs for you:
    Qt Code:
    1. BITSIZE = $$system(getconf LONG_BIT)
    2. if (contains(BITSIZE, 64)) {
    3. message($$BITSIZE)
    4. }
    5. if (contains(BITSIZE, 32)) {
    6. message($$BITSIZE)
    7. }
    8.  
    9. linux-g++ {
    10. message(On Linux)
    11. }
    12. macx-g++ {
    13. message(On Mac)
    14. }
    To copy to clipboard, switch view to plain text mode 
    for
    qmake -spec macx-g++ test.pro
    it outputs
    Project MESSAGE: 64
    Project MESSAGE: On Mac

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

    harakiri (20th July 2010)

Similar Threads

  1. Replies: 1
    Last Post: 3rd December 2009, 23:34
  2. Transvering project betwen Linux and Windows
    By frenk_castle in forum Newbie
    Replies: 3
    Last Post: 22nd November 2009, 11:34
  3. Compiling Linux project on Mac
    By December in forum Newbie
    Replies: 2
    Last Post: 25th March 2007, 04:25
  4. Project generation on linux from QT Project
    By darpan in forum Qt Programming
    Replies: 6
    Last Post: 11th December 2006, 09:43
  5. Project won't compile under Windows (works under Linux)
    By philski in forum Qt Programming
    Replies: 7
    Last Post: 14th September 2006, 15:29

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.