-
Notifications
You must be signed in to change notification settings - Fork 30
Description
Overall
It is impossible to use this sample project in Remoting standalone app mode build for Windows while remoting to Hololens 2. In Unity editor, everything works fine.
To Reproduce
It can be easily reproduced just by building the sample project targeting Windows standalone x64 and launching it. It will always give this error on start or anytime there is an attempt to initialize the QR code tracking

The error is the same also when remoting is correctly setup in the project and QR setup is only launched after the headset is succesfuly connected to the app on pc.
I have tried to temporarily include all necessary dlls in Windows environment path, which fixed the first error, but subsequently it gives the following error.
I have also tried to build the project with Il2CPP to find out if the issue is not only on Mono, but it is unbuildable on both pcs i tried it on. I should have all neccessary things for Visual Studio installed, i even added bunch of old optional stuff from Visual studio installer/Desktop development with C++ section that i figured could be linked to this problem, but no luck. I also build relatively often with Il2CPP and never had build issue like this.
I have Microsoft Visual C++ installed from 2005 all the way to 2022

I have tried every solution on both different computers, both give the same results.
Due to issue being with something with WinRT library, i have tried also OpenXR branch, which unfortunately gives the same errors. To me it appears there might be something wrong with how the QR tracking is linked to WinRT.
In Editor, there are these two special scripts to initialize important dlls on project start


Might this be a reason why everything works in Editor, but not in build?
Is there any known solution how to get QR code tracking working while Remoting to Hololens 2 from Standalone Windows app?

