microsoft / MixedRealityToolkit-Unity

This repository is for the legacy Mixed Reality Toolkit (MRTK) v2. For the latest version of the MRTK please visit https://github.com/MixedRealityToolkit/MixedRealityToolkit-Unity
https://aka.ms/mrtkdocs
MIT License
6k stars 2.12k forks source link

Old project (Hololens 2) : Could not copy the file "*\Plugins\ARM\SpatialUnderstanding.dll" because it was not found #7757

Closed efsjouw closed 3 years ago

efsjouw commented 4 years ago

Overview

An old project with the really old Holotoolkit + MRDesignLabs HUX gives me this error on deploying to the Hololens.

Could not copy the file "*\Plugins\ARM\SpatialUnderstanding.dll" because it was not found

Is there any other way to tell Unity to not search for this dll?

Expected behavior

Deploy to the Hololens 2

Actual behavior

Could not copy the file "*\Plugins\ARM\SpatialUnderstanding.dll

Steps to reproduce

Unity editor version

2018.4.22f1

Mixed Reality Toolkit release version

Some old "HoloToolkit" 2016 version

efsjouw commented 4 years ago

Ok, copying the SpatialUnderstanding from WSA and the folder above that and then making ARM folders in both and putting CPU on ARM fixed this for me.

The thing is that the ARM option won't always show up for some reason (or I was just looking at another dll and assumed it wasn't possible or it just wasn't in the dropdown, I am not sure)

keveleigh commented 4 years ago

Looking back at the repo, looks like we added ARM support for that DLL: https://github.com/microsoft/MixedRealityToolkit/pull/132

If you're planning on using it on HL2, you should be able to clone that repo and build a new set of binaries, or you can open the solution and build just an ARM binary to fill the gap you currently have.

keveleigh commented 4 years ago

Is there any other way to tell Unity to not search for this dll?

Otherwise, I'm not sure. This behavior was updated in Unity 2019.3.9, but I'm not sure if the fix is going to be backported to Unity 2018.

dahaideyu commented 4 years ago

now ,in MRTK2.4 ,how to using spatialUnderstanding. or other way to get floor and Collision detection

keveleigh commented 3 years ago

Going to close this one down. It should be possible to build an ARM flavor of this DLL, and we've since replaced it with built-in MRTK Scene Understanding support.