Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. [solved] Qt Creator. How to use C++ error parser for custom build step?

[solved] Qt Creator. How to use C++ error parser for custom build step?

Scheduled Pinned Locked Moved Qt Creator and other tools
5 Posts 4 Posters 2.9k 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.
  • V Offline
    V Offline
    VC15
    wrote on last edited by
    #1

    Hi, everybody!

    I compile my C++ project via Custom Build Step which calls a special Windows-batch script. This script uses PuTTy's plink to login to a remote server and execute make there.

    I can see make's output in "Compile Output" pane but compiler error messages are not shown in the "Issues" pane.

    Is it possible to have GCC error parser parse my script's output to the "Issues" pane?

    1 Reply Last reply
    0
    • R Offline
      R Offline
      rst256
      wrote on last edited by
      #2

      g cc -o <file> Place the output into <file>
      also gcc can output to stdout instead stderr, but options I do not remember

      1 Reply Last reply
      0
      • JohanSoloJ Offline
        JohanSoloJ Offline
        JohanSolo
        wrote on last edited by
        #3

        [quote author="rst256" date="1409105150"]g cc -o <file> Place the output into <file>
        also gcc can output to stdout instead stderr, but options I do not remember[/quote]

        gcc's -o option allows to specify the name of the output (i.e. produced) file. This does not allow to redirect the output!

        To redirect the output in a file you should use gcc ... > file

        `They did not know it was impossible, so they did it.'
        -- Mark Twain

        1 Reply Last reply
        0
        • V Offline
          V Offline
          VC15
          wrote on last edited by
          #4

          Thank you, guys! You didn't answer my question but helped me to find the solution.

          My script returned compiler output in stdout. As I experimentally discovered Qt Creator parses compiler's stderr. So I changed my script so that now it writes compiler's output to stderr.

          1 Reply Last reply
          0
          • F Offline
            F Offline
            ferdymercury
            wrote on last edited by
            #5

            QtCreator 5 (maybe earlier, too) supports parsing also stdout, not only stderr:

            f86f6586-da34-4509-a919-1913da13e887-image.png

            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