Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Integrate gcc-9 pretty formatting of compile output into QT creator ?
Forum Update on Monday, May 27th 2025

Integrate gcc-9 pretty formatting of compile output into QT creator ?

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 225 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    MilesQT
    wrote on 11 Nov 2019, 12:27 last edited by
    #1

    I would like to integrate the new gcc ouput feature: -fdiagnostics-format=json.

    For this I would like to redirect the gcc output to a pipe. I couldnd find a way of doing this.

    The ultimate goal would be to execute the line
    $ (gcc-9 -c file.c -Wall -fdiagnostics-format=json 2>&1) | python -m json.tool | pygmentize -l json
    and have the output formatted (like in https://developers.redhat.com/blog/2019/03/08/usability-improvements-in-gcc-9/)

    Is the gcc feature too new for the current qt creator or Im missing an important qt ability to do this?

    Regarrds,

    A 1 Reply Last reply 11 Nov 2019, 12:58
    0
    • M MilesQT
      11 Nov 2019, 12:27

      I would like to integrate the new gcc ouput feature: -fdiagnostics-format=json.

      For this I would like to redirect the gcc output to a pipe. I couldnd find a way of doing this.

      The ultimate goal would be to execute the line
      $ (gcc-9 -c file.c -Wall -fdiagnostics-format=json 2>&1) | python -m json.tool | pygmentize -l json
      and have the output formatted (like in https://developers.redhat.com/blog/2019/03/08/usability-improvements-in-gcc-9/)

      Is the gcc feature too new for the current qt creator or Im missing an important qt ability to do this?

      Regarrds,

      A Offline
      A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on 11 Nov 2019, 12:58 last edited by
      #2

      @MilesQT Which Creator version do you use?

      For me it already works as expected, only drawback is the output is not colored.

      Regards

      Qt has to stay free or it will die.

      1 Reply Last reply
      1
      • M Offline
        M Offline
        MilesQT
        wrote on 11 Nov 2019, 15:58 last edited by
        #3

        Qt Creator 4.10.0

        What do you mean with "as expected" ?

        How do you achieve this? Do you have screenshots?

        1 Reply Last reply
        0

        1/3

        11 Nov 2019, 12:27

        • Login

        • Login or register to search.
        1 out of 3
        • First post
          1/3
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved