ozonex
January 16, 2018, 2:20pm
1
I tried to build windows standalone using new il2cpp but i get error, even on new empty project. Tried on 2 devices one with Pro license and one with Personal but same error. I installed “Windows IL2CPP Scripting Backend” and I’m using Visual studio 2017 on Windows 10.
I tried building with .NET 2.0 and .NET 4.6.
“Nie mo�na odnale�� okre�lonego pliku” means “File can’t be found”.
Failed running C:\Program Files\Unity 2018\Editor\Data\il2cpp/build/il2cpp.exe --convert-to-cpp --enable-array-bounds-check --compile-cpp --libil2cpp-static --platform=“WindowsDesktop” --architecture=“x64” --configuration=“Release” --outputpath=“M:\ozonex\Testcpp\Temp/StagingArea/Data\Native\GameAssembly.dll” --cachedirectory=“M:\ozonex\Testcpp\Assets..\Library/il2cpp_cache” --map-file-parser=“C:\Program Files\Unity 2018\Editor\Data\Tools\MapFileParser\MapFileParser.exe” --assembly=“M:\ozonex\Testcpp\Temp\StagingArea\Data\Managed\UnityEngine.Analytics.dll” --assembly=“M:\ozonex\Testcpp\Temp\StagingArea\Data\Managed\UnityEngine.dll” --generatedcppdir=“M:\ozonex\Testcpp\Temp\StagingArea\Data\il2cppOutput”
stdout:
Building GameAssembly.dll with MsvcDesktopToolChain.
Output directory: M:\ozonex\Testcpp\Temp\StagingArea\Data\Native
Cache directory: M:\ozonex\Testcpp\Library\il2cpp_cache
il2cpp.exe didn’t catch exception: System.AggregateException: Wyst�pi� przynajmniej jeden b��d. —> System.ComponentModel.Win32Exception: Nie mo�na odnale�� okre�lonego pliku
w System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
w Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
w Unity.IL2CPP.Building.CompilationInvocation.Execute()
w Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
w Unity.IL2CPP.Building.ParallelFor.c__AnonStorey12.<>m__0(Object o) --- Koniec �ladu stosu wyj�tk�w wewn�trznych --- w Unity.IL2CPP.Building.ParallelFor.RunWithResult[D,T](D[ ] data, Func2 action)
w Unity.IL2CPP.Building.CppProgramBuilder.BuildAllCppFiles(IEnumerable1 sourceFilesToCompile, IBuildStatisticsCollector statisticsCollector) w Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics) w Unity.IL2CPP.Building.Statistics.BuildingTestRunnerHelper.BuildAndLogStatsForTestRunner(CppProgramBuilder builder, IBuildStatistics& statistics) w il2cpp.Program.DoRun(String[ ] args) w il2cpp.Program.Run(String[ ] args) w il2cpp.Program.Main(String[ ] args) ---> (Wyj�tek wewn�trzny #0) System.ComponentModel.Win32Exception (0x80004005): Nie mo�na odnale�� okre�lonego pliku w System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo) w Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller) w Unity.IL2CPP.Building.CompilationInvocation.Execute() w Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data) w Unity.IL2CPP.Building.ParallelFor.<RunWithResult>c__AnonStorey12.<>m__0(Object o)<—
—> (Wyj�tek wewn�trzny #1 ) System.ComponentModel.Win32Exception (0x80004005): Nie mo�na odnale�� okre�lonego pliku
w System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
w Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
w Unity.IL2CPP.Building.CompilationInvocation.Execute()
w Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
w Unity.IL2CPP.Building.ParallelFor.c__AnonStorey1`2.<>m__0(Object o)<—
—> (Wyj�tek wewn�trzny #2 ) System.ComponentModel.Win32Exception (0x80004005): Nie mo�na odnale�� okre�lonego pliku
w System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
w Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
w Unity.IL2CPP.Building.CompilationInvocation.Execute()
w Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
w Unity.IL2CPP.Building.ParallelFor.c__AnonStorey1`2.<>m__0(Object o)<—
—> (Wyj�tek wewn�trzny #3 ) System.ComponentModel.Win32Exception (0x80004005): Nie mo�na odnale�� okre�lonego pliku
w System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
w Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
w Unity.IL2CPP.Building.CompilationInvocation.Execute()
w Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
w Unity.IL2CPP.Building.ParallelFor.c__AnonStorey1`2.<>m__0(Object o)<—
stderr:
Wyj�tek nieobs�u�ony: System.AggregateException: Wyst�pi� przynajmniej jeden b��d. —> System.ComponentModel.Win32Exception: Nie mo�na odnale�� okre�lonego pliku
w System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
w Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
w Unity.IL2CPP.Building.CompilationInvocation.Execute()
w Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
w Unity.IL2CPP.Building.ParallelFor.c__AnonStorey12.<>m__0(Object o) --- Koniec �ladu stosu wyj�tk�w wewn�trznych --- w Unity.IL2CPP.Building.ParallelFor.RunWithResult[D,T](D[ ] data, Func2 action)
w Unity.IL2CPP.Building.CppProgramBuilder.BuildAllCppFiles(IEnumerable`1 sourceFilesToCompile, IBuildStatisticsCollector statisticsCollector)
w Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
w Unity.IL2CPP.Building.Statistics.BuildingTestRunnerHelper.BuildAndLogStatsForTestRunner(CppProgramBuilder builder, IBuildStatistics& statistics)
w il2cpp.Program.DoRun(String[ ] args)
w il2cpp.Program.Run(String[ ] args)
w il2cpp.Program.Main(String[ ] args)
Hi,
do you have C++ support installed in VS2017?
ozonex
January 16, 2018, 4:52pm
3
I just updated Visual Studio and instaled C++ support from Visual Studio installer and it works now. Thanks!
I didn’t had any issues building il2cpp for other platforms so I didn’t think it can be Visual Studio issue. It should be mentioned somewhere in docs.
I agree with that.
It also takes far too long before those exceptions get thrown. Checking for existance of those binaries should really be one of the first things IL2CPP does.
3 Likes