# How to disable Incredibuild

**URL:** <https://forums.unrealengine.com/t/how-to-disable-incredibuild/370412>\
**Category:** C++\
**Tags:** build, unreal-engine, ubt, CPP, question\
**Created:** [September 14, 2016, 12:59pm UTC](https://forums.unrealengine.com/t/how-to-disable-incredibuild/370412 "2016-09-14T12:59:45Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_2df21e76](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2df21e76](https://forums.unrealengine.com/u/anonymous_user_2df21e76)\
**Post date:** [September 14, 2016, 12:59pm UTC](https://forums.unrealengine.com/t/how-to-disable-incredibuild/370412/1 "2016-09-14T12:59:45Z")

</div>

Hello. I love the feature that UBT will automatically use Incredibuild if present, however this is preventing me from compiling entirely right now. I am on a machine that has Incredibuild but only with a partial license that is not enough to run UBT. This is what I get when trying to build:

```
 Distributing 63 actions to XGE
2> --------------------Build System Warning---------------------------------------
2> License required for build:
2> One of the following licenses is required in order to run this build in distributed mode:
2>
2> IncrediBuild for Dev Tool Acceleration
2>
2> This build will run in standalone mode.
2> Use the Coordinator application to allocate the appropriate license to this Agent.
2>
2> A Dev Tool Acceleration license is required in order to distribute and accelerate custom processes.
2> For a fully functional Dev Tool Acceleration evaluation license, please contact sales@incredibuild.com
2>
2> -------------------------------------------------------------------------------
2> Initializing...

```

And later on …

```
2>
2> 1 build system warning(s):
2> - License required for build
2>
2> ---------------------- Done ----------------------
2>
2> Rebuild All: 0 succeeded, 1 failed, 0 skipped

```

Could we have a flag in module/target rules to disable incredibuild entirely?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2df21e76](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2df21e76](https://forums.unrealengine.com/u/anonymous_user_2df21e76)\
**Post date:** [September 29, 2016, 8:40am UTC](https://forums.unrealengine.com/t/how-to-disable-incredibuild/370412/2 "2016-09-29T08:40:09Z")

</div>

Small bump, this is almost blocking at this point.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2b03d27c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2b03d27c](https://forums.unrealengine.com/u/anonymous_user_2b03d27c)\
**Post date:** [September 29, 2016, 3:27pm UTC](https://forums.unrealengine.com/t/how-to-disable-incredibuild/370412/3 "2016-09-29T15:27:42Z")

</div>

Hey Kryofenix-

You should be able to open the folder location for IncrediBuild (in the “Xoreax IncrediBuild” folder) from the start menu and select IncrediBuild Agent Settings. The first page that opens is Agent Settings - Agent - General. Here you should be able to stop the service from running.

Cheers

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2df21e76](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2df21e76](https://forums.unrealengine.com/u/anonymous_user_2df21e76)\
**Post date:** [September 29, 2016, 4:25pm UTC](https://forums.unrealengine.com/t/how-to-disable-incredibuild/370412/4 "2016-09-29T16:25:14Z")

</div>

Hey . Thanks for the answer.

Of course I can stop the service from running but this is a bit annoying. UE is the only program which I can’t use for incredibuild, so I would like to keep it running while disabling it in UBT.

---

<div class="post-metadata">

**Author:** ![Jamie\_Dale](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jamie_dale/32/1165413_2.png) [@Jamie\_Dale](https://forums.unrealengine.com/u/Jamie_Dale)\
**Post date:** [October 21, 2016, 2:42pm UTC](https://forums.unrealengine.com/t/how-to-disable-incredibuild/370412/5 "2016-10-21T14:42:13Z")

</div>

You can set `bAllowXGE` to `false` in your build configuration to disable XGE.

See `C:\Users\%USERNAME%\AppData\Roaming\Unreal Engine\UnrealBuildTool\BuildConfiguration.xml`:

```
<?xml version="1.0" encoding="utf-8" ?><Configuration xmlns="https://www.unrealengine.com/BuildConfiguration">
	<BuildConfiguration>
		<bAllowXGE>false</bAllowXGE>
	</BuildConfiguration>
</Configuration>

```

---

<div class="post-metadata">

**Author:** ![delcasda](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@delcasda](https://forums.unrealengine.com/u/delcasda)\
**Post date:** [June 9, 2018, 6:49pm UTC](https://forums.unrealengine.com/t/how-to-disable-incredibuild/370412/6 "2018-06-09T18:49:50Z")

</div>

I disabled the agent and applied the Buildconfiguration settings but still getting this error:

LogPlayLevel: Running: C:\Program Files (x86)\Xoreax\IncrediBuild\xgConsole.exe “C:\Users\Delcasda\AppData\Roaming\Unreal Engine\AutomationTool\Logs\d+Program+Files+Epic+Games+UE\_4.19\UAT\_XGE.xml” /Rebuild /MaxCPUS=200 /no\_watchdog\_thread  
LogPlayLevel: -----------------------------------------------------------------------  
LogPlayLevel: IncrediBuild Console 9.3 (build 2320)  
LogPlayLevel: Copyright (C) 2001-2018 IncrediBuild Software Ltd. All rights reserved.  
LogPlayLevel: -----------------------------------------------------------------------  
LogPlayLevel: Fatal Error: Failed to start build.  
LogPlayLevel: Failed to connect to Build Service (on local machine): Server is not reachable  
LogPlayLevel: Took 0,0515804s to run xgConsole.exe, ExitCode=3  
LogPlayLevel: ERROR: Command failed (Result:3): C:\Program Files (x86)\Xoreax\IncrediBuild\xgConsole.exe “C:\Users\Delcasda\AppData\Roaming\Unreal Engine\AutomationTool\Logs\d+Program+Files+Epic+Games+UE\_4.19\UAT\_XGE.xml” /Rebuild /MaxCPUS=200 /no\_watchdog\_thread. See logfile for details: ‘xgConsole-2018.06.09-14.44.13.txt’  
LogPlayLevel: (see C:\Users\Delcasda\AppData\Roaming\Unreal Engine\AutomationTool\Logs\d+Program+Files+Epic+Games+UE\_4.19\UAT\_Log.txt for full exception trace)  
LogPlayLevel: AutomationTool exiting with ExitCode=1 (Error\_Unknown)  
LogPlayLevel: Completed Launch On Stage: Build Task, Time: 4.507982  
LogPlayLevel: BUILD FAILED  
PackagingResults: Error: Launch failed! Unknown Error

---

<div class="post-metadata">

**Author:** ![ZeroParadigm](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZeroParadigm](https://forums.unrealengine.com/u/ZeroParadigm)\
**Post date:** [June 11, 2018, 10:54pm UTC](https://forums.unrealengine.com/t/how-to-disable-incredibuild/370412/7 "2018-06-11T22:54:26Z")

</div>

Have you tried building with the -noxge flag?

---

<div class="post-metadata">

**Author:** ![Mario\_Castro](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mario\_Castro](https://forums.unrealengine.com/u/Mario_Castro)\
**Post date:** [May 7, 2019, 9:03pm UTC](https://forums.unrealengine.com/t/how-to-disable-incredibuild/370412/8 "2019-05-07T21:03:33Z")

</div>

This is an old post but I really need a solution for incredibuild, how do I use that - noxge flag? Callling it from editor or passing it as argument for UBT, and where do I fnd UBT executable?

---

<div class="post-metadata">

**Author:** ![6r0m](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/6r0m/32/1194563_2.png) [@6r0m](https://forums.unrealengine.com/u/6r0m)\
**Post date:** [May 28, 2019, 6:08am UTC](https://forums.unrealengine.com/t/how-to-disable-incredibuild/370412/9 "2019-05-28T06:08:45Z")

</div>

post above: STAFF Oct 21 '16 at 5:42 PM  
"You can set bAllowXGE to false in your build configuration to disable XGE.  
See C:\Users%USERNAME%\AppData\Roaming\Unreal Engine\UnrealBuildTool\BuildConfiguration.xml:

```
 <?xml version="1.0" encoding="utf-8" ?><Configuration xmlns="https://www.unrealengine.com/BuildConfiguration">
     <BuildConfiguration>
         <bAllowXGE>false</bAllowXGE>
     </BuildConfiguration>
 </Configuration>

```

"  
[http://joxi.ru/Vrwo64MU7XWXLr](http://joxi.ru/Vrwo64MU7XWXLr)

---

<div class="post-metadata">

**Author:** ![JJEEGames](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jjeegames/32/1067575_2.png) [@JJEEGames](https://forums.unrealengine.com/u/JJEEGames)\
**Post date:** [August 1, 2019, 1:31pm UTC](https://forums.unrealengine.com/t/how-to-disable-incredibuild/370412/10 "2019-08-01T13:31:59Z")

</div>

Hi ,

* * *

If you still facing problems after you modified BuildConfiguration.XML, then do as the following :  
in Visual studio, choose the project and open its _properties \>\> configuration properties \>\> NMake \>\> preprocessor definition_: select EDIT and search for ( **WITH\_XGE\_CONTROLLER** ) and set its value to **0**. hopefully this will be it.

---

<div class="post-metadata">

**Author:** ![YeHaike](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@YeHaike](https://forums.unrealengine.com/u/YeHaike)\
**Post date:** [July 21, 2021, 1:17am UTC](https://forums.unrealengine.com/t/how-to-disable-incredibuild/370412/11 "2021-07-21T01:17:07Z")

</div>

Try this: 《第7期（3）： 避免“XGEController”插件和“Incredibuild”引起启动编辑器时一直卡在某个位置（如39%处）；Editor中Shader编译时卡在某位置（但是能正常使用编辑器）》 [第7期（3）： 避免“XGEController”插件和“Incredibuild”引起启动编辑器时一直卡在某个位置（如39%处）；Editor中Shader编译时卡在某位置（但是能正常使用编辑器） - 知乎](https://zhuanlan.zhihu.com/p/391545410)

---

<div class="post-metadata">

**Author:** ![YeHaike](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@YeHaike](https://forums.unrealengine.com/u/YeHaike)\
**Post date:** [July 21, 2021, 1:29am UTC](https://forums.unrealengine.com/t/how-to-disable-incredibuild/370412/12 "2021-07-21T01:29:12Z")

</div>

This approach is not suitable for the shader “XGE” compilation of the release UE4.26.1. The reason is that this configuration is a configuration file for the UBT tool(suitable for your own C++ compilation of the UnrealEngine).

---

<div class="post-metadata">

**Author:** ![YeHaike](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@YeHaike](https://forums.unrealengine.com/u/YeHaike)\
**Post date:** [July 21, 2021, 1:31am UTC](https://forums.unrealengine.com/t/how-to-disable-incredibuild/370412/13 "2021-07-21T01:31:30Z")

</div>

In other words. This means that this switch is only suitable for switching UBT’s “XGE”(i.e., compiling C++ code), and is not suitable for turning on and off the “XGE”(Incredibuild) function of Shader compilation which is compiled in parallel after starting the Editor.

---

<div class="post-metadata">

**Author:** ![YeHaike](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@YeHaike](https://forums.unrealengine.com/u/YeHaike)\
**Post date:** [July 21, 2021, 1:32am UTC](https://forums.unrealengine.com/t/how-to-disable-incredibuild/370412/14 "2021-07-21T01:32:49Z")

</div>

But you can try this to turn off the “XGE”(Incredibuild) of Shader compilation: [第7期（3）： 避免“XGEController”插件和“Incredibuild”引起启动编辑器时一直卡在某个位置（如39%处）；Editor中Shader编译时卡在某位置（但是能正常使用编辑器） - 知乎](https://zhuanlan.zhihu.com/p/391545410)
