PDA

View Full Version : Define compiler in qmake



philski
24th April 2006, 16:56
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

jacek
24th April 2006, 18:01
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.

philski
24th April 2006, 19:22
OK, thanks. That appears to work. It isn't in the qt-4.0.1 documentation.

wysota
24th April 2006, 21:47
It isn't in the qt-4.0.1 documentation.

Did you look here?

http://doc.trolltech.com/4.0/qmake-running.html#makefile-mode-options
http://doc.trolltech.com/4.0/qmake-environment-reference.html#qmakespec