Y
Y
Yuri Kai2020-06-17 13:40:39
Unity
Yuri Kai, 2020-06-17 13:40:39

How to fix IL2CPP compilation error?

Recently, Unity stopped building projects with IL2CPP. I tried a couple of options, installed the latest version - did not help, installed Windows 10 sdk - what do you think? - didn't help (

There are, of course, small prerequisites, before that I reinstalled all MV C++ Redistributable, again, I didn't just delete and forget, but installed it in a new way and even supplemented it with some versions.

Who can tell me what's the trouble? // don't say current " with a head "(((
Here is the log:

Failed running C:\Program Files\Unity\Hub\Editor\2019.4.0f1\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="x86" --configuration="Release" --outputpath="D:\Projects\CourseWork\RollTheDice\Temp/StagingArea/Data\Native\GameAssembly.dll" --cachedirectory="D:\Projects\CourseWork\RollTheDice\Assets\..\Library/il2cpp_cache" --profiler-report --map-file-parser="C:/Program Files/Unity/Hub/Editor/2019.4.0f1/Editor/Data/Tools/MapFileParser/MapFileParser.exe" --directory=D:/Projects/CourseWork/RollTheDice/Temp/StagingArea/Data/Managed --generatedcppdir=D:/Projects/CourseWork/RollTheDice/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 it 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


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

����ࠡ�⠭��� �᪫�祭��: 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 it 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


   � Unity.IL2CPP.Building.CppProgramBuilder.ThrowIfCannotBuildInCurrentEnvironment()
   � Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
   � il2cpp.Program.DoRun(String[] args, List`1 foundAssemblies)
   � il2cpp.Program.Run(String[] args, Boolean setInvariantCulture)
   � 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)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
freeExec, 2020-06-17
@Develoder

It seems to say in English "put 2015 or 2017 studio in Win10 SDK"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question