Results 1 to 2 of 2

Thread: colorgcc and coloring qmake output

  1. #1
    Join Date
    Mar 2008
    Posts
    7
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default colorgcc and coloring qmake output

    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:

    Qt Code:
    1. qmake -project
    2. qmake
    3. make
    To copy to clipboard, switch view to plain text mode 

    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?

  2. #2
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: colorgcc and coloring qmake output

    Check the following variables:

    Qt Code:
    1. QMAKE_CC
    2. QMAKE_CXX
    To copy to clipboard, switch view to plain text mode 

Similar Threads

  1. Coloring Circle
    By Jeneo W. in forum Qt Programming
    Replies: 1
    Last Post: 11th October 2010, 04:39
  2. Coloring a QTableview column
    By Potch in forum Qt Programming
    Replies: 2
    Last Post: 4th April 2009, 23:18
  3. qmake, uic and moc output folders
    By gri in forum Qt Programming
    Replies: 2
    Last Post: 30th March 2007, 18:55
  4. qmake debug/release scope and disabling debugging output
    By No-Nonsense in forum Qt Programming
    Replies: 7
    Last Post: 12th March 2007, 15:48
  5. qmake and debug output
    By mattie in forum Qt Programming
    Replies: 7
    Last Post: 18th September 2006, 22:33

Tags for this Thread

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.