I’m currently on a secure network with limited admin access and I’m trying to build a project to WebGL.
What’s happening is once the build begins, everything goes smoothly until it hits the ‘Building Native binary with IL2CPP’ section and just stops. After a few minutes the Build will fail and spit out a log of errors:
Failed running C:\Program Files\Unity\Editor\Data\il2cpp/build/il2cpp.exe --convert-to-cpp --compile-cpp --libil2cpp-static --platform=“WebGL” --architecture=“EmscriptenJavaScript”
It appears that il2cpp.exe is not running correctly; this error in particular caught my attention…
il2cpp.exe didn’t catch exception: Unity.IL2CPP.Building.BuilderFailedException: INFO:root:Checking JS engine [‘C:/Program Files/Unity/Editor/Data\Tools\nodejs\node.exe’, ‘–stack_size=8192’, ‘–max-old-space-size=2048’] failed. Check your config file. Details: Expected the command [‘C:/Program Files/Unity/Editor/Data\Tools\nodejs\node.exe’, ‘–stack_size=8192’, ‘–max-old-space-size=2048’, ‘C:\Program Files\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\src\hello_world.js’] to finish with return code 0, but it returned with code -1073741819 instead!
Can anyone shed some light as to why this is happening??
I’m using Windows 7 and Unity 2017.1.0f3