Azure / azure-spatial-anchors-samples

Azure Spatial Anchors sample code
Other
293 stars 138 forks source link

Dll not found on HoloLens 2 #406

Open ArDevKarl opened 1 year ago

ArDevKarl commented 1 year ago

I installed Azure Spatial Anchors using the MRTK Feature Tool following the instructions of this page: https://learn.microsoft.com/en-us/azure/spatial-anchors/how-tos/setup-unity-project?tabs=xr-plugin-framework%2Cunity-2020%2Cunity-package-mixed-reality-feature-tool%2CExtraConfigurationsHoloLens#download-asa-packages

Versions:

ASA Core v2.14.1
ASA Windows v2.14.1
Windows Mixed Reality 4.6.5
Unity 2020.3.42f1
MRTK v2.8.2.0
Device: HoloLens 2 - Windows Holographic 22H1

I'm crating a new CloudSpatialAnchorSession with my credentials (ID, Key and domain). To create a now anchor, I'm using the code provided in the docs (https://learn.microsoft.com/en-us/azure/spatial-anchors/how-tos/create-locate-anchors-unity)

Now all I get is a DllNotFoundException: "DllNotFoundException: AzureSpatialAnchors Microsoft.Azure.SpatialAnchors.CloudSpatialAnchorSession..ctor () (at Library/PackageCache/com.microsoft.azure.spatial-anchors-sdk.windows@4bce2833f5cd/Runtime/AzureSpatialAnchorsBridge_Windows.cs:2546)"

Is it possible this Unity Version (2020.3.42f1) is not supported, or Windows XR support does not work with Spatial Anchors?

UnityPlayer.log

DllNotFoundException: Unable to load DLL 'AzureSpatialAnchors': The specified module could not be found. at Microsoft.Azure.SpatialAnchors.CloudSpatialAnchorSession..ctor () [0x00000] in <00000000000000000000000000000000>:0 at ARInsight.Tracking.SpatialAnchors.AnchorClient.Start () [0x00000] in <00000000000000000000000000000000>:0 UnityEngine.DebugLogHandler:LogException(Exception, Object) InsightLogHandler:LogException(Exception, Object) UnityEngine.Logger:LogException(Exception, Object) UnityEngine.Debug:CallOverridenDebugHandler(Exception, Object)