MixedRealityCompanionKit icon indicating copy to clipboard operation
MixedRealityCompanionKit copied to clipboard

DllNotFoundException: Unable to load DLL MixedRemoteViewCompositor

Open einstyle opened this issue 8 years ago • 8 comments

Hi,

I´ve tried to build MRVC example . When I run the application, I get the following error: DllNotFoundException:Unable to load DLL ´MixedRemoteViewCompositor´: The specified module could not be found. (Exception from HRESULT. 0x8007007E)

Can someone help me to solve this issue? Furthermore, when I press "start capture", shouldn´t I see somewhere in this demo a stream of the Hololens?

Thank you

einstyle avatar May 05 '17 08:05 einstyle

The mixed remote view compositor should be built first which will copy the dll/lib etc to the necessary location. The viewer can then be built and should work, the current commit works for me. Make sure you have everything consistent in terms of platform/configuration, you should not need to change anything.

In order to view the Hololens camera, you have to run the viewer app on the HoloLens in capture mode (with this minor change). Then you can view it with the viewer in playback mode on the PC. Also, I was only able to successfully deploy the viewer to the Hololens with VS 2017, VS 2015 did not work for me.

LDeakin avatar May 08 '17 05:05 LDeakin

I met the same error. I can confirm the dll/lib exist in the output folder. Suspect the error is related to some dependences loading issue of MixedRemoteViewCompositor, still trying to figure out. Anyone has working sample of lowlatencyMRC or other ideas will be great.

freistli avatar Jun 15 '17 10:06 freistli

Found the cause, need to put dll under WSA to the unity output folder instead of that one in X86. Hope it helps others.

freistli avatar Jun 19 '17 09:06 freistli

@freistli I am having the same issue. Can you be more specific: What do you mean by "put dll under WSA to the unity output folder instead of the one in X86" Thanks in advance

ghost avatar Jun 25 '17 01:06 ghost

same here dlls mising from project, where get them?

friuns2 avatar Sep 19 '17 13:09 friuns2

For those who still have this problem, you have to rebuild the dll for x64, add it to the right folder and set the right platform in the import settings

You can get the source from here: https://github.com/Microsoft/MixedRealityCompanionKit/tree/master/MixedRemoteViewCompositor/Source

saidbet avatar Sep 24 '17 23:09 saidbet

@saidbet what are the steps you have taken to rebuild the dll for x64?

VS2017 build tools did not work, so I installed VS2015 with the required additional components to build C++ solutions. The project begins to compile, but throws this error before finishing: C:\Program Files (x86)\Windows Kits\10\Include\10.0.10586.0\ucrt\corecrt.h(10): fatal error C1083: Cannot open include file: 'vcruntime.h': No such file or directory

Any insight or help you can offer would be much appreciated. Let me know if I should post this somewhere more appropriate.

michaeldboyd avatar Sep 26 '17 17:09 michaeldboyd

I used VS2017, and didn't encounter any problem. I think your error comes from your Visual Studio installation and not from the source itself. Maybe a component is missing.

saidbet avatar Sep 26 '17 18:09 saidbet