Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

Bug Linux Mint 17.2 WebGL build produces no files. (WORKS! mostly)

Discussion in 'Linux' started by Kaukamieli, Aug 26, 2015.

  1. Kaukamieli

    Kaukamieli

    Joined:
    Jul 14, 2015
    Posts:
    15
    Tried to build my existing project as WebGL. No files are produced. First it said "Cannot create resource file for asset: 'Assets/gaudete.mp3'" and same for my all other .mp3 files and got stuck. Restarting and removing lockfile got it up again and it said it again, but didn't get stuck, but apparently didn't succeed... Tried with all three optimization settings, and it doesn't even whine about the .mp3 files for some magical reason, but there are no files produced even when it looks like it goes through the building process.

    Linux build and WebPlayer build creates the files. Linux build works wonderfully, but can't test WebPlayer atm for obvious reasons.

    Any success with WebGL-builds?
     
  2. Kaukamieli

    Kaukamieli

    Joined:
    Jul 14, 2015
    Posts:
    15
    It actually gives errors to console. Fails to build, so no files.

    8 of these, or looks like these, the tmp filename is different though:

    Failed running python "/opt/Unity/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/Emscripten/emcc" -Oz -std=c++11 -Wno-unused-value -Wno-invalid-offsetof -I-I"/home/kaukamieli/unityprojektit/morningstar/Assets/../Temp/StagingArea/Data/Libraries/bdwgc/include" -I"/home/kaukamieli/unityprojektit/morningstar/Assets/../Temp/StagingArea/Data/Libraries/libil2cpp/include" -I"/home/kaukamieli/unityprojektit/morningstar/Assets/../Temp/StagingArea/Data/il2cppOutput" -nostdinc -c @"/tmp/tmp2dcc5e4b.tmp"

    Checking JS engine ['node', '--stack_size=8192'] failed. Check /opt/Unity/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/emscripten.config. Details: [Errno 2] No such file or directoryWARNING root: [33mcannot check node version: [Errno 2] No such file or directory[0m
    WARNING root: [33mdid not see a source tree above or next to the LLVM root directory (guessing based on directory of /opt/Unity/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/Emscripten_FastComp_Linux/llc), could not verify version numbers match[0m
    INFO root: [32m(Emscripten: Running sanity checks)[0m
    CRITICAL root: [31mThe JavaScript shell used for compiling (['node', '--stack_size=8192']) does not seem to work, check the paths in /opt/Unity/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/emscripten.config[0m

    One like this:

    Failed running python "/opt/Unity/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/Emscripten/emcc" -Oz -s NO_EXIT_RUNTIME=1 -o "/home/kaukamieli/unityprojektit/morningstar/Assets/../Temp/StagingArea/Data/Native/UserAssembly.bc" @"/tmp/tmp4e959feb.tmp"

    Checking JS engine ['node', '--stack_size=8192'] failed. Check /opt/Unity/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/emscripten.config. Details: [Errno 2] No such file or directoryWARNING root: [33mcannot check node version: [Errno 2] No such file or directory[0m
    WARNING root: [33mdid not see a source tree above or next to the LLVM root directory (guessing based on directory of /opt/Unity/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/Emscripten_FastComp_Linux/llc), could not verify version numbers match[0m
    INFO root: [32m(Emscripten: Running sanity checks)[0m
    CRITICAL root: [31mThe JavaScript shell used for compiling (['node', '--stack_size=8192']) does not seem to work, check the paths in /opt/Unity/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/emscripten.config[0m
    UnityEngine.Debug:LogError(Object)
    NativeCompiler:RunProgram(ProcessStartInfo) (at /home/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/NativeCompiler.cs:60)
    NativeCompiler:Execute(String, String) (at /home/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/NativeCompiler.cs:26)
    UnityEditor.WebGL.Il2Cpp.EmscriptenCompiler:CompileDynamicLibrary(String, IEnumerable`1, IEnumerable`1, IEnumerable`1, IEnumerable`1)
    UnityEditorInternal.IL2CPPBuilder:Run() (at /home/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:291)
    UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String, IIl2CppPlatformProvider, Action`1, RuntimeClassRegistry) (at /home/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:219)
    UnityEditor.HostView:OnGUI()

    One like this:

    Exception: IL2CPP compile failed.
    NativeCompiler.RunProgram (System.Diagnostics.ProcessStartInfo startInfo) (at /home/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/NativeCompiler.cs:62)
    NativeCompiler.Execute (System.String arguments, System.String compilerPath) (at /home/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/NativeCompiler.cs:26)
    UnityEditor.WebGL.Il2Cpp.EmscriptenCompiler.LinkObjects (IEnumerable`1 sources, System.String outfile)
    UnityEditor.WebGL.Il2Cpp.EmscriptenCompiler.MultiThreadedCompile (System.String outfile, IEnumerable`1 sources, IEnumerable`1 includePaths, Boolean exceptionSupport)
    UnityEditor.WebGL.Il2Cpp.EmscriptenCompiler.CompileDynamicLibrary (System.String outFile, IEnumerable`1 sources, IEnumerable`1 includePaths, IEnumerable`1 libraries, IEnumerable`1 libraryPaths)
    UnityEditorInternal.IL2CPPBuilder.Run () (at /home/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:291)
    UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String stagingAreaData, IIl2CppPlatformProvider platformProvider, System.Action`1 modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry) (at /home/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:219)
    UnityEditor.WebGL.WebGlBuildPostprocessor.PostProcess (BuildPostProcessArgs args)
    UnityEditor.PostprocessBuildPlayer.Postprocess (BuildTarget target, System.String installPath, System.String companyName, System.String productName, Int32 width, Int32 height, System.String downloadWebplayerUrl, System.String manualDownloadWebplayerUrl, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry) (at /home/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:316)
    UnityEditor.HostView:OnGUI()

    Aaaand this:

    Error building Player: Exception: IL2CPP compile failed.
     
  3. Tak

    Tak

    Joined:
    Mar 8, 2010
    Posts:
    1,001


     
  4. Kaukamieli

    Kaukamieli

    Joined:
    Jul 14, 2015
    Posts:
    15
    Sigh... I might be a bit dumb. Well, then there is my other project which has big problems with addforce based mousemovement, but I guess that's not for this thread. Thank you Tak.
     
  5. Kaukamieli

    Kaukamieli

    Joined:
    Jul 14, 2015
    Posts:
    15
    Well, it's a definite step forward. Installed those things, and now it gives me a grey box where the player should be. If I refresh page, it gives me a blue Unity logo with blue loading bar, but nothing else still happens.

    Tried with Firefox and Vivaldi techpreview 4.
     
  6. Kaukamieli

    Kaukamieli

    Joined:
    Jul 14, 2015
    Posts:
    15
    Tested my another project and this works! \o/ I'm eternally grateful. Never actually got WebGL to work with Windows, always gave me BSOD. :D Linux version is now officially better than Windows version for me. <3

    No idea why my smaller project didn't work though... It's probably not a huge problem though, this was more important at the moment.

    Love you guys!
     
  7. suoko

    suoko

    Joined:
    Apr 4, 2013
    Posts:
    3