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

WebGL, Error can't built? Exception: Failed building WebGL Player

Discussion in 'Editor & General Support' started by TheUninvited, Oct 31, 2018.

  1. TheUninvited

    TheUninvited

    Joined:
    Jun 22, 2018
    Posts:
    31
    I tried to build with webGL, and i get this errors:

    1.
    Code (CSharp):
    1. Exception: Failed building WebGL Player.
    2. UnityEditor.WebGL.ProgramUtils.StartProgramChecked (System.Diagnostics.ProcessStartInfo p) (at /Users/builduser/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/ProgramUtils.cs:48)
    3. 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:425)
    4. UnityEditor.WebGL.WebGlBuildPostprocessor.LinkBuild (BuildPostProcessArgs args) (at /Users/builduser/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/BuildPostprocessor.cs:474)
    5. UnityEditor.WebGL.WebGlBuildPostprocessor.PostProcess (BuildPostProcessArgs args) (at /Users/builduser/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/BuildPostprocessor.cs:937)
    6. UnityEditor.Modules.DefaultBuildPostprocessor.PostProcess (BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at C:/buildslave/unity/build/Editor/Mono/Modules/DefaultBuildPostprocessor.cs:27)
    7. UnityEditor.PostprocessBuildPlayer.Postprocess (BuildTargetGroup targetGroup, BuildTarget target, System.String installPath, System.String companyName, System.String productName, Int32 width, Int32 height, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:287)
    8. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
    9.  
    2.
    Code (CSharp):
    1. Failed running "C:\Program Files\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten_Win\python\2.7.5.3_64bit\python.exe" "C:\Program Files\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\emcc" @"C:\Users\mymuc\OneDrive\53DB~1\MINIRU~2\Assets\..\Temp\emcc_arguments.resp"
    2.  
    3. stdout:
    4. stderr:ERROR:root:C:\Users\mymuc\OneDrive\Έγγραφα\minirunningame - Copy\Temp\StagingArea\Data\Native\build.bc: No such file or directory ("C:\Users\mymuc\OneDriveγγραφα\minirunningame - Copy\Temp\StagingArea\Data\Native\build.bc" was expected to be an input file, based on the commandline arguments provided)
    5. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
     
  2. TheUninvited

    TheUninvited

    Joined:
    Jun 22, 2018
    Posts:
    31
  3. TheUninvited

    TheUninvited

    Joined:
    Jun 22, 2018
    Posts:
    31
  4. TheUninvited

    TheUninvited

    Joined:
    Jun 22, 2018
    Posts:
    31
  5. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    14,446
    I assume you tried without using OneDrive (which is in the error)?
     
  6. TheUninvited

    TheUninvited

    Joined:
    Jun 22, 2018
    Posts:
    31
    My OneDrive is not active, but i will try to change the location and let you know.
     
  7. TheUninvited

    TheUninvited

    Joined:
    Jun 22, 2018
    Posts:
    31
    Alright so basically the solution was after installing my new drive i don't know if it was the drive the problem.

    But i installed the default sdk that was providing from Edit>Preferences and in the jdk i installed the android studio with the recommended settings after that unity detect the jdk and it worked perfectly fine.


    In compare to previous time i was trying to install a jdk based on a tutorial on youtube.

    But thank you so much for helping me out.