Results 1 to 4 of 4

Thread: Define compiler in qmake

  1. #1
    Join Date
    Feb 2006
    Posts
    11
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Define compiler in qmake

    good morning-

    how do I define which compiler I want qmake to use? Qmake defaults to g++, I want it to use g++32. I'm not seeing it in the documentation but the caffeine hasn't kicked in yet either.

    Thanks.

    Philski

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Define compiler in qmake

    Change QMAKESPEC environment variable or use "qmake -spec ..." (you will need proper subdirectory in $QTDIR/mkspecs for this).

    You can also set QMAKE_CXX in the .pro file.

  3. #3
    Join Date
    Feb 2006
    Posts
    11
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Define compiler in qmake

    OK, thanks. That appears to work. It isn't in the qt-4.0.1 documentation.

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Define compiler in qmake

    Quote Originally Posted by philski
    It isn't in the qt-4.0.1 documentation.
    Did you look here?

    http://doc.trolltech.com/4.0/qmake-r...e-mode-options
    http://doc.trolltech.com/4.0/qmake-e...html#qmakespec

Similar Threads

  1. qmake sux a lot
    By singermornings in forum Qt Programming
    Replies: 6
    Last Post: 29th January 2009, 08:33
  2. odd double widgets
    By jhearon in forum Qt Programming
    Replies: 1
    Last Post: 23rd February 2008, 18:18
  3. 4.1.0 qmake compiler error - Solaris
    By Novahokie in forum Installation and Deployment
    Replies: 6
    Last Post: 19th April 2007, 18:49
  4. Compiling with Qmake/Make
    By VireX in forum Newbie
    Replies: 25
    Last Post: 22nd February 2007, 05:57
  5. Qt Cryptographic Architecture
    By vermarajeev in forum Qt Programming
    Replies: 6
    Last Post: 9th February 2007, 13:15

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.