Thank you for your report. We have assigned this issue to a member of our support staff, and they will begin investigation as soon as possible. If we are unable to reproduce the issue, or we need additional information, our staff member will comment here with additional questions. Otherwise, we will post an ‘Answer’ once we have logged the issue in our bug database or we have a solution for it.
In the meantime, please be sure to review our suggestions for how to report a bug, and feel free to edit your post if you have additional information to provide:
Are you receiving this error when you try to build any template for HTML5, including a blank template without any starter content? Are you currently working out of 4.8.2? Could you also please tell me the steps you’ve taken to package your project?
Hi ,
Yes, tried blank and no content.
Using latest version, yes.
As the minimal instructions said, I changed my html5 engine.ini in the UE install dir:
[Audio]
AudioDeviceModuleName=HTML5Audio
[OnlineSubsystemMcp]
benabled=false
[SystemSettings]
r.setres=800x600
; These following settings have moved to the inis and can be set from the editor
; These old value are left as reference until all old code paths are removed
;[BuildSettings]
;HeapSize=1024
;[HTML5DevicesWindows]
; (64 bit)="C:/Program Files//firefox.exe"
; (32 bit)="C:/Program Files (x86)//firefox.exe"
;Firefox (32 bit)="C:/Program Files (x86)/Mozilla Firefox/firefox.exe"
;Firefox Aurora (32 bit)="C:/Program Files (x86)/Aurora/firefox.exe"
;Chrome="C:/Program Files (x86)//Chrome/Application/chrome.exe"
;all browsers on mac are 64 bit, 64 bit browsers can allocate more than 512MB of memory to around 1.5 GB.
;[HTML5DevicesMac]
;Safari="/Applications/Safari.app/Contents/MacOS/Safari"
;Firefox="/Applications/Firefox.app/Contents/MacOS/firefox-bin"
;Firefox (Aurora)="/Applications/FirefoxAurora.app/Contents/MacOS/firefox-bin"
;[HTML5DevicesLinux]
;Firefox="/usr/bin/firefox"
;[HTML5SDKPaths]
Mac="E:/Program Files/Emscripten/emscripten/1.29.0"
Emscripten="E:/Program Files/Emscripten/emscripten/1.29.0"
Python="E:/Python27/python.exe"
This is how my HTML5Engine.ini file looks from the following file path: D:\Epic Games\4.8\Engine\Config\HTML5
[Audio]
AudioDeviceModuleName=HTML5Audio
[OnlineSubsystemMcp]
benabled=false
[SystemSettings]
r.setres=800x600
; These following settings have moved to the inis and can be set from the editor
; These old value are left as reference until all old code paths are removed
;[BuildSettings]
;HeapSize=1024
;[HTML5DevicesWindows]
; (64 bit)="C:/Program Files//firefox.exe"
; (32 bit)="C:/Program Files (x86)//firefox.exe"
;Firefox (32 bit)="C:/Program Files (x86)/Mozilla Firefox/firefox.exe"
;Firefox Aurora (32 bit)="C:/Program Files (x86)/Aurora/firefox.exe"
;Chrome="C:/Program Files (x86)//Chrome/Application/chrome.exe"
;all browsers on mac are 64 bit, 64 bit browsers can allocate more than 512MB of memory to around 1.5 GB.
;[HTML5DevicesMac]
;Safari="/Applications/Safari.app/Contents/MacOS/Safari"
;Firefox="/Applications/Firefox.app/Contents/MacOS/firefox-bin"
;Firefox (Aurora)="/Applications/FirefoxAurora.app/Contents/MacOS/firefox-bin"
;[HTML5DevicesLinux]
;Firefox="/usr/bin/firefox"
;[HTML5SDKPaths]
;Mac="/path/to/emscripten/sdk"
Could you please try this type of HTML5Engine.ini and see whether or not that makes a difference in your packaging process?
If it fails, please provide me the as a .txt file attached to your next reply. Please also provide the exact steps that you take to package your project as there are a couple of ways you can package your project.
Error 1 error : All source files in module "Core" must include the same precompiled header first. Currently "E:\Program Files\Epic Games\4.8\Engine\Source\Runtime\Core\Private\CorePrivatePCH.h" is included by most of the source files. The following source files are not including "E:\Program Files\Epic Games\4.8\Engine\Source\Runtime\Core\Private\CorePrivatePCH.h" as their first include: E:\Program Files\Epic Games\4.8\Engine\Intermediate\ProjectFiles\EXEC UE4
Error 2 error MSB3075: The command "..\..\Build\BatchFiles\Rebuild.bat UE4Editor Win64 Development" exited with code 5. Please verify that you have sufficient rights to run this command. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.MakeFile.Targets 43 5 UE4
Couple of things, it seems like the SDK you installed was never “Activated”. you could just run emcc in console and it will create a .emscripten config file. The error seems to be that you are missing LLVM_ROOT.
Instead of editing HTML5Engine.ini. please Go to Project Settings → Platforms → HTML5SDK → and update the required Python and Emscripten SDK directory.
That being said with 4.9 we will be including the HTML5 sdk with the engine and no such configuration would be necessary.
The log suggests that the LLVM_ROOT environment variable still isn’t set correctly. You need to set it to the folder that told you to, above.
With that being said, if you tried this and it still didn’t work it’s likely due to the editor not being restarted after setting it. If the editor isn’t restarted, the old settings persist for the environment variables.
If you continue to have trouble, please provide additional information and we will continue to investigate the issue at hand.