Are you using the source or binary version of the engine? I see that you’re mentioning code from GitHub, but I wasn’t sure which editor you’re using exactly?
If you’re using the binary version of the engine, I would suggest deleting the HTML5 folder that’s located in Epic Games\4.12\Engine\Intermediate\Build\ and then launching the Epic Games Launcher. Once it’s loaded, click on the down-arrow beside Launch before launching the engine and clicking on verify.
I’m using the binary verison via the Epic Games Launcher. I’ve deleted the HTML5 folder and clicked verify (I actually verified twice already), however I still don’t get the .emscripten folder. See attached screenshot
. There is only a UE4 folder.
When I launch using Chrome device, I get the same error as before. I might try deleting the 4.12.5 version, reinstall it again and see what happens. This is a Windows 10 x64 machine by the way. I’ll also have a go on my Macbook too.
On my windows 10 machine I’ve deleted the whole installation and reinstalled 4.12.5 via the Launcher. There is still no HTML5/.emscripten after installation, but I do get a HTML5/EmscriptenTemp folder after the HTML5 build fails.
This issue has been verified as a bug. UE-33958 has been entered. We hope to have this resolved as soon as possible. Feel free to follow up in the near future for updates, or view our Public .
i pulled down 4.12.5 from the binary launcher - followed your instructions (especially the git-lfs step) - and it packaged fine. so, the only thing i can think of is that you might not have the HTML5 target platform installed.
Hi Nick, thanks for looking into this. I definitely ticked the HTML5 target platform both times. Otherwise:
The HTML5 Launch options (Chrome, Firefox etc) wouldn’t be available to me.
I won’t have a Epic Games\4.12\Engine\Intermediate\Build\HTML5\ folder in the first place.
I’m wondering do I have to install UE in C:\Program Files? I installed UE in D:\Applications maybe the emscripten folder is hard coded to a C:\ location?
while i am a huge fan of cygwin - you should remove the c:\cygwin and c:\cygwin\bin path from the search path - having this within the dos/powershell command prompt has given me a lot of problems in the past.
as a tip, i keep my dos path search (as well as cygwin for that matter) really small. i will add the paths i need from within batch files (for dos) and source in paths for bash (and shell scripts).
this has given me the best flexibility and running targeted executables (i.e. i don’t have to wonder which executable might be running)…
i am betting that you will have a .emscripten file in your c:\users\yunzh even though we’ve set the UserProfile path – i’m guessing that some how your cygwin (bash) shell is getting fired up which uses $HOME (and that’s where i see it’s complaining that the Closure path not found in “~/.emscripten”)
~ $ emcc -v
emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 1.35.0
clang version 3.7.0 (https://github.com/kripken/emscripten-fastcomp-clang dbe68fecd03d6f646bd075963c3cc0e7130e5767) (https://github.com/kripken/emscripten-fastcomp.git 4e83be90903250ec5142edc57971ed4c633c5e25)
Target: x86_64-pc-windows-msvc
Thread model: posix
INFO:root:(Emscripten: Running sanity checks)
INFO:root:Closure compiler (D:\Applications\Epic Games\4.12\Engine\Source\ThirdParty\HTML5\emsdk\emscripten\1.35.0\third_party\closure-compiler\compiler.jar) does not exist, check the paths in ~/.emscripten
INFO:root:closure compiler will not be available
And same error when launching:
LogPlayLevel: Program.Main: ERROR: AutomationTool terminated with exception: System.IO.FileNotFoundException: Could not find file 'D:\Applications\Epic Games\4.12\Engine\Intermediate\Build\HTML5\.emscripten'.
LogPlayLevel: File name: 'D:\Applications\Epic Games\4.12\Engine\Intermediate\Build\HTML5\.emscripten'
I don’t have .emscripten in my C:\Users\yunzhi dir either. I’m downloading release 13 preview and see if that makes any difference