adabru / BleWinrtDll

BLE for Unity 3d in Windows without UWP.
Do What The F*ck You Want To Public License
168 stars 52 forks source link

Failed to load 'BleWinrtDll.dll' because one or more of its dependencies could not be loaded. #23

Closed marianylund closed 2 years ago

marianylund commented 2 years ago

First of all, thank you so much for this Dll! It works wonders in Unity.

I am attempting to use it on HoloLens 2 and at first it failed because of the wrong architecture, so I've built the Dll for ARM64 following this guide. Alas, now it fails because it is missing some of the dependencies. I have used Dependencies program to check which I am missing in the BleWinrtDll built for ARM64:

When I check BleWinrtDll built for x64 those Dlls are found, but I am not able to build it to HoloLens since it is wrong architecture. This is way over my head, so I am wondering:

Any tips would be highly appreciated! As I am quite stuck.

adabru commented 2 years ago

Hi @marianylund , you probably need to install the visual studio redistributable from https://support.microsoft.com/en-us/topic/the-latest-supported-visual-c-downloads-2647da03-1eea-4433-9aff-95f26a218cc0 . Maybe you will also hit https://github.com/adabru/BleWinrtDll/issues/11 . I don't have experience with the HoloLens. If you encounter HoloLens-specific problems, you could try to contact the poster from that issue.

marianylund commented 2 years ago

Thank you, @adabru, the issue was that the Dll project had to be configured for UWP as @ShumWengSang so kindly pointed out in this issue. I have created a fork of this repository and updated Unity Project to be ready for HoloLens 2 build together with the Dlls for Unity Editor and HoloLens. Also Arduino code is included if anyone will be interested: https://github.com/marianylund/BleWinrtDll. Hope this will help the next HoloLens enthusiasts! ;D