编译输出
Compile Output 中显示的信息的更详细版本。
双击错误信息中的文件名可在代码编辑器中打开文件。
要取消编译,请选择Cancel Build 按钮。
要将输出复制到剪贴板,请在上下文菜单中选择Select All ,然后选择Copy 。如果您想稍后检查输出结果,而无需再次构建项目,可将其保存为文件。这对需要长时间构建的大型项目非常有用。
编译输出首选项
指定在构建应用程序时是否打开Compile Output 输出视图:
- 打开首选项:
- 在Compile Output 视图中,选择
(Configure)。
- 选择首选项>Build & Run >Compile Output 。
- 在Compile Output 视图中,选择
- 选择Open Compile Output when building 。
- 选择Discard excessive output 可丢弃不断出现的快于处理速度的编译输出。
- 在Limit output to 中,指定要显示的编译输出行的最大数量。
解析现有编译输出
您可以使用Qt Creator 的输出解析器来解析在Qt Creator 之外完成的编译输出或以前编译运行时存储的输出。默认情况下,使用活动项目所选工具包中的解析器,但也可以选择其他工具包。
要解析编译输出,请
- 访问Tools >Parse Build Output 。
- 将编译输出粘贴到Build Output ,或选择Load from File 从文件加载。
- 如果解析器希望在
stdout
上出现问题,请清除Output went to stderr 。 - 在Use parsers from kit 中,选择用于解析输出的工具包。选择Manage 查看和修改工具包设置。
- 解析器会在 "问题"中显示解析后的输出。默认情况下,在添加新输出前会清除视图。清除Clear existing tasks 可将新输出追加到旧输出中。
- 选择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.