Search Unity

il2cpp.exe error after trying to install emscripten

Discussion in 'Web' started by De-Panther, Jan 5, 2020.

  1. De-Panther

    De-Panther

    Joined:
    Dec 27, 2009
    Posts:
    589
    I had to install emscripten to compile some stuff to WebAssembly.
    After that, when trying to build with Unity WebGL, I got some errors:

    Code (CSharp):
    1. Error 1:
    2. il2cpp.exe didn't catch exception: System.AggregateException: One or more errors occurred. ---> System.ComponentModel.Win32Exception: The system cannot find the file specified
    3.  
    4. Error 2:
    5. Exception: E:\Program Files\2019.1.0f2\Editor\Data\il2cpp/build/il2cpp.exe did not run properly!
    The error weren't informative, but in the end, it seems that while installing the emscripten, the PATH and some other Environment Variables changed/added.

    Had to remove those Env Vars, uninstall unity, restart the computer, install unity again - and now I can build again using Unity WebGL.

    I don't know what the dependency that il2cpp.exe needed to work properly, but there was no mention for the file that the system could not find.

    Hope that it'll help to the next developer that will look for "il2cpp.exe error webgl The system cannot find the file specified"