Why I Failed to compile UnrealHeaderTool?

Hi all,

I haven’t get UE4 built successfully. I’ve tried zipped source code on releases page and downloaded one copy from GitHub. No matter which I tried to compile, I always got following error messages:

1>------ Build started: Project: UE4, Configuration: Development_Editor x64 ------
1>  Building UnrealHeaderTool...
1>  Initializing...
1>  --------------------Build System Error-----------------------------------------
1>EXEC : Fatal error : 
1>      Target queue management failed.
1>      Error starting target 'cl: Task: Default->Action0 (Tool0)' on machine 'Local CPU 1'
1>      Failed to query process image information
1>EXEC : Failed to read 64 bytes at 0x3F6F0000 from process 0x030C memory, error 299: error 299 only part of a readprocessmemory or writeprocessmemory request was completed (299)
1>  -------------------------------------------------------------------------------
1>   
1>  1 build system error(s)
1>   
1>ERROR : UBT error : Failed to produce item: D:\UnrealEngine4.0.1\UnrealEngine\Engine\Binaries\Win64\UnrealHeaderTool.exe
1>  XGE execution time: 12.43 seconds
1>EXEC : error : UnrealHeaderTool failed for target 'UE4Editor' (platform: Win64, module info: D:\UnrealEngine4.0.1\UnrealEngine\Engine\Intermediate\Build\Win64\UE4Editor\Development\UnrealHeaderTool.manifest).
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.MakeFile.Targets(38,5): error MSB3073: command "..\..\Build\BatchFiles\Build.bat UE4Editor Win64 Development" exited with code -1.
========== Build: 0 succeeded, 1 failed, 1 up-to-date, 0 skipped ==========

I’ve spent one night reinstalling VS and redownloading UE4. Would anyone please help me out?

Hey lsatin,

What version of VS are you running?

Thank you for replying. I tried VS 2013 Ultimate and Express, but I still got same problem with both.

Hi Isatin,

Have you watched tutorial video for Downloading and Building UE4 Source? It is possible that it may mention something you may have missed. Let us know if you have followed along and are still having an issue compiling.

Also, please ensure that you have installed Microsoft Visual Studio Express 2013 for Windows Desktop for express version.

After getting same error, I installed DirectX End-User Runtimes June 2010 and it started working correctly.

I uninstalled IncrediBuild 4.0 and it worked. That version could work with UE3, but it seems to has some problems with UE4. Anyway, thank you guys for replying.

From where can I uninstall IncrediBuild 4.0? I didn’t find it in programs and functionalities windows.

Try Control Panel>Programs>Uninstall a program.

It is where I didn’t find it.

worked for me too , thx~

This can also be fixed by adding a -noxge (i.e. No Xoreax Grid Engine) flag in your configuration settings. Adding -noxge to your build flags prevents build tool from using incredibuild without uninstalling it. However, please note that current iteration of UE4 does not save this change when you generate project files. So every time you pull from your source control and generate project files you will have to re-apply flag. Additionally, you’ll have to be sure you make change to whichever configuration you’re trying to build.

Right click solution>Properties>Configuration Properties>NMake>Build Command Line

Attached is a screenshot

Thank you for information. But I don’t have to use IncrediBuild to accelerate UE4 compilation any more since UBT supports multi-core.