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 Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 247 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 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,

    aha_1980A 1 Reply Last reply
    0
    • M MilesQT

      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,

      aha_1980A Offline
      aha_1980A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on 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 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

        • Login

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