Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DLL not found exception when trying to build x64 for HoloLens 2 Emulator #43

Closed
ahorn42 opened this issue Jan 17, 2020 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@ahorn42
Copy link

ahorn42 commented Jan 17, 2020

Hi and at first - thanks for the nice work!

I have a problem, when I try to run the example in the HoloLens 2 Emulator. As I unfortunately don't have a HL2 available yet I wanted to have look at you framework in the emulator.

If I am right the emulator for HL2 does not use ARM64 like the real device, but x64 or x86 to run the application. For that reason I choose the config Debug, x64, StereoKitTest_UWP, HoloLens 2 Emulator. But when starting this, I am getting an exception complaining about a missing DLL file StereoKitC.dll.
Building and running it as x64 for Local Machine works as expected. (Beside the fact I would expect to run the app in the Windows MR Portal, instead of a UWP Desktop application - but that's not related to my question here ;) )

image

Did I miss something or do I need to run some scripts first?

@maluoi
Copy link
Collaborator

maluoi commented Jan 18, 2020

I've had a bit of trouble with this particular scenario, but it shouldn't be present if you're using the NuGet package! Release mode should also work fine.

The UWP project has been pretty fiddly about referencing that native DLL, and while I've gotten most cases working, the emulator hasn't been on my hit-list! I'll see if I can figure it out, but given how slow and difficult to use it is, I rarely recommend anyone to use the Emulator for regular development! I use a WMR headset with a Leap Motion on it, but controllers work great too.

@maluoi maluoi added the bug Something isn't working label Jan 18, 2020
maluoi added a commit that referenced this issue Feb 17, 2020
@maluoi maluoi closed this as completed Feb 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants