# RunUAT.bat Errors and HTML5 Export

**URL:** <https://forums.unrealengine.com/t/runuat-bat-errors-and-html5-export/307062>\
**Category:** Platform & Builds\
**Tags:** automationtool, HTML5, runuatbat-error, runuatbat, unreal-engine, build-failed, question\
**Created:** [February 16, 2015, 12:38am UTC](https://forums.unrealengine.com/t/runuat-bat-errors-and-html5-export/307062 "2015-02-16T00:38:43Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![AndreElijah\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AndreElijah\_1](https://forums.unrealengine.com/u/AndreElijah_1)\
**Post date:** [February 16, 2015, 12:38am UTC](https://forums.unrealengine.com/t/runuat-bat-errors-and-html5-export/307062/1 "2015-02-16T00:38:43Z")

</div>

Hi all,

This week I’ve run the gamut when it comes to issues getting our project over the finish line but we’re almost there.

Using UE 4.7 in mobile preview, all of our assets can now be viewed (in 4.6 everything in the viewport had disappeared), and our matinee at the beginning renders properly.

Now - the final issue is building for HTML5. The project refuses to build.

To be clear, I am using UE 4.7 Preview 7 built from Source, Visual Studio Community Edition 2013, and building UnrealFrontend from the UE4 Solution in Visual Studio, and Emscripten.

I have had various errors pop up at different times in the build process but they all reference RunUAT.bat regardless of whether or not I use the UE4 Editor, UnrealFrontend, or Visual Studio to build the project to HTML5.

I have uninstalled Visual Studio and reinstalled it, deleted UE4 and redownloaded/compiled from source, and nothing works.

Additionally I’ve tried building my projects as well as the default Tappy Chicken and a blank project. All to no avail.

Please take a look at the error part of the log located on pastebin: [UE4 RunUAT.bat - Pastebin.com](http://pastebin.com/yKJFmBcs)

The entire log is too large to be posted on pastebin, my apologies.

Is there no, straight-forward, error free process to get things built for HTML5? That was a HUGE selling point in our investment in Unreal Engine and it looks to me like lots of people are running into the same issues with no clear fix apparent.

Please help! I’m dying to show this work off 🙂

Thanks!

A.

---

<div class="post-metadata">

**Author:** ![JoJo\_2nd\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JoJo\_2nd\_1](https://forums.unrealengine.com/u/JoJo_2nd_1)\
**Post date:** [February 16, 2015, 9:35am UTC](https://forums.unrealengine.com/t/runuat-bat-errors-and-html5-export/307062/2 "2015-02-16T09:35:24Z")

</div>

Hi,

The only clue I can get from your error log is the line _UnrealBuildTool: ERROR: UBT ERROR: Failed to produce item: C:\Users\Andre\Documents\Unreal Projects\HTMLTest\Binaries\HTML5\HTMLTest.js_ which suggests to me that something failed to compile? Or UBT was unable to write to the file possible? I’ve had this when my HDD ran out of space.  
Can you add your compile output from HTMLTest, maybe?

---

<div class="post-metadata">

**Author:** ![AndreElijah\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AndreElijah\_1](https://forums.unrealengine.com/u/AndreElijah_1)\
**Post date:** [February 16, 2015, 3:23pm UTC](https://forums.unrealengine.com/t/runuat-bat-errors-and-html5-export/307062/3 "2015-02-16T15:23:59Z")

</div>

Hey JoJo thanks for the suggestion - turns out my drive was almost out of space from all of the instances of UE4 that I compiled over the weekend… I just cleared them all out and decided to run the UE4Frontend on my project again… It came back with another error as seen here: [http://pastebin.com/T0UnQLv2](http://pastebin.com/T0UnQLv2)

Again, any help would be appreciated. It’s a holiday weekend here in Toronto, and I have yet to leave my computer. LOL _sigh_

---

<div class="post-metadata">

**Author:** ![AndreElijah\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AndreElijah\_1](https://forums.unrealengine.com/u/AndreElijah_1)\
**Post date:** [February 16, 2015, 3:27pm UTC](https://forums.unrealengine.com/t/runuat-bat-errors-and-html5-export/307062/4 "2015-02-16T15:27:36Z")

</div>

Also - here is the complete log from the initial error that I mentioned. I tossed it up on GoogleDrive. [http://bit.ly/1FSO4np](http://bit.ly/1FSO4np)

---

<div class="post-metadata">

**Author:** ![JoJo\_2nd\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JoJo\_2nd\_1](https://forums.unrealengine.com/u/JoJo_2nd_1)\
**Post date:** [February 16, 2015, 4:22pm UTC](https://forums.unrealengine.com/t/runuat-bat-errors-and-html5-export/307062/5 "2015-02-16T16:22:35Z")

</div>

Just looking through the log, emscripten is complaining about long command lines. Never seen it myself but I’d suggest moving your UE4 install out of “my documents” to give it a shorter path. Emscripten is also complaining about spaces in paths and as it’s mainly developed on linux AFAICT spaces in your UE4 install path are best avoided too :-/

---

<div class="post-metadata">

**Author:** ![AndreElijah\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AndreElijah\_1](https://forums.unrealengine.com/u/AndreElijah_1)\
**Post date:** [February 16, 2015, 4:24pm UTC](https://forums.unrealengine.com/t/runuat-bat-errors-and-html5-export/307062/6 "2015-02-16T16:24:41Z")

</div>

Cool - I will try moving it to the root of the drive. I’ll get rid of the spaces as well and report back.

Thanks!

---

<div class="post-metadata">

**Author:** ![AndreElijah\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AndreElijah\_1](https://forums.unrealengine.com/u/AndreElijah_1)\
**Post date:** [February 16, 2015, 4:32pm UTC](https://forums.unrealengine.com/t/runuat-bat-errors-and-html5-export/307062/7 "2015-02-16T16:32:07Z")

</div>

Moved the UE4 directory to the root of the drive. Got rid of the spaces in the directory of the project… here’s the log: [http://pastebin.com/ZBa2bjmS](http://pastebin.com/ZBa2bjmS)

I’m shocked that Epic would tout HTML5 export as a feature when so many people are running into unexplained problems.
