Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-31578

While running cmake to build a target qDebug() output is not shown from a custom build tool

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • Qt Creator 14.0.1
    • Windows

    Description

      We use custom build tools to generate for e.g. our database.

      The database is build for example with a cm command (e.g. cm test_db),

      while building the target no output from the custom tool (using qDebug/qWarning) is show on the "Compile output" window.

      The reason for this is, that the Qt Message handler forwards the output to "OutputDebugString" if no console could be acquired and in this case QtCreator doesn't show this output, which it does if you run or debug an application.

      Overriding this behavior with the environment variable 

      QT_ASSUME_STDERR_HAS_CONSOLE=1

      does show the outpout for the cmake case, but then no output is shown while debugging the application.

      I think QtCreator should also output string send to OutputDebugString on the "Compile Output" Window.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            cadam Cristian Adam
            jonjonas681 Johann Anhofer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes