UWP Build Failing
I am creating a UWP build of my game and it keeps failing. It builds a standard PC version successfully. Unity Version 2019.2.0f1 Visual Studio 2019 Enterprise I had some pretty serious slowdown issues with using Unity's 2Danimation tools, so I installed Burst and Collections. Burst 1.1.2
I have the "Desktop development with C++" and "Universal Windows Platform development " installed.
Getting the following 4 errors in the console. - BuildFailedException: Burst compiler (1.1.2) failed running stdout: Burst requires Visual Studio 2017 or greater (in addition: the Universal Windows Platform Development Workflow & C++ Universal Platform Tools need to be installed via the Visual Studio Installer) in order to build a standalone player for UWP with THUMB2_NEON32 Unable to find a valid linker at 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.26.28801\bin\Hostx64\arm\link.exe' stderr:
Unity.Burst.Editor.BurstAotCompiler+BclRunner.RunProgram (UnityEditor.Utils.Program p, System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, UnityEditor.Build.Reporting.BuildReport report) (at Library/PackageCache/com.unity.burst@1.1.2/Editor/BurstAotCompiler.cs:659) Unity.Burst.Editor.BurstAotCompiler+BclRunner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, UnityEditor.Build.Reporting.BuildReport report) (at Library/PackageCache/com.unity.burst@1.1.2/Editor/BurstAotCompiler.cs:597) Unity.Burst.Editor.BurstAotCompiler+BclRunner.RunManagedProgram (System.String exe, System.String args, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, UnityEditor.Build.Reporting.BuildReport report) (at Library/PackageCache/com.unity.burst@1.1.2/Editor/BurstAotCompiler.cs:571) Unity.Burst.Editor.BurstAotCompiler.OnPostBuildPlayerScriptDLLsImpl (UnityEditor.Build.Reporting.BuildReport report) (at Library/PackageCache/com.unity.burst@1.1.2/Editor/BurstAotCompiler.cs:286) Unity.Burst.Editor.BurstAotCompiler.OnPostBuildPlayerScriptDLLs (UnityEditor.Build.Reporting.BuildReport report) (at Library/PackageCache/com.unity.burst@1.1.2/Editor/BurstAotCompiler.cs:46) UnityEditor.Build.BuildPipelineInterfaces.OnPostBuildPlayerScriptDLLs (UnityEditor.Build.Reporting.BuildReport report) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildPipelineInterfaces.cs:452) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) -Error building Player: BuildFailedException: Burst compiler (1.1.2) failed running stdout: Burst requires Visual Studio 2017 or greater (in addition: the Universal Windows Platform Development Workflow & C++ Universal Platform Tools need to be installed via the Visual Studio Installer) in order to build a standalone player for UWP with THUMB2_NEON32 Unable to find a valid linker at 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.26.28801\bin\Hostx64\arm\link.exe' stderr: -Build completed with a result of 'Failed' UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) -UnityEditor.BuildPlayerWindow+BuildMethodException: 4 errors at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x00242] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:190 at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x0007f] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:95 UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Answer by kurtataylor · Jul 04, 2020 at 04:16 PM
I found my problem was that I didn't have VS Community installed. . I am a full time enterprise developer, and I develop in Visual Studio Enterprise. I didn't think I needed Community. I was updating my version to the new LTS version of Unity and I saw that it offered to let you download Community edition. So, I thought, huh...could that be the problem. So I agreed to install...and tested it right away. It built, no problemo. Make sure you have Community if you are using Burst in Unity, which you probably want to be using if you are using Unity's 2DAnimation tools extensively.
Answer by agp_frick · Feb 08, 2021 at 08:50 AM
I've encountered similar errors. Notice that it's missing the ARM linker. The problem is fixed after I installed the ARM toolchains from VS Installer. Please note that this tool might not installed even after choosing the UWP module in the VS Installer, so you have to go to invididual components tab and search for ARM (and maybe ARM64 too?), check and install it if you haven't done so. Hope it helps.
Your answer
