Closed dl4mmers closed 9 months ago
Interesting...I haven't hit this myself, but it looks like it should be fixed in the latest version of VS 2022 according to https://developercommunity.visualstudio.com/t/latest-update-of-vs2022-prevents-the-building-of-h/1694185. Can you please confirm which release you're on, and possibly update if there's one available?
Should be the latest version:
Microsoft Visual Studio Community 2022 (64-Bit) - Current Version 17.2.3
Mh, maybe this issue was resolved for ARM64 but not for ARM?
Interesting...I just updated to 17.2.4 and was successful building for both ARM and ARM64. I'll keep trying to repro though.
Interesting...I just updated to 17.2.4 and was successful building for both ARM and ARM64. I'll keep trying to repro though.
I have same problem, and I updated to 17.2.4. Still can not build.
Can confirm that this issue is also happening to me on both 17.2.3 and 17.2.4. Building for Master and Release on ARM fails with the above error.
Interesting...I just updated to 17.2.4 and was successful building for both ARM and ARM64. I'll keep trying to repro though.
Do you also have VS 2019 installed? I have now installed VS 2019 and uninstalled package "C++ (v143) Universal Windows Platform tools" from VS 2022. When building for VS 2019 in Unity, the build for ARM works in VS 2022 and output shows
1> Msvc Install Version: 15.0
1> Msvc Install SDK Directory: C:\Program Files (x86)\Windows Kits\10
1> Msvc Linker Path: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX64\ARM\link.exe
1> Msvc Compiler Path: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX64\ARM\cl.exe
Before output was
1> Msvc Install Version: 17.0
1> Msvc Install SDK Directory: C:\Program Files (x86)\Windows Kits\10
1> Msvc Linker Path: C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.32.31326\bin\HostX64\ARM\link.exe
1> Msvc Compiler Path: C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.32.31326\bin\HostX64\ARM\cl.exe
and build resulted in above error.
I have noticed that VS 2022 folder C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\
is also containing MSVC version 14.29.30133, but I could not find out how this version can be used to build the app when VS 2022 is the only VS version installed (second error of my main post occurs when vcxproj files are manually set to v142 build tools and VS 2019 is not installed).
Have there been any updates?
We appreciate your feedback and thank you for reporting this issue.
Microsoft Mixed Reality Toolkit version 2 (MRTK2) is currently in limited support. This means that Microsoft is only fixing high priority security issues. Unfortunately, this issue does not meet the necessary priority and will be closed. If you strongly feel that this issue deserves more attention, please open a new issue and explain why it is important.
Microsoft recommends that all new HoloLens 2 Unity applications use MRTK3 instead of MRTK2.
Please note that MRTK3 was released in August 2023. It features an all new architecture for developing rich mixed reality experiences and has a minimum requirement of Unity 2021.3 LTS. For more information about MRTK3, please visithttps://www.mixedrealitytoolkit.org.
Thank you for your continued support of the Mixed Reality Toolkit!
Describe the issue
Hi! On my old PC I have VS 2017 installed and can build my HL application (Unity 2019.4.39f1 / Legacy XR) for Release / Master / x86 / ARM.
Now I have to setup a new PC for HoloLens developing and installed all the tools as listed here: https://docs.microsoft.com/en-us/windows/mixed-reality/develop/install-the-tools
When trying to build the existing application for ARM with VS 2022 I get compiler errors and so I created a new project with MRTK 2.8.0 / OpenXR / Unity 2020.3.35f1 and tried to build one of the MRTK example scenes: Same compiler error.
x86 and ARM64 working fine, but because I'm using MixedReality-WebRTC in my application, i cannot build for ARM64. Is this a known issue?
As stated in the documentation I've installed VS 2022 package "C++ (v142) Universal Windows Platform tools (required when using Unity)" but it seems that for the build v143 is used (and also listed in the vxproj files). I tried to set this to v142 in the vxproj files, but then get this error:
Or when removing all of C++ (v143) packages I get:
I think an older compiler (used in VS 2017 or VS 2019) should work for ARM when build is started from VS 2022, but I could not find out how this can be configured.
Feature area
VS 2022 should be able to build HoloLens applications for all supported platforms, but ARM does not work. After building a MRTK example scene in Unity, VS 2022 is showing up a notification that package "C++ (v143) Universal Windows Platform tools" should be installed to be able to build the application, while this package is not listed in the documentation. The vxproj files in Unity output folder do contain references to v143 build tools. When changing these references to v142 build tools, VS 2022 is showing an error when trying to build the app "Visual Studio 2017 support for ARMv7 is not installed" although v142 build tools are installed as suggested in docs.
Existing doc link
https://docs.microsoft.com/en-us/windows/mixed-reality/develop/install-the-tools