I’ve got a project to build something in WebGL within a short timespan. I created a test project, but before that I wanted to build a clean scene and see if it works at all.
However I tried building a WebGL project with 3 different 5.x versions: 5.0.1, 5.1.1f1, 5.1.2f1 and all of them give me errors and a failed build. I’ve tried to Google it up but can’t find any solution for it. I even found an issue that should be solved when installing emscripting. Strange thing is that about half a year ago when I did the same thing, it worked.
It’s a big let down as I can not rely on this part of unity software. I’ve got about few hours to send a quick prototype but with this I’m bound with my hand standing on an edge of an almost erupting volcano. ![]()
Console errors:
Failed running "D:\Software\Unity 5.1.1f1\Editor\Data\PlaybackEngines\webglsupport/BuildTools/Emscripten_Win/python/2.7.5.3_64bit/python.exe" "D:\Software\Unity 5.1.1f1\Editor\Data\PlaybackEngines\webglsupport/BuildTools/Emscripten/emcc" @"Z:/Customer/9999 - project/04 Interactief/Unity/WebGL test/Assets/../Temp/emcc_arguments.resp"
stdout:
stderr:
WARNING root: emcc: link command line is very long, even with response file -- use paths with no spaces
Traceback (most recent call last):
File "D:\Software\Unity 5.1.1f1\Editor\Data\PlaybackEngines\webglsupport/BuildTools/Emscripten/emcc", line 1216, in <module>
extra_files_to_link += system_libs.calculate([f for _, f in sorted(temp_files)] + extra_files_to_link, in_temp, stdout, stderr, forced=forced_stdlibs)
File "D:\Software\Unity 5.1.1f1\Editor\Data\PlaybackEngines\webglsupport\BuildTools\Emscripten\tools\system_libs.py", line 749, in calculate
libfile = shared.Cache.get(name, create)
File "D:\Software\Unity 5.1.1f1\Editor\Data\PlaybackEngines\webglsupport\BuildTools\Emscripten\tools\cache.py", line 36, in get
temp = creator()
File "D:\Software\Unity 5.1.1f1\Editor\Data\PlaybackEngines\webglsupport\BuildTools\Emscripten\tools\system_libs.py", line 586, in create_libcextra
return build_libc('libcextra.bc', libcextra_files, ['-O2'])
File "D:\Software\Unity 5.1.1f1\Editor\Data\PlaybackEngines\webglsupport\BuildTools\Emscripten\tools\system_libs.py", line 69, in build_libc
shared.Building.link(o_s, in_temp(lib_filename))
File "D:\Software\Unity 5.1.1f1\Editor\Data\PlaybackEngines\webglsupport\BuildTools\Emscripten\tools\shared.py", line 1390, in link
output = Popen(link_cmd, stdout=PIPE).communicate()[0]
File "D:\Software\Unity 5.1.1f1\Editor\Data\PlaybackEngines\webglsupport\BuildTools\Emscripten_Win\python\2.7.5.3_64bit\lib\subprocess.py", line 711, in __init__
errread, errwrite)
File "D:\Software\Unity 5.1.1f1\Editor\Data\PlaybackEngines\webglsupport\BuildTools\Emscripten_Win\python\2.7.5.3_64bit\lib\subprocess.py", line 948, in _execute_child
startupinfo)
WindowsError: [Error 87] The parameter is incorrect
UnityEditor.HostView:OnGUI()