重点关注一下参数,要确保正确
如果是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、服务器配置
3、客户端配置
3、客户端连接上服务器之后,可以监控的到。只需在服务器的Qt Creator点击编译项目即可,客户端会自动帮忙分摊。如图所示的Helping 1 Agent。
恭喜你,提速成功!!
----------------------------------------------------------------附录---------------------------------------------------------------
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