PDA

View Full Version : colorgcc and coloring qmake output



lexfridman
10th January 2011, 03:36
Suppose I have a simple example program in a file "main.cpp". I compile the program in Linux by typing the following three commands in the terminal:



qmake -project
qmake
make


I would like for qmake to generate a Makefile that uses "colorgcc" as the compiler instead of "gcc" so that running "make" in the last step produces colored output of warnings and errors during compilation. Or is there an alternative way to color the output of the compiler in this process?

tbscope
10th January 2011, 04:29
Check the following variables:


QMAKE_CC
QMAKE_CXX