Build Game for HTML5
I’m getting stuck at the “Build game for HTML5” task in the Game Launcher.
I’ve followed the recommended steps (although I’m using 4.3 not release) and have installed the required and optional files. I’ve rebuilt UE4 and UE4FrontendLauncher. Currently using Emscripten 1.16.
here’s the launcher.log
UnrealBuildTool: [157/162] python.exe cxa_demangle.cpp
UnrealBuildTool: CRITICAL root: The JavaScript shell used for compiling (C:/Program Files/Microsoft HPC Pack 2008 R2/Bin/node.exe) does not seem to work, check the paths in ~/.emscripten
UnrealBuildTool: CRITICAL root: The JavaScript shell used for compiling (C:/Program Files/Microsoft HPC Pack 2008 R2/Bin/node.exe) does not seem to work, check the paths in ~/.emscripten
UnrealBuildTool: WARNING root: cannot check node version: invalid literal for int() with base 10: 'Node Commands/r/n/r/nSyntax:/r/n node {operator} [options] [arguments]/r/n/r/nParameters:/r/n /? or /help - Display this help message'
UnrealBuildTool: INFO root: (Emscripten: Running sanity checks)
UnrealBuildTool: CRITICAL root: The JavaScript shell used for compiling (C:/Program Files/Microsoft HPC Pack 2008 R2/Bin/node.exe) does not seem to work, check the paths in ~/.emscripten
UnrealBuildTool: -------- End Detailed Actions Stats -----------------------------------------------------------
UnrealBuildTool: ERROR: UBT ERROR: Failed to produce item: D:\\Unreal4\Engine\Binaries\HTML5\UE4Game.js
UnrealBuildTool: Cumulative action seconds (12 processors): 0.00 building projects, 99.18 compiling, 0.00 creating app bundles, 0.00 generating debug info, 0.00 linking, 0.00 other
UnrealBuildTool: UBT execution time: 16.26 seconds
CommandUtils.Run: Run: Took 16.4159389s to run UnrealBuildTool.exe
BuildCommand.Execute: ERROR: BUILD FAILED
Program.Main: ERROR: AutomationTool terminated with exception:
Program.Main: ERROR: Exception in AutomationTool: Command failed (Result:2): D:\\Unreal4\Engine\Binaries\DotNET\UnrealBuildTool.exe UE4Game HTML5 Development -noxge. See logfile for details: 'UnrealBuildTool.txt'
Stacktrace: at AutomationTool.CommandUtils.RunAndLog(String App, String CommandLine, String Logfile, Int32 MaxSuccessCode, String Input, ERunOptions Options) in d:\\Unreal4\Engine\Source\Programs\AutomationTool\ProcessUtils.cs:line 775
at AutomationTool.CommandUtils.RunUBT(CommandEnvironment Env, String UBTExecutable, String CommandLine, String LogName) in d:\\Unreal4\Engine\Source\Programs\AutomationTool\UBTUtils.cs:line 29
at AutomationTool.UE4Build.BuildWithUBT(String ProjectName, String TargetName, UnrealTargetPlatform TargetPlatform, String Config, String UprojectPath, Boolean ForceMonolithic, Boolean ForceNonUnity, Boolean ForceDebugInfo, Boolean ForceFlushMac, Boolean DisableXGE, String InAddArgs, Boolean ForceUnity) in d:\\Unreal4\Engine\Source\Programs\AutomationTool\UE4Build.cs:line 321
at AutomationTool.UE4Build.Build(BuildAgenda Agenda, Nullable`1 InDeleteBuildProducts, Boolean InUpdateVersionFiles, Boolean InForceNoXGE, Boolean InForceNonUnity, Boolean InForceUnity) in d:\\Unreal4\Engine\Source\Programs\AutomationTool\UE4Build.cs:line 1273
at Project.Build(BuildCommand Command, ProjectParams Params, Int32 WorkingCL) in d:\\Unreal4\Engine\Source\Programs\AutomationTool\Scripts\BuildProjectCommand.Automation.cs:line 111
at BuildCookRun.DoBuildCookRun(ProjectParams Params) in d:\\Unreal4\Engine\Source\Programs\AutomationTool\Scripts\BuildCookRun.Automation.cs:line 235
at BuildCommand.Execute() in d:\\Unreal4\Engine\Source\Programs\AutomationTool\BuildCommand.cs:line 37
at AutomationTool.Automation.Execute(List`1 CommandsToExecute, CaselessDictionary`1 Commands) in d:\\Unreal4\Engine\Source\Programs\AutomationTool\Automation.cs:line 362
at AutomationTool.Automation.Process(String] CommandLine) in d:\\Unreal4\Engine\Source\Programs\AutomationTool\Automation.cs:line 330
at AutomationTool.Program.MainProc(Object Param) in d:\\Unreal4\Engine\Source\Programs\AutomationTool\Program.cs:line 99
at AutomationTool.InternalUtils.RunSingleInstance(MainProc Main, Object Param) in d:\\Unreal4\Engine\Source\Programs\AutomationTool\Utils.cs:line 610
at AutomationTool.Program.Main() in d:\\Unreal4\Engine\Source\Programs\AutomationTool\Program.cs:line 50
Program.Main: ERROR: Command failed (Result:2): D:\\Unreal4\Engine\Binaries\DotNET\UnrealBuildTool.exe UE4Game HTML5 Development -noxge. See logfile for details: 'UnrealBuildTool.txt'
ProcessManager.KillAll: Trying to kill 0 spawned processes.
Program.Main: AutomationTool exiting with ExitCode=1
Domain_ProcessExit
ProcessManager.KillAll: Trying to kill 0 spawned processes.
AutomationToolLauncher exiting with ExitCode=1
copying UAT log files...
RunUAT.bat ERROR: AutomationTool was unable to run successfully.
And the UnrealBuildTool.txt
[157/162] python.exe cxa_demangle.cpp
CRITICAL root: The JavaScript shell used for compiling (C:/Program Files/Microsoft HPC Pack 2008 R2/Bin/node.exe) does not seem to work, check the paths in ~/.emscripten
CRITICAL root: The JavaScript shell used for compiling (C:/Program Files/Microsoft HPC Pack 2008 R2/Bin/node.exe) does not seem to work, check the paths in ~/.emscripten
WARNING root: cannot check node version: invalid literal for int() with base 10: 'Node Commands/r/n/r/nSyntax:/r/n node {operator} [options] [arguments]/r/n/r/nParameters:/r/n /? or /help - Display this help message'
INFO root: (Emscripten: Running sanity checks)
CRITICAL root: The JavaScript shell used for compiling (C:/Program Files/Microsoft HPC Pack 2008 R2/Bin/node.exe) does not seem to work, check the paths in ~/.emscripten
-------- End Detailed Actions Stats -----------------------------------------------------------
ERROR: UBT ERROR: Failed to produce item: D:\\Unreal4\Engine\Binaries\HTML5\UE4Game.js
Cumulative action seconds (12 processors): 0.00 building projects, 99.18 compiling, 0.00 creating app bundles, 0.00 generating debug info, 0.00 linking, 0.00 other
UBT execution time: 16.26 seconds
From the error logs, I’d guess it’s related to Emscipten. I’ve double and triple-checked my environment variables so I know everything is good there.
Any help in this matter would be greatly appreciated.