Search Unity

4 Errors when building game with XR Toolkit using openVR

Discussion in 'AR/VR (XR) Discussion' started by Loki18000, Aug 22, 2020.

  1. Loki18000

    Loki18000

    Joined:
    Apr 1, 2015
    Posts:
    75
    Hello,

    I'm having an issue when building a small project with just a XR Rig. There is 4 Errors that Unity throws. I have read through them but I don't understand the issue as I'm new to the XR Toolkit. I'm really just working on some ideas for weapon handeling in VR. Thank you for any help.

    Failed running C:\Program Files\Unity\Hub\Editor\2019.4.4f1\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\Danny\WW1 Testing\Temp/StagingArea/Data\Native\GameAssembly.dll" --cachedirectory="C:\Users\Danny\WW1 Testing\Assets\..\Library/il2cpp_cache" --profiler-report --map-file-parser="C:/Program Files/Unity/Hub/Editor/2019.4.4f1/Editor/Data/Tools/MapFileParser/MapFileParser.exe" --directory="C:/Users/Danny/WW1 Testing/Temp/StagingArea/Data/Managed" --generatedcppdir="C:/Users/Danny/WW1 Testing/Temp/StagingArea/Data/il2cppOutput"

    Exception: C:\Program Files\Unity\Hub\Editor\2019.4.4f1\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 <fd8fd784002f49beab0500d3a24213b9>:0)
    UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action`1[T] setupStartInfo) (at <fd8fd784002f49beab0500d3a24213b9>:0)
    UnityEditorInternal.IL2CPPBuilder.RunIl2CppWithArguments (System.Collections.Generic.List`1[T] arguments, System.Action`1[T] setupStartInfo, System.String workingDirectory) (at <fd8fd784002f49beab0500d3a24213b9>:0)
    UnityEditorInternal.IL2CPPBuilder.ConvertPlayerDlltoCpp (UnityEditor.Il2Cpp.Il2CppBuildPipelineData data, System.String outputDirectory, System.String workingDirectory, System.Boolean platformSupportsManagedDebugging) (at <fd8fd784002f49beab0500d3a24213b9>:0)
    UnityEditorInternal.IL2CPPBuilder.Run () (at <fd8fd784002f49beab0500d3a24213b9>:0)
    UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String stagingAreaData, UnityEditorInternal.IIl2CppPlatformProvider platformProvider, System.Action`1[T] modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry) (at <fd8fd784002f49beab0500d3a24213b9>:0)
    DesktopStandalonePostProcessor.SetupStagingArea (UnityEditor.Modules.BuildPostProcessArgs args, System.Collections.Generic.HashSet`1[T] filesToNotOverwrite) (at <fd8fd784002f49beab0500d3a24213b9>:0)
    DesktopStandalonePostProcessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at <fd8fd784002f49beab0500d3a24213b9>:0)
    Rethrow as BuildFailedException: Exception of type 'UnityEditor.Build.BuildFailedException' was thrown.
    DesktopStandalonePostProcessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at <fd8fd784002f49beab0500d3a24213b9>:0)
    UnityEditor.Modules.DefaultBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <fd8fd784002f49beab0500d3a24213b9>: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 <fd8fd784002f49beab0500d3a24213b9>:0)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)

    Build completed with a result of 'Failed' in 38 seconds (37594 ms)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)

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

    Zazsona

    Joined:
    Mar 22, 2019
    Posts:
    1
    Hey, I've got this same issue on 2019.4.4f1. Based on the message, it seems likely to be an error with the Post Processing Stack. Did you ever have any luck fixing it?

    EDIT: For anyone else encountering this, it seems for a reason unknown to me, my Windows SDK was no longer being picked up by IL2CPP. Uninstalling and reinstalling the SDK via Visual Studio's Installer solved it.
     
    Last edited: Oct 11, 2020