Packaging error on Win10, however successful on another Win7 pc

Hello everyone,

I’m requesting help on an issue I’ve been experiencing : I’m working on an art installation running on UE4.14 but I can’t figure out how to package the game on the computer I’m working with.

This is the error I get after a few seconds (see full log below) : “PackagingResults:Error: Error Unknown Error”

UATHelper: Packaging (Windows (64-bit)): Running AutomationTool...
UATHelper: Packaging (Windows (64-bit)): Automation.ParseCommandLine: Parsing command line: -ScriptsForProject="C:/Users/Pdt/Documents/Unreal Projects/Stalagmemes_test-pckg/Stalagmemes.uproject" BuildCookRun -nocompile -nocompileeditor -installed -nop4 -project="C:/Users/Pdt/Documents/Unreal Projects/Stalagmemes_test-pckg/Stalagmemes.uproject" -cook -stage -
archive -archivedirectory=C:/Users/Pdt/Desktop/Unreal-packages_Stalagmèmes -package -clientconfig=Development -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\Pdt\Documents\Unreal Projects\Stalagmemes_test-pckg\Stalagmemes.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 Midi_Test Win64 Development -Project="C:\Users\Pdt\Documents\Unreal Projects\Stalagmemes_test-pckg\Stalagmemes.uproject"  "C:\Users\Pdt\Documents\Unreal Projects\Stalagmemes_test-pckg\Stalagmemes.uproject"  -remoteini
="C:\Users\Pdt\Documents\Unreal Projects\Stalagmemes_test-pckg" -noxge -generatemanifest -NoHotReload
UATHelper: Packaging (Windows (64-bit)): CommandUtils.Run: Run: Took 0,8246935s 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 Midi_Test Win64 Development -Project="C:\Users\Pdt\Documents\Unreal Projects\Stalagmemes_test-pckg\Stalagmemes.uproject"  "C:\Users\Pdt\Documents\Unreal Projects\Stalagmemes_test-pckg\Stalagmemes.uproject"  -remoteini
="C:\Users\Pdt\Documents\Unreal Projects\Stalagmemes_test-pckg" -noxge -NoHotReload -ignorejunk
UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: Creating makefile for Midi_Test (game project files are newer)
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 2,8515835s 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 Midi_Test Win64 Development -Project="C:\Users\Pdt\Documents\Unreal Projects\Stalagmemes_test-pckg
\Stalagmemes.uproject"  "C:\Users\Pdt\Documents\Unreal Projects\Stalagmemes_test-pckg\Stalagmemes.uproject"  -remoteini="C:\Users\Pdt\Documents\Unreal Projects\Stalagmemes_test-pckg" -noxge -NoHotReload -ignorejunk. See logfile for details: 'UnrealBuildTool-2017.05.20-17.20.13.txt' 
UATHelper: Packaging (Windows (64-bit)):    à 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)):    à 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)):    à AutomationTool.CommandUtils.RunUBT(CommandEnvironment Env, String UBTExecutable, String CommandLine, String LogName, Dictionary`2 EnvVars)
UATHelper: Packaging (Windows (64-bit)):    à 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)):    à 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, Dictionary`2 EnvVars)
UATHelper: Packaging (Windows (64-bit)):    à 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 InChangelistNumberOverride, Diction
ary`2 InTargetToManifest)
UATHelper: Packaging (Windows (64-bit)):    à Project.Build(BuildCommand Command, ProjectParams Params, Int32 WorkingCL, ProjectBuildTargets TargetMask)
UATHelper: Packaging (Windows (64-bit)):    à BuildCookRun.DoBuildCookRun(ProjectParams Params)
UATHelper: Packaging (Windows (64-bit)):    à BuildCookRun.ExecuteBuild()
UATHelper: Packaging (Windows (64-bit)):    à AutomationTool.BuildCommand.Execute()
UATHelper: Packaging (Windows (64-bit)):    à AutomationTool.Automation.Execute(List`1 CommandsToExecute, CaselessDictionary`1 Commands)
UATHelper: Packaging (Windows (64-bit)):    à AutomationTool.Automation.Process(String[] Arguments)
UATHelper: Packaging (Windows (64-bit)):    à AutomationTool.Program.MainProc(Object Param)
UATHelper: Packaging (Windows (64-bit)):    à AutomationTool.InternalUtils.RunSingleInstance(Func`2 Main, Object Param)
UATHelper: Packaging (Windows (64-bit)):    à 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

I’ve started diagnosing this issue myself by cleaning the project (removing anything unused such as levels, materials and meshes) and trying to package it on my own computer. It worked, but putting back the project on the installation PC brought the same error. I could package on my own pc but it won’t be available at the end of the development. So I need this particular Win10 computer to handle packaging cause mine

So I’m assuming the problem comes from not having the proper softwares installed on the installation PC. There’s a bunch of stuff installed, which I’ve never really known what each is for, but I know can be required (see Programs and Features snapshot below)

The installation PC specs are :

Windows 10 64-bits, i5-7600K, 16 GB RAM, GTX 1070

My own pc specs are :

Win 7 64-bits SP1, i7-2600K, 16 GB RAM, GTX 770

I’m really hoping someone will be able to help on this issue, and that I’ve provided enough information for it to be solved.

Thanks in advance, looking forward to have news on this thread. Cheers.

Thibaut

Hello,

The error message you’re referring to (Error Unknown Error) is a generic error message that means that the actual error message that describes the problem is elsewhere in the log. Please refer to the Packaging and Deployment Troubleshooting guide for more information on what you may be able to do to find the error in your log, fix your issue, what information you may need to provide for any further assistance.

Hello,
Thanks, , for your reply. I’m done with this issue, cause my last attempt to package succeded.

As you said, “error” was mentionned somewhere else in the log. And it actually requested that I installed Windows SDK 8.1. Weird, I thought, since the pc runs on Win10 and not 8.1. So I installed both, but it didn’t work.

So I checked which components were installed on Visual Studio Community 2015. I went on Control Panel/Programs and Features/Visual Studio/Modify and I installed stuff that was on my other computer (apparently useless, such as Windows XP Support for C++ and Microsoft Foundation Classes for C++ or something. And I noticed Windows SDK 10 was also available from this list, and unticked even if it was installed. So I installed it too from here.

Now it works. What I don’t understand is that it seems like my Win7 pc, which packaging worked on with the same project, didn’t have any Windows SDK installed…

Anyway, thanks for the help.
Good luck to y’all developpers and amateurs such as myself.