Hi, I successfully write my first game with Unity. I wroks in Unity itself and I successfully built it for Linux so that it runs out of Unity, too. No I want to build it for WebGL but after “Switch …” and “Build”, Unity shows Errors. The first one is:
stdout:
Building build.bc with EmscriptenToolChain
Output directory: /home/Daten/Projekte/Unity/Games/Pong2D/Temp/StagingArea/Data/Native
Cache directory: /home/Daten/Projekte/Unity/Games/Pong2D/Library/il2cpp_cache
il2cpp.exe didn't catch exception: Unity.IL2CPP.Building.BuilderFailedException: /home/Daten/Programme/Unity/Editors/2019.4.11f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/Emscripten_FastComp_Linux/clang++: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
ERROR:root:compiler frontend failed to generate LLVM bitcode, halting
I use Ubuntu 20.04 LTS Linux with UnityHub.AppImage. The game build flawlessly for the “Linux” target. Are there some requirements missing or is WebGL building under Linux broken?
I got new error Failed running python2 "/home/foton/Unity/Hub/Editor/2019.4.21f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/Brotli/python/bro.py"
but at least one step forward.