Hello everyone.

The Mixed Reality Forums here are no longer being used or maintained.

There are a few other places we would like to direct you to for support, both from Microsoft and from the community.

The first way we want to connect with you is our mixed reality developer program, which you can sign up for at https://aka.ms/IWantMR.

For technical questions, please use Stack Overflow, and tag your questions using either hololens or windows-mixed-reality.

If you want to join in discussions, please do so in the HoloDevelopers Slack, which you can join by going to https://aka.ms/holodevelopers, or in our Microsoft Tech Communities forums at https://techcommunity.microsoft.com/t5/mixed-reality/ct-p/MicrosoftMixedReality.

And always feel free to hit us up on Twitter @MxdRealityDev.
Options

Cannot load SpatialPerceptionHelper.dll

newskenewske
edited March 2017 in Questions And Answers

Hi,
I'm nearly finished setting up my app for spectator view - but I am having some trouble with getting it to run on the Hololens. It works perfectly in the editor, and the compositor windows successfully displays both video and holographic streams. Calibration worked fine with an Elgato card. Hololens firmware is up to date as of 20/03.

I have followed the git instructions and built both x64 and x86 release versions, and the meta files for the dlls in Unity are appropriately identifying the version (matching the git repo).

When I build and deploy for Debug/x86 it does not find the dll at all.

When I build and deploy for Release/x86 I get the following exception:

Exception thrown: 'System.TypeLoadException' in MyAppName.McgInterop.dll TypeLoadException: Unresolved P/Invoke method 'GetHeadTransform!SpatialPerceptionHelper' in assembly 'Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs. at MyAppName!<BaseAddress>+0xcf8f26 at SpectatorView.SV_RemotePlayerManager.Update() (Filename: <Unknown> Line: 0)

I have built SpatialPerceptionHelper against Windows 10 SDK 10.01.14393.033 and copied all with CopyDLL. The files exist in MyApp\Assets\Addons\HolographicCameraRig\Plugins\WSA\x86.

Unity version: 5.5.0f3

Any assistance would be greatly appreciated.

(Apologies if this is the wrong place to ask these questions - if so please advise)

Tagged:
Sign In or Register to comment.