Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

export to WebGL failed

Discussion in 'WebGL' started by gavriel20, Jul 17, 2017.

  1. gavriel20

    gavriel20

    Joined:
    Jul 25, 2016
    Posts:
    2
    hello
    I always have the same error when export to WebGL.
    I tried to install the latest unity and webGL but I still have the same error message:
    anyone can help ?

    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()
     
  2. sonofbryce

    sonofbryce

    Joined:
    May 19, 2009
    Posts:
    111
    If I was trying to do a WebGL build, I would start at square 1 with a blank scene and try adding stuff until the build breaks. I'm guessing you're probably using a feature/plugin that WebGL doesn't support.
     
  3. Schubkraft

    Schubkraft

    Unity Technologies

    Joined:
    Dec 3, 2012
    Posts:
    1,067
    What is the actual path "׳’׳‘׳¨׳™׳׳œ\" there? Does it work if you move the project out of your user docs to say "C:\Unitytest"?
     
  4. DamiaBonet

    DamiaBonet

    Joined:
    Jul 26, 2017
    Posts:
    7
    The solution is here!
     
    dr3x_0 likes this.
  5. richardh

    richardh

    Joined:
    Mar 7, 2012
    Posts:
    226
    Is this the solution? I opened the file and tried to save but was denied! How to over right this file?
     
  6. Hyper00

    Hyper00

    Joined:
    Aug 4, 2015
    Posts:
    3
    кто-то решил проблему???
     
  7. globalaction

    globalaction

    Joined:
    Oct 5, 2016
    Posts:
    1
    follow the video, my project works well at webgl.
    Thanks a lot.
     
  8. rhysreynz04

    rhysreynz04

    Joined:
    Jul 21, 2020
    Posts:
    2
    the video didnt work for me.
     
  9. JaneAda

    JaneAda

    Joined:
    Jan 6, 2022
    Posts:
    1
    Hey! I've tried many ways and nothing worked for me. The error is like that

    UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors
    at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002ca] in <7ac35247888b44f4a7e290f1f6bb33f3>:0
    at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in <7ac35247888b44f4a7e290f1f6bb33f3>:0
    UnityEngine.GUIUtility:processEvent (int,intptr,bool&)

    Can someone help, please? What does this error mean?
     
  10. LAN_Slayer

    LAN_Slayer

    Joined:
    Mar 7, 2022
    Posts:
    1
    I get the following error: Invocation was: Executable: "D:\Unity\2020.3.30f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten_Win\python\2.7.5.3_64bit\python.exe" Arguments: -E "D:\Unity\2020.3.30f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\em++" -Wno-unused-value -Wno-invalid-offsetof -nostdinc -fno-strict-overflow -Wno -null-conversion -std=c++11 -O3 -Oz -DIL2CPP_EXCEPTION_DISABLED=1 -DNET_4_0 -DUNITY_AOT -DIL2CPP_MONO_DEBUGGER_DISABLED -DGC_NOT_DLL -DRUNTIME_IL2CPP -DBASELIB_INLINE_NAMESPACE=il2cpp_baselib -DNDEBUG -I"D:\Unity\2020 \il2cpp\libil2cpp" -I"D:\Unity\2020.3.30f1\Editor\Data\il2cpp\libil2cpp" -I"D:\Unity\2020.3.30f1\Editor\Data\il2cpp\external\bdwgc\include" - I"D:\Unity\2020.3.30f1\Editor\Data\il2cpp\external\xxHash" -I"D:\Unity\2020.3.30f1\Editor\Data\il2cpp\external\baselib\Include" -I"D: \Unity\2020.3.30f1\Editor\Data\il2cpp\external\baselib\Platforms\WebGL\Include" -I"D:\Unity\2020.3.30f1\Editor\Data\il2cpp\libil2cpp\pch" -I"D: \Unity Projects\Figure 3.2 Lab 2\Library\Il2cppBuildCache\WebGL\il2cppOutput" "D:\Unity Projects\Figure 3.2 Lab 2\Library\Il2cppBuildCache\WebGL\il2cppOut put\Il2CppCCalculateFieldValues.cpp" -o "D:\Unity Projects\Figure 3.2 Practice 2\Library\il2cpp_cache\98CD041183433F7CB5C9FC0B48D4F6B4.o" at Unity.IL2CPP.Building.CppProgramBuilder.BuildAllCppFiles(IEnumerable`1 sourceFilesToCompile, IBuildStatisticsCollector statisticsCollector) at Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics) at il2cpp.Compilation.CompilationDriver.Run(RuntimePlatform platform, BuildingOptions buildingOptions, ReadOnlyCollection`1 matchedAssemblyMethodSourceFiles) at il2cpp.Program.DoRun(String[] args, RuntimePlatform platform, BuildingOptions buildingOptions, Boolean throwExceptions) UnityEditorInternal.Runner.RunProgram (UnityEditor.Utils.Program p, System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) (at <68089899e4c84456bfc1de3436accf4a>:0) UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action`1[T] setupStartInfo) (at <68089899e4c84456bfc1de3436accf4a>:0) UnityEditorInternal.IL2CPPBuilder.RunIl2CppWithArguments (System.Collections.Generic.List`1[T] arguments, System.Action`1[T] setupStartInfo) (at <68089899e4c84456bfc1de3436accf4a>:0) UnityEditorInternal.IL2CPPBuilder.ConvertPlayerDlltoCpp (UnityEditor.Il2Cpp.Il2CppBuildPipelineData data) (at <68089899e4c84456bfc1de3436accf4a>:0) UnityEditorInternal.IL2CPPBuilder.Run() (at <68089899e4c84456bfc1de3436accf4a>:0) UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String stagingAreaData, UnityEditorInternal.IIl2CppPlatformProvider platformProvider, System.Action`1[T] modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry) (at <68089899e4c84456bfc1de3436accf4a>:0) UnityEditor.WebGL.WebGlBuildPostprocessor.CompileBuild (UnityEditor.Modules.BuildPostProcessArgs args) (at /Users/bokken/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/BuildPostprocessor.cs:365) UnityEditor.WebGL.WebGlBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at /Users/bokken/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/BuildPostprocessor.cs:913) UnityEditor.Modules.DefaultBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <68089899e4c84456bfc1de3436accf4a>:0) UnityEditor.PostprocessBuildPlayer.Postprocess (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target, System.String installPath, System.String companyName, System.String productName, System.Int32 width, System.Int32 height, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry , UnityEditor.Build.Reporting.BuildReport report) (at <68089899e4c84456bfc1de3436accf4a>:0) UnityEngine.GUIUtility:processEvent(Int32, IntPtr, Boolean&)

    I tried the video, but it hasn't worked so far, the curious thing here is that I have a copy of another completely identical (I'm making interactive maps) that when trying to export if it leaves it.... It's very strange, please someone help me .