Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Unity Build failed running due to il2ccp.exe

Discussion in 'Windows' started by trabant256, Oct 1, 2020.

  1. trabant256

    trabant256

    Joined:
    Sep 30, 2020
    Posts:
    2
    Hey guys,
    I am relativly new to Unity and I started unsing it a week ago, trying to recreate the official "Roll a Ball" tutorial from the Unity site. All worked just fine and I even added some extra features but when I wanted to build my game I got 3 errors showing up in the console. Like I said I am relatively new to the software so I cant really see what is going wrong here.

    My System:

    Windows 7 Ultimate
    Visual Studio 2019 Community
    Unity 2019.4.11f1

    Error1:
    Failed running C:\Program Files\Unity\Hub\Editor\2019.4.11f1\Editor\Data\il2cpp/build/deploy/net471/il2cpp.exe --convert-to-cpp --emit-null-checks --enable-array-bounds-check --dotnetprofile="unityaot" --compile-cpp --libil2cpp-static --platform="WindowsDesktop" --architecture="x64" --configuration="Release" --outputpath="C:\Users\Justin Ermel\Desktop\UnityProjects\RllerBall(1stTut)\Temp/StagingArea/Data\Native\GameAssembly.dll" --cachedirectory="C:\Users\Justin Ermel\Desktop\UnityProjects\RllerBall(1stTut)\Assets\..\Library/il2cpp_cache" --profiler-report --map-file-parser="C:/Program Files/Unity/Hub/Editor/2019.4.11f1/Editor/Data/Tools/MapFileParser/MapFileParser.exe" --directory="C:/Users/Justin Ermel/Desktop/UnityProjects/RllerBall(1stTut)/Temp/StagingArea/Data/Managed" --generatedcppdir="C:/Users/Justin Ermel/Desktop/UnityProjects/RllerBall(1stTut)/Temp/StagingArea/Data/il2cppOutput"

    stdout:
    il2cpp.exe didn't catch exception: System.InvalidOperationException: C++ code builder is unable to build C++ code. In order to build C++ code for Windows Desktop, you must have one of these installed:
    Visual Studio 2015 with C++ compilers and Windows 10 SDK (it cannot build C++ code because it is not installed)
    Visual Studio 2015 installation is found by looking at "SOFTWARE\Microsoft\VisualStudio\14.0_Config\InstallDir" in the registry
    Windows 10 SDK is found by looking at "SOFTWARE\Wow6432Node\Microsoft\Microsoft SDKs\Windows\v10.0\InstallationFolder" in the registry

    Visual Studio 2017 with C++ compilers and Windows 10 SDK (it cannot build C++ code because Windows SDK is not installed)
    Visual Studio 2017 installation is found using Microsoft.VisualStudio.Setup.Configuration COM APIs
    Windows 10 SDK is found by looking at "SOFTWARE\Wow6432Node\Microsoft\Microsoft SDKs\Windows\v10.0\InstallationFolder" in the registry


    bei Unity.IL2CPP.Building.CppProgramBuilder.ThrowIfCannotBuildInCurrentEnvironment()
    bei Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
    bei il2cpp.Program.DoRun(String[] args, List`1 foundAssemblies)
    bei il2cpp.Program.Run(String[] args, Boolean setInvariantCulture)
    bei il2cpp.Program.Main(String[] args)
    stderr:

    Unbehandelte Ausnahme: System.InvalidOperationException: C++ code builder is unable to build C++ code. In order to build C++ code for Windows Desktop, you must have one of these installed:
    Visual Studio 2015 with C++ compilers and Windows 10 SDK (it cannot build C++ code because it is not installed)
    Visual Studio 2015 installation is found by looking at "SOFTWARE\Microsoft\VisualStudio\14.0_Config\InstallDir" in the registry
    Windows 10 SDK is found by looking at "SOFTWARE\Wow6432Node\Microsoft\Microsoft SDKs\Windows\v10.0\InstallationFolder" in the registry

    Visual Studio 2017 with C++ compilers and Windows 10 SDK (it cannot build C++ code because Windows SDK is not installed)
    Visual Studio 2017 installation is found using Microsoft.VisualStudio.Setup.Configuration COM APIs
    Windows 10 SDK is found by looking at "SOFTWARE\Wow6432Node\Microsoft\Microsoft SDKs\Windows\v10.0\InstallationFolder" in the registry


    bei Unity.IL2CPP.Building.CppProgramBuilder.ThrowIfCannotBuildInCurrentEnvironment()
    bei Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
    bei il2cpp.Program.DoRun(String[] args, List`1 foundAssemblies)
    bei il2cpp.Program.Run(String[] args, Boolean setInvariantCulture)
    bei il2cpp.Program.Main(String[] args)

    UnityEngine.Debug:LogError(Object)
    UnityEditorInternal.Runner:RunProgram(Program, String, String, String, CompilerOutputParserBase)
    UnityEditorInternal.Runner:RunManagedProgram(String, String, String, CompilerOutputParserBase, Action`1)
    UnityEditorInternal.IL2CPPBuilder:RunIl2CppWithArguments(List`1, Action`1, String)
    UnityEditorInternal.IL2CPPBuilder:ConvertPlayerDlltoCpp(Il2CppBuildPipelineData, String, String, Boolean)
    UnityEditorInternal.IL2CPPBuilder:Run()
    UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String, IIl2CppPlatformProvider, Action`1, RuntimeClassRegistry)
    DesktopStandalonePostProcessor:SetupStagingArea(BuildPostProcessArgs, HashSet`1)
    DesktopStandalonePostProcessor:postProcess(BuildPostProcessArgs)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)

    Error2:
    Exception: C:\Program Files\Unity\Hub\Editor\2019.4.11f1\Editor\Data\il2cpp/build/deploy/net471/il2cpp.exe did not run properly!
    UnityEditorInternal.Runner.RunProgram (UnityEditor.Utils.Program p, System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) (at <007193b7fa9c4ad1be5b26df6a654213>:0)
    UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action`1[T] setupStartInfo) (at <007193b7fa9c4ad1be5b26df6a654213>:0)
    UnityEditorInternal.IL2CPPBuilder.RunIl2CppWithArguments (System.Collections.Generic.List`1[T] arguments, System.Action`1[T] setupStartInfo, System.String workingDirectory) (at <007193b7fa9c4ad1be5b26df6a654213>:0)
    UnityEditorInternal.IL2CPPBuilder.ConvertPlayerDlltoCpp (UnityEditor.Il2Cpp.Il2CppBuildPipelineData data, System.String outputDirectory, System.String workingDirectory, System.Boolean platformSupportsManagedDebugging) (at <007193b7fa9c4ad1be5b26df6a654213>:0)
    UnityEditorInternal.IL2CPPBuilder.Run () (at <007193b7fa9c4ad1be5b26df6a654213>:0)
    UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String stagingAreaData, UnityEditorInternal.IIl2CppPlatformProvider platformProvider, System.Action`1[T] modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry) (at <007193b7fa9c4ad1be5b26df6a654213>:0)
    DesktopStandalonePostProcessor.SetupStagingArea (UnityEditor.Modules.BuildPostProcessArgs args, System.Collections.Generic.HashSet`1[T] filesToNotOverwrite) (at <007193b7fa9c4ad1be5b26df6a654213>:0)
    DesktopStandalonePostProcessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at <007193b7fa9c4ad1be5b26df6a654213>:0)
    Rethrow as BuildFailedException: Exception of type 'UnityEditor.Build.BuildFailedException' was thrown.
    DesktopStandalonePostProcessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at <007193b7fa9c4ad1be5b26df6a654213>:0)
    UnityEditor.Modules.DefaultBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <007193b7fa9c4ad1be5b26df6a654213>:0)
    UnityEditor.PostprocessBuildPlayer.Postprocess (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target, System.String installPath, System.String companyName, System.String productName, System.Int32 width, System.Int32 height, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at <007193b7fa9c4ad1be5b26df6a654213>:0)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)

    Error3:
    UnityEditor.BuildPlayerWindow+BuildMethodException: 3 errors
    at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002bb] in <007193b7fa9c4ad1be5b26df6a654213>:0
    at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in <007193b7fa9c4ad1be5b26df6a654213>:0
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)

    Thx in advanced for your help!


     
  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,646
  3. trabant256

    trabant256

    Joined:
    Sep 30, 2020
    Posts:
    2
    Ok thank u