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

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?

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 (IEnumerable1 sources, System.String outfile) UnityEditor.WebGL.Il2Cpp.EmscriptenCompiler.MultiThreadedCompile (System.String outfile, IEnumerable1 sources, IEnumerable1 includePaths, Boolean exceptionSupport) UnityEditor.WebGL.Il2Cpp.EmscriptenCompiler.CompileDynamicLibrary (System.String outFile, IEnumerable1 sources, IEnumerable1 includePaths, IEnumerable1 libraries, IEnumerable1 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.Action1 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.

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.

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.

Tested my another project and this works! \o/ I’m eternally grateful. Never actually got WebGL to work with Windows, always gave me BSOD. :smile: 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!

I got the same problems when trying with samples like http://www.raywenderlich.com/69544/make-game-like-jetpack-joyride-unity-2d-part-2 and http://armedunity.com/files/file/133-basic-top-down-game-starter-kit/
The result is a grey square with unity logo inside and a still progress bar