提高Qt Creator编译速度的7种方法の扩展篇:IncrediBuild v9.x使用详解,与Qt Creator v4.10搭配提速(2)

简介: 提高Qt Creator编译速度的7种方法の扩展篇:IncrediBuild v9.x使用详解,与Qt Creator v4.10搭配提速

重点关注一下参数,要确保正确

如果是MinGW编译器Make command:F:\Qt\Qt5.12.5\5.12.5\mingw73_32\bin\qmake.exe

如果是MSVC编译器Make command:F:\Qt\Qt5.12.5\5.12.5\msvc2017\bin\qmake.exe

Make arguments:F:\tmp-source\qt-hmi\HmiFuncDesigner-master\HmiFuncDesigner\HmiFuncDesigner.pro -spec win32-g++ "CONFIG+=debug" "CONFIG+=qml_debug"

Profile.xml:F:\profile.xml

其中profile.xml的内容如下:

<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<Profile FormatVersion="1">
  <Tools>
    <Tool Filename="mingw32-make.exe" AllowRemote="true" />
    <Tool Filename="qmake.exe" AllowRemote="true" />
    <Tool Filename="jom.exe" AllowRemote="true" />
    <Tool Filename="moc.exe" AllowRemote="true" />
    <Tool Filename="rcc.exe" AllowRemote="true" />
    <Tool Filename="uic.exe" AllowRemote="true" />
    <Tool Filename="lupdate.exe" AllowRemote="true" />
    <Tool Filename="lrelease.exe" AllowRemote="true" />
  </Tools>
</Profile>


6、新增IncrediBuild实现的Make的配置


重点关注一下参数,要确保正确

如果是MinGW编译器Make command:F:\Qt\Qt5.12.5\Tools\mingw730_32\bin\mingw32-make.exe

如果是MSVC编译器Make command:F:\Qt\Qt5.12.5\Tools\QtCreator\bin\jom.exe

Make arguments:-j4

Profile.xml:F:\profile.xml

profile.xml的文件内容与第5步相同


7、新增IncrediBuild实现的清除的配置


重点关注一下参数,要确保正确

Make command:F:\Qt\Qt5.12.5\Tools\mingw730_32\bin\mingw32-make.exe

Make arguments:clean -j4

Profile.xml:F:\profile.xml

profile.xml的文件内容与第5步相同


8、Qt Creator主菜单-构建-构建项目



五、联机的配置


1、举例两台电脑,电脑1是服务器,电脑2是客户端。两电脑都需要安装IncrediBuild。License在电脑1安装了,电脑2就装不了了,但是客户端不需要License也能用于连接服务器。


2、服务器配置

image.png



3、客户端配置

image.png


image.png


image.png



3、客户端连接上服务器之后,可以监控的到。只需在服务器的Qt Creator点击编译项目即可,客户端会自动帮忙分摊。如图所示的Helping 1 Agent。


image.png


恭喜你,提速成功!!




----------------------------------------------------------------附录---------------------------------------------------------------


incredibuild官方的文档:


Qt Creator中文官网说明:https://incredibuild.atlassian.net/wiki/spaces/IUMC/pages/449314876/IncrediBuild+Qt+Creator


Qt Creator英文官网说明:https://incredibuild.atlassian.net/wiki/spaces/IUM/pages/19202836/IncrediBuild+for+Qt+Creator

incredibuild自定义安装说明:https://incredibuild.atlassian.net/wiki/spaces/IUMC/pages/449315036

incredibuild从Visual Studio 2017内安装:https://incredibuild.atlassian.net/wiki/spaces/IUMC/pages/449315118/Visual+Studio+2017


incredibuild英文用户手册:https://incredibuild.atlassian.net/wiki/spaces/IUM/overview

incredibuild中文用户手册:https://incredibuild.atlassian.net/wiki/spaces/IUMC/overview

Creating a Profile XML File用户手册:https://incredibuild.atlassian.net/wiki/spaces/IUM/pages/13303979/Creating+a+Profile+XML+File



相关文章
|
4天前
|
编译器 C语言 Windows
cryptopp使用Qt mingw编译,以及海思平台交叉编译
cryptopp使用Qt mingw编译,以及海思平台交叉编译
33 0
|
4天前
QT中HASH函数方法
QT中HASH函数方法
129 0
|
4天前
|
开发框架 Unix Linux
深度探索:Qt CMake工程编译后的自动打包策略
深度探索:Qt CMake工程编译后的自动打包策略
42 0
|
4天前
|
数据可视化 开发工具 C++
Qt Creator 界面
Qt Creator 界面
|
4天前
|
数据可视化 NoSQL 编译器
Qt Creator 新建项目
Qt Creator 新建项目
|
4天前
|
Windows
解决windows下Qt Creator显示界面过大的问题
解决windows下Qt Creator显示界面过大的问题
|
4天前
|
编解码
qt中使用dll库的方法
qt中使用dll库的方法
24 2
|
4天前
|
编译器
正点原子IMX6ULL-安装交叉编译器、编译tslib触摸屏库、编译arm环境qt源代码
正点原子IMX6ULL-安装交叉编译器、编译tslib触摸屏库、编译arm环境qt源代码
|
4天前
|
自然语言处理 编译器 程序员
【Qt底层之 元对象的编译】Qt 元对象系统及其编译流程解析
【Qt底层之 元对象的编译】Qt 元对象系统及其编译流程解析
109 4
|
4天前
|
算法 编译器 Linux
【Qt4 部署】ARM系统上使用Qt 4 进行开发的QWS 等环境变量部署
【Qt4 部署】ARM系统上使用Qt 4 进行开发的QWS 等环境变量部署
29 0

推荐镜像

更多