解析构建输出

您可以使用Qt Creator 的输出解析器,来解析在Qt Creator 之外执行的构建所产生的输出,或从之前的构建运行中保存的输出。默认情况下,系统会使用当前活动项目所选套件中的解析器,但您也可以选择其他套件。

要解析构建输出:

  1. 转到“Tools ” > “Parse Build Output ”,或在“Issues ”视图中选择“根据外部构建输出创建问题 ”(Create Issues From External Build Output )。

    解析构建输出对话框

  2. 将构建输出粘贴到“Build Output ”中,或选择“Load from File ”从文件中加载。
  3. 如果解析器期望在stdout 上处理问题,请清空Output went to stderr 中的内容。
  4. 在“Use parsers from kit ”中,选择用于解析输出的套件。选择“Manage ”以查看和修改套件设置。
  5. 解析器会在“Issues ”中显示已解析的输出。默认情况下,在添加新输出前会清空视图。清除“Clear existing tasks ”可将新输出追加到旧输出之后。
  6. 选择“OK ”以开始解析。

另请参阅 “已知问题”。

Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.