- Home /
Failure to compile c++ for WebGL
Hello!
I'm trying to build a simple text adventure game in Unity 5.4.1f1. The game builds with no problem for Windows, but when I attempt to build it for HTML5, it fails. It hangs on "Converting managed assemblies to C++ for several seconds, and then pops up with two errors. A screenshot is attached, though may prove unhelpful. I have tried installing emscripten directly, as a post on another forum made me think that may be the source of the issue, but the problem persists. The stack trace is... large, but I think the relevant portion is this:
Unhandled Exception: Unity.IL2CPP.Building.BuilderFailedException: WARNING root: -I or -L of an absolute path "-IC:\Users\Susurus Mortis\Desktop\Continuing Education\Udemy\Unity\Escape from Spider's Cleft\Temp\StagingArea\Data\Native\UserAssembly.bc" encountered. If this is to a local system header/library, it may cause problems (local system files make sense for compiling natively on your system, but not necessarily to JavaScript). Pass '-Wno-warn-absolute-paths' to emcc to hide this warning.
ERROR root: compiler frontend failed to generate LLVM bitcode, halting
@JoshPeterson you looked at a similar bug here: http://tinyurl.com/z2my538 , but I'm running 5.4.1f1. Any insight?
@JoshPeterson you looked at this issue https://issuetracker.unity3d.com/issues/project-containing-dll-files-failed-to-compile-with-il2cpp-for-webgl?_ga=1.253326607.787636490.1475558755 which was similar, but I'm using 5.4. Any insight?
Is there any more to the error message? I think this might just be the start of the error, and some relevant information is below this.
Your answer
Follow this Question
Related Questions
Conversion of a C++ variable to UnityScript? 2 Answers
formatting errors converting this code! 2 Answers
Convert WebGL to WebPlayer 1 Answer
Crash when calling Marshal.StructureToPtr() 0 Answers
Converting c++ to c# and procedural galaxy generation. 1 Answer