- Home /
export to WebGL failed
i have this error when i try to export to WebGL I tried to reinstall unity and webgl, but it still failed what should i do ?
Failed running "C:\Program Files\Unity2017\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten_Win\python\2.7.5.3_64bit\python.exe" "C:\Program Files\Unity2017\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\emcc" @"C:\Users\066C~1\DOCUME~1\NEWUNI~3\Assets..\Temp\emcc_arguments.resp"
stdout: stderr:ERROR:root:C:\Users\׳’׳‘׳¨׳™׳׳\Documents\New Unity Project 1\Temp\StagingArea\Data\Native\build.bc: No such file or directory ("C:\Users\׳’׳‘׳¨׳™׳׳\Documents\New Unity Project 1\Temp\StagingArea\Data\Native\build.bc" was expected to be an input file, based on the commandline arguments provided) UnityEditor.HostView:OnGUI()
Exception: Failed building WebGL Player. UnityEditor.WebGL.ProgramUtils.StartProgramChecked (System.Diagnostics.ProcessStartInfo p) (at /Users/builduser/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/ProgramUtils.cs:48) UnityEditor.WebGL.WebGlBuildPostprocessor.EmscriptenLink (BuildPostProcessArgs args, Boolean wasmBuild, System.String sourceFiles, System.String sourceFilesHash) (at /Users/builduser/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/BuildPostprocessor.cs:391)
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()
Answer by asbotan · Jan 10, 2018 at 12:55 AM
I've found a solution to this.
This is what is causing the problem:
...("C:\Users\׳’׳‘׳¨׳™׳׳\Documents\New Unity Project ...
Your username has characters that are not ascii or probably just not latin alphabet.
Would be great if someone can address this question to Unity dev team to add more recognizable characters or something like that.
Basicly i've created new User with name containing only latin letters and it worked.
Answer by rrrrhaid · Oct 11, 2017 at 12:44 PM
I still have nothing in my export folder when try to make WebGL build
Update: I have some Cyrillic symbols in the path to the project folder. I replace them with Latin symbols - and I have my WebGL build now
Answer by milanrehor123 · Jan 31, 2018 at 08:06 PM
How to change it to Latin symbols?
Just move the whole project to another folder with Latin symbols in the path. For example you can create something like this C:\UnityProjects\
Your answer
Follow this Question
Related Questions
Why do PlayerPrefs become empty when uploading a new WebGL game version to Facebook 0 Answers
Can I display an Unity WebGL Game in Unity Editor ? 1 Answer
Is VideoPlayer support webgl? 1 Answer
Running one instance of webgl build at a time in a html page when loading webgl builds sequencially. 0 Answers