- Home /
Web Gl Build Error
I am trying to release a WebGl build and keep getting the following error messages no matter what I try on the forums.
My build runs fine on any other platform
First error:
Failed running C:\Program Files\Unity\Editor\Data\il2cpp/build/il2cpp.exe --convert-to-cpp --compile-cpp --libil2cpp-static --platform="WebGL" --architecture="EmscriptenJavaScript" --configuration="Release" --outputpath="C:\Users\jmassa\Documents\Lidl ENT\Assets /../Temp/StagingArea/Data\Native\build.bc" --cachedirectory="C:\Users\jmassa\Documents\Lidl ENT\Assets..\Library/il2cpp_cache" --compiler-flags="-Oz -DIL2CPP_EXCEPTION_DISABLED=1 " --additional-libraries="C:\Program Files\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_AIModule_Dynamic.bc" --additional-libraries="C:\Program Files\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_AnimationModule_Dynamic.bc" --additional-libraries="C:\Program Files\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_AudioModule_Dynamic.bc" --additional-libraries="C:\Program Second Error:
Exception: C:\Program Files\Unity\Editor\Data\il2cpp/build/il2cpp.exe did not run properly! UnityEditorInternal.Runner.RunProgram (UnityEditor.Utils.Program p, System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:130) UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action`1 setupStartInfo) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:73) Third Error:
UnityEditor.BuildPlayerWindow+BuildMethodException: Build failed with errors. at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (BuildPlayerOptions options) [0x001b9] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:162 at UnityEditor.BuildPlayerWindow.CallBuildMethods (Boolean askForBuildLocation, BuildOptions defaultBuildOptions) [0x00050] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:83 UnityEditor.HostView:OnGUI()
Update: Not an answer I discovered that even starting a brand new standalone empty project, without any of my previous scripts and assets, the same problem persists and I get the same three error messages. I am working in Unity 2017.1.0p2, and just updated to the newest patch late night, and still the same issue on my project as well as the test empty. I ran a successful WebGL build on another machine using 5.6, and am now attempting to zip up and try that one for my project. As far as I've gathered it is a program bug.
Hello, I had a stage when I ran into issues with this or something like. I could be worth editing the code of the HT$$anonymous$$L page itself to see if that has any luck? I added 'gz' the the end of the path / file.
dataUrl: "Release/buildmoonlitweb.datagz",
codeUrl: "Release/buildmoonlitweb.jsgz",
asmUrl: "Release/buildmoonlitweb.asm.jsgz",
memUrl: "Release/buildmoonlitweb.memgz",
Also, could be worth testing in a different browsers.
Your answer
Follow this Question
Related Questions
Distribute terrain in zones 3 Answers
How to profile a WebGL app using the unity profiler tool? 0 Answers
Cloud Built WebGL Stopped working 0 Answers
when build to webGL 0 Answers