@Develoder
Моя игра https://ur-l.ru/sioKg

Как исправить ошибку компиляции IL2CPP?

После недавного времени Unity перестал билдить проекты с IL2CPP. Я перепробовал пару вариантов, устанавливал самую последнюю версию - не помогло, установил Windows 10 sdk - как выв думаете? - не помогло(

Есть конечно небольшой предпосылки, я до этого все MV C++ Redistributable переустанавливал, опять же, я не просто удалил и забыл, а установил по новому и даже некоторыми версиями дополнил.

Кто подскажет в чем беда? // ток не говорите "с бошкой"(((
Вот лог:
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)
  • Вопрос задан
  • 1653 просмотра
Решения вопроса 1
freeExec
@freeExec
Участник OpenStreetMap
Там вроде по английски написано "поставьте 2015 или 2017 студию в Win10 SDK"
Ответ написан
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы