# Packaging failure - exit code 5

**URL:** <https://forums.unrealengine.com/t/packaging-failure-exit-code-5/384423>\
**Category:** Platform & Builds\
**Tags:** package, automationtool, failure, unreal-engine, question\
**Created:** [February 9, 2017, 4:11pm UTC](https://forums.unrealengine.com/t/packaging-failure-exit-code-5/384423 "2017-02-09T16:11:16Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_2022f97f1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2022f97f1](https://forums.unrealengine.com/u/anonymous_user_2022f97f1)\
**Post date:** [February 9, 2017, 4:11pm UTC](https://forums.unrealengine.com/t/packaging-failure-exit-code-5/384423/1 "2017-02-09T16:11:16Z")

</div>

Hi!

I ran into a problem whilst trying to build one of the official UE4 tutorials. The tutorial series im talking about is this one: [Blueprint Multiplayer: Lobby Player Controller | 12 | v4.11 Tutorial Series | Unreal Engine - YouTube](https://www.youtube.com/watch?v=u-fnrC3OB5E).

I try to package it after this specific episode. I will post my packaging log, I do not use any third party plugins, i did as the tutorial suggests. Packaging fails with either shipping mode or development mode, either with 32 or 64 bit mode. Please aid me in fixing this problem.

```
UATHelper: Packaging (Windows (64-bit)): Running AutomationTool...
UATHelper: Packaging (Windows (64-bit)): Automation.ParseCommandLine: Parsing command line: -ScriptsForProject="C:/Users//Documents/Unreal Projects/SteamProject/SteamProject.uproject" BuildCookRun -nocompile -nocompileeditor -installed -nop4 -project="C:/Users//Documents/Unreal Projects/SteamProject/SteamProject.uproject" -cook -stage -arch
ive -archivedirectory=C:/Users//Downloads/ -package -clientconfig=Shipping -ue4exe=UE4Editor-Cmd.exe -pak -prereqs -nodebuginfo -targetplatform=Win64 -build -CrashReporter -utf8output
UATHelper: Packaging (Windows (64-bit)): Automation.Process: Setting up command environment.
UATHelper: Packaging (Windows (64-bit)): BuildCookRun.SetupParams: Setting up ProjectParams for C:\Users\\Documents\Unreal Projects\SteamProject\SteamProject.uproject
UATHelper: Packaging (Windows (64-bit)): Project.Build: **********BUILD COMMAND STARTED**********
UATHelper: Packaging (Windows (64-bit)): CommandUtils.Run: Run: C:\Program Files\Epic Games\UE_4.14\Engine\Binaries\DotNET\UnrealBuildTool.exe SteamProject Win64 Shipping -Project="C:\Users\\Documents\Unreal Projects\SteamProject\SteamProject.uproject" "C:\Users\\Documents\Unreal Projects\SteamProject\SteamProject.uproject" -remoteini="C:
\Users\\Documents\Unreal Projects\SteamProject" -noxge -generatemanifest -NoHotReload
UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: Performing full C++ include scan (building a new target)
UATHelper: Packaging (Windows (64-bit)): CommandUtils.Run: Run: Took 1,300165s to run UnrealBuildTool.exe, ExitCode=0
UATHelper: Packaging (Windows (64-bit)): CommandUtils.Run: Run: C:\Program Files\Epic Games\UE_4.14\Engine\Binaries\DotNET\UnrealBuildTool.exe SteamProject Win64 Shipping -Project="C:\Users\\Documents\Unreal Projects\SteamProject\SteamProject.uproject" "C:\Users\\Documents\Unreal Projects\SteamProject\SteamProject.uproject" -remoteini="C:
\Users\\Documents\Unreal Projects\SteamProject" -noxge -NoHotReload -ignorejunk
UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: Creating makefile for SteamProject (no existing makefile)
UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: Performing full C++ include scan (no include cache file)
UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: ERROR: Windows SDK v8.1 must be installed in order to build this target.
UATHelper: Packaging (Windows (64-bit)): CommandUtils.Run: Run: Took 3,7382465s to run UnrealBuildTool.exe, ExitCode=5
UATHelper: Packaging (Windows (64-bit)): Program.Main: ERROR: AutomationTool terminated with exception: AutomationTool.CommandUtils+CommandFailedException: Command failed (Result:5): C:\Program Files\Epic Games\UE_4.14\Engine\Binaries\DotNET\UnrealBuildTool.exe SteamProject Win64 Shipping -Project="C:\Users\\Documents\Unreal Projects\SteamProject\St
eamProject.uproject" "C:\Users\\Documents\Unreal Projects\SteamProject\SteamProject.uproject" -remoteini="C:\Users\\Documents\Unreal Projects\SteamProject" -noxge -NoHotReload -ignorejunk. See logfile for details: 'UnrealBuildTool-2017.02.09-17.08.26.txt' 
UATHelper: Packaging (Windows (64-bit)): a következő helyen: AutomationTool.CommandUtils.RunAndLog(String App, String CommandLine, String Logfile, Int32 MaxSuccessCode, String Input, ERunOptions Options, Dictionary`2 EnvVars, SpewFilterCallbackType SpewFilterCallback)
UATHelper: Packaging (Windows (64-bit)): a következő helyen: AutomationTool.CommandUtils.RunAndLog(CommandEnvironment Env, String App, String CommandLine, String LogName, Int32 MaxSuccessCode, String Input, ERunOptions Options, Dictionary`2 EnvVars, SpewFilterCallbackType SpewFilterCallback)
UATHelper: Packaging (Windows (64-bit)): a következő helyen: AutomationTool.CommandUtils.RunUBT(CommandEnvironment Env, String UBTExecutable, String CommandLine, String LogName, Dictionary`2 EnvVars)
UATHelper: Packaging (Windows (64-bit)): a következő helyen: AutomationTool.CommandUtils.RunUBT(CommandEnvironment Env, String UBTExecutable, FileReference Project, String Target, String Platform, String Config, String AdditionalArgs, String LogName, Dictionary`2 EnvVars)
UATHelper: Packaging (Windows (64-bit)): a következő helyen: AutomationTool.UE4Build.BuildWithUBT(String TargetName, UnrealTargetPlatform TargetPlatform, String Config, FileReference UprojectPath, Boolean ForceMonolithic, Boolean ForceNonUnity, Boolean ForceDebugInfo, Boolean ForceFlushMac, Boolean DisableXGE, String InAddArgs, Boolean ForceUnity, Diction
ary`2 EnvVars)
UATHelper: Packaging (Windows (64-bit)): a következő helyen: AutomationTool.UE4Build.Build(BuildAgenda Agenda, Nullable`1 InDeleteBuildProducts, Boolean InUpdateVersionFiles, Boolean InForceNoXGE, Boolean InUseParallelExecutor, Boolean InForceNonUnity, Boolean InForceUnity, Boolean InShowProgress, Dictionary`2 PlatformEnvVars, Nullable`1 InChangelistNumbe
rOverride, Dictionary`2 InTargetToManifest)
UATHelper: Packaging (Windows (64-bit)): a következő helyen: Project.Build(BuildCommand Command, ProjectParams Params, Int32 WorkingCL, ProjectBuildTargets TargetMask)
UATHelper: Packaging (Windows (64-bit)): a következő helyen: BuildCookRun.DoBuildCookRun(ProjectParams Params)
UATHelper: Packaging (Windows (64-bit)): a következő helyen: BuildCookRun.ExecuteBuild()
UATHelper: Packaging (Windows (64-bit)): a következő helyen: AutomationTool.BuildCommand.Execute()
UATHelper: Packaging (Windows (64-bit)): a következő helyen: AutomationTool.Automation.Execute(List`1 CommandsToExecute, CaselessDictionary`1 Commands)
UATHelper: Packaging (Windows (64-bit)): a következő helyen: AutomationTool.Automation.Process(String[] Arguments)
UATHelper: Packaging (Windows (64-bit)): a következő helyen: AutomationTool.Program.MainProc(Object Param)
UATHelper: Packaging (Windows (64-bit)): a következő helyen: AutomationTool.InternalUtils.RunSingleInstance(Func`2 Main, Object Param)
UATHelper: Packaging (Windows (64-bit)): a következő helyen: AutomationTool.Program.Main()
UATHelper: Packaging (Windows (64-bit)): Program.Main: AutomationTool exiting with ExitCode=5 (5)
UATHelper: Packaging (Windows (64-bit)): BUILD FAILED
PackagingResults:Error: Error Unknown Error

```

---

<div class="post-metadata">

**Author:** ![project.gheist](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@project.gheist](https://forums.unrealengine.com/u/project.gheist)\
**Post date:** [February 9, 2017, 4:20pm UTC](https://forums.unrealengine.com/t/packaging-failure-exit-code-5/384423/2 "2017-02-09T16:20:28Z")

</div>

HI andristarr,

> UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: ERROR: Windows SDK v8.1 must be installed in order to build this target.

Go to [Windows SDK and emulator archive | Microsoft Developer](http://msdn.microsoft.com/en-us/windows/desktop/bg162891.aspx) and download Windows SDK v8.1. Then restart your computer.

Cheers,

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2022f97f1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2022f97f1](https://forums.unrealengine.com/u/anonymous_user_2022f97f1)\
**Post date:** [February 9, 2017, 4:35pm UTC](https://forums.unrealengine.com/t/packaging-failure-exit-code-5/384423/3 "2017-02-09T16:35:44Z")

</div>

Hey!

Im amazed by the fast answer, thank you. I installed the above mentioned SDK, but i get the same error.

```
LogDirectoryWatcher:Warning: Failed to begin reading directory changes for ../../../../../../Users//Documents/Unreal Projects/SteamProject/Plugins/. Error: A rendszer nem találja a megadott fájlt. (0x00000002)
LogUObjectGlobals:Warning: Failed to find object 'Class None.'
LogContentBrowser: Native class hierarchy updated for 'HierarchicalLODOutliner' in 0.0006 seconds. Added 1 classes and 2 folders.
LogLoad: (Engine Initialization) Total time: 26.09 seconds
LogLoad: (Engine Initialization) Total Blueprint compile time: 0.28 seconds
LogExternalProfiler: Found external profiler: VSPerf
LogExternalProfiler: Using external profiler: VSPerf
LogOcInput: OculusInput pre-init called
LogContentStreaming: Texture pool size now 1000 MB
LogRenderer: Reallocating scene render targets to support 1248x660 NumSamples 1 (Frame:2).
LogAssetRegistry: Asset discovery search completed in 16.5068 seconds
LogCollectionManager: Rebuilt the object cache for 0 collections in 0.000001 seconds (found 0 objects)
LogCollectionManager: Fixed up redirectors for 0 collections in 0.000024 seconds (updated 0 objects)
LogDirectoryWatcher: A directory notification for '../../../Engine/Plugins/' was aborted.
UATHelper: Packaging (Windows (64-bit)): Running AutomationTool...
UATHelper: Packaging (Windows (64-bit)): Automation.ParseCommandLine: Parsing command line: -ScriptsForProject="C:/Users//Documents/Unreal Projects/SteamProject/SteamProject.uproject" BuildCookRun -nocompile -nocompileeditor -installed -nop4 -project="C:/Users//Documents/Unreal Projects/SteamProject/SteamProject.uproject" -cook -stage -arch
ive -archivedirectory=C:/Users//Downloads/ -package -clientconfig=Shipping -ue4exe=UE4Editor-Cmd.exe -pak -prereqs -nodebuginfo -targetplatform=Win64 -build -CrashReporter -utf8output
UATHelper: Packaging (Windows (64-bit)): Automation.Process: Setting up command environment.
UATHelper: Packaging (Windows (64-bit)): BuildCookRun.SetupParams: Setting up ProjectParams for C:\Users\\Documents\Unreal Projects\SteamProject\SteamProject.uproject
UATHelper: Packaging (Windows (64-bit)): Project.Build: **********BUILD COMMAND STARTED**********
UATHelper: Packaging (Windows (64-bit)): CommandUtils.Run: Run: C:\Program Files\Epic Games\UE_4.14\Engine\Binaries\DotNET\UnrealBuildTool.exe SteamProject Win64 Shipping -Project="C:\Users\\Documents\Unreal Projects\SteamProject\SteamProject.uproject" "C:\Users\\Documents\Unreal Projects\SteamProject\SteamProject.uproject" -remoteini="C:
\Users\\Documents\Unreal Projects\SteamProject" -noxge -generatemanifest -NoHotReload
UATHelper: Packaging (Windows (64-bit)): CommandUtils.Run: Run: Took 1,8507346s to run UnrealBuildTool.exe, ExitCode=0
UATHelper: Packaging (Windows (64-bit)): CommandUtils.Run: Run: C:\Program Files\Epic Games\UE_4.14\Engine\Binaries\DotNET\UnrealBuildTool.exe SteamProject Win64 Shipping -Project="C:\Users\\Documents\Unreal Projects\SteamProject\SteamProject.uproject" "C:\Users\\Documents\Unreal Projects\SteamProject\SteamProject.uproject" -remoteini="C:
\Users\\Documents\Unreal Projects\SteamProject" -noxge -NoHotReload -ignorejunk
UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: Creating makefile for SteamProject (no existing makefile)
UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: Performing full C++ include scan (no include cache file)
UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: ERROR: No 32-bit compiler toolchain found in C:\Program Files (x86)\Visual Studio Community\VC\bin\cl.exe
UATHelper: Packaging (Windows (64-bit)): CommandUtils.Run: Run: Took 22,1738211s to run UnrealBuildTool.exe, ExitCode=5
UATHelper: Packaging (Windows (64-bit)): Program.Main: ERROR: AutomationTool terminated with exception: AutomationTool.CommandUtils+CommandFailedException: Command failed (Result:5): C:\Program Files\Epic Games\UE_4.14\Engine\Binaries\DotNET\UnrealBuildTool.exe SteamProject Win64 Shipping -Project="C:\Users\\Documents\Unreal Projects\SteamProject\St
eamProject.uproject" "C:\Users\\Documents\Unreal Projects\SteamProject\SteamProject.uproject" -remoteini="C:\Users\\Documents\Unreal Projects\SteamProject" -noxge -NoHotReload -ignorejunk. See logfile for details: 'UnrealBuildTool-2017.02.09-17.33.43.txt' 
UATHelper: Packaging (Windows (64-bit)): a következő helyen: AutomationTool.CommandUtils.RunAndLog(String App, String CommandLine, String Logfile, Int32 MaxSuccessCode, String Input, ERunOptions Options, Dictionary`2 EnvVars, SpewFilterCallbackType SpewFilterCallback)
UATHelper: Packaging (Windows (64-bit)): a következő helyen: AutomationTool.CommandUtils.RunAndLog(CommandEnvironment Env, String App, String CommandLine, String LogName, Int32 MaxSuccessCode, String Input, ERunOptions Options, Dictionary`2 EnvVars, SpewFilterCallbackType SpewFilterCallback)
UATHelper: Packaging (Windows (64-bit)): a következő helyen: AutomationTool.CommandUtils.RunUBT(CommandEnvironment Env, String UBTExecutable, String CommandLine, String LogName, Dictionary`2 EnvVars)
UATHelper: Packaging (Windows (64-bit)): a következő helyen: AutomationTool.CommandUtils.RunUBT(CommandEnvironment Env, String UBTExecutable, FileReference Project, String Target, String Platform, String Config, String AdditionalArgs, String LogName, Dictionary`2 EnvVars)
UATHelper: Packaging (Windows (64-bit)): a következő helyen: AutomationTool.UE4Build.BuildWithUBT(String TargetName, UnrealTargetPlatform TargetPlatform, String Config, FileReference UprojectPath, Boolean ForceMonolithic, Boolean ForceNonUnity, Boolean ForceDebugInfo, Boolean ForceFlushMac, Boolean DisableXGE, String InAddArgs, Boolean ForceUnity, Diction
ary`2 EnvVars)
UATHelper: Packaging (Windows (64-bit)): a következő helyen: AutomationTool.UE4Build.Build(BuildAgenda Agenda, Nullable`1 InDeleteBuildProducts, Boolean InUpdateVersionFiles, Boolean InForceNoXGE, Boolean InUseParallelExecutor, Boolean InForceNonUnity, Boolean InForceUnity, Boolean InShowProgress, Dictionary`2 PlatformEnvVars, Nullable`1 InChangelistNumbe
rOverride, Dictionary`2 InTargetToManifest)
UATHelper: Packaging (Windows (64-bit)): a következő helyen: Project.Build(BuildCommand Command, ProjectParams Params, Int32 WorkingCL, ProjectBuildTargets TargetMask)
UATHelper: Packaging (Windows (64-bit)): a következő helyen: BuildCookRun.DoBuildCookRun(ProjectParams Params)
UATHelper: Packaging (Windows (64-bit)): a következő helyen: BuildCookRun.ExecuteBuild()
UATHelper: Packaging (Windows (64-bit)): a következő helyen: AutomationTool.BuildCommand.Execute()
UATHelper: Packaging (Windows (64-bit)): a következő helyen: AutomationTool.Automation.Execute(List`1 CommandsToExecute, CaselessDictionary`1 Commands)
UATHelper: Packaging (Windows (64-bit)): a következő helyen: AutomationTool.Automation.Process(String[] Arguments)
UATHelper: Packaging (Windows (64-bit)): a következő helyen: AutomationTool.Program.MainProc(Object Param)
UATHelper: Packaging (Windows (64-bit)): a következő helyen: AutomationTool.InternalUtils.RunSingleInstance(Func`2 Main, Object Param)
UATHelper: Packaging (Windows (64-bit)): a következő helyen: AutomationTool.Program.Main()
UATHelper: Packaging (Windows (64-bit)): Program.Main: AutomationTool exiting with ExitCode=5 (5)
UATHelper: Packaging (Windows (64-bit)): BUILD FAILED
PackagingResults:Error: Error Unknown Error

```

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2022f97f1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2022f97f1](https://forums.unrealengine.com/u/anonymous_user_2022f97f1)\
**Post date:** [February 9, 2017, 4:38pm UTC](https://forums.unrealengine.com/t/packaging-failure-exit-code-5/384423/4 "2017-02-09T16:38:34Z")

</div>

nvm i see it doesnt find the c++ compiler.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2022f97f1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2022f97f1](https://forums.unrealengine.com/u/anonymous_user_2022f97f1)\
**Post date:** [February 9, 2017, 4:40pm UTC](https://forums.unrealengine.com/t/packaging-failure-exit-code-5/384423/5 "2017-02-09T16:40:44Z")

</div>

though i have no clue, how im i supposed to fix it, from where this thing should be installed?

---

<div class="post-metadata">

**Author:** ![project.gheist](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@project.gheist](https://forums.unrealengine.com/u/project.gheist)\
**Post date:** [February 9, 2017, 4:59pm UTC](https://forums.unrealengine.com/t/packaging-failure-exit-code-5/384423/6 "2017-02-09T16:59:08Z")

</div>

Did you restart your computer?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2022f97f1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2022f97f1](https://forums.unrealengine.com/u/anonymous_user_2022f97f1)\
**Post date:** [February 9, 2017, 5:18pm UTC](https://forums.unrealengine.com/t/packaging-failure-exit-code-5/384423/7 "2017-02-09T17:18:38Z")

</div>

yes! Also i found out i was mistaken. when i tried to compile it for the first time, i had thought it will install everything needed. Turns out you have to rerun the installer and then manually check the c++ language for installion.

 ![125588-howto.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/e/f/0efd0d8f846441ea301b43ffc4a2624de5880fa6.png)
