Skip to content
This repository has been archived by the owner on Mar 22, 2022. It is now read-only.

Problem building - 'Could not copy the file "C:\mr-webrtc\bin\UWP\ARM\Debug\Microsoft.MixedReality.WebRTC.Native.dll" because it was not found' #32

Closed
retallicka opened this issue Aug 5, 2019 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@retallicka
Copy link

retallicka commented Aug 5, 2019

I followed the instructions over at https://microsoft.github.io/MixedReality-WebRTC/manual/building.html
I encountered a problem using Visual Studio 2019 then I saw an Issue (#14) which seemed to suggest only Visual Studio 2017 was supported so I tried with Visual Studio 2017 after resetting my git status

Trying to build with VS 2017 v15.9.13 I get these three errors

Could not copy the file "C:\mr-webrtc\bin\UWP\ARM\Debug\Microsoft.MixedReality.WebRTC.Native.dll" because it was not found. Microsoft.MixedReality.WebRTC.TestAppUWP

Could not copy the file "C:\mr-webrtc\bin\UWP\ARM\Debug\Microsoft.MixedReality.WebRTC.Native.pdb" because it was not found. Microsoft.MixedReality.WebRTC.TestAppUWP

Cannot open include file: 'cryptopp/allocatorwithnul.h': No such file or directory Microsoft.MixedReality.WebRTC.Native.UWP c:\mr-webrtc\external\webrtc-uwp-sdk\webrtc\xplatform\zslib-eventing\zslib\eventing\types.h 40

@djee-ms
Copy link
Member

djee-ms commented Aug 6, 2019

Hi @retallicka, thanks for logging those.

  • The first issue with missing DLL/PDB is Visual Studio being picky about some build order compiling and some reference inside the project. I have yet to understand exactly what happens, but if you compile a second time that TestAppUWP project after the Native.UWP was compiled it should find the file. I am not sure why it doesn't find it the first time. We suspect that there is a problem with this DLL being a direct reference in the csproj, maybe there is a better mechanism.

  • I just hit yesterday the second issue about cryptopp on a new machine. I will have a fix soon; this is just I think a matter of adding an include path to external/webrtc-uwp-sdk/webrtc/xplatform where cryptopp is.

@djee-ms djee-ms self-assigned this Aug 6, 2019
@djee-ms djee-ms added the bug Something isn't working label Aug 6, 2019
@djee-ms
Copy link
Member

djee-ms commented Aug 6, 2019

Fixed the cryptopp build error with 945c967 on master.

@djee-ms
Copy link
Member

djee-ms commented Aug 6, 2019

Hopefully fixed the TestAppUWP build not finding the native DLL with 4efd712 on master, can you please give it a try @retallicka? I suggest cleaning and rebuilding the entire solution to test it doesn't work just thanks to a previous build. I just did that on x64 Debug and it works on my machine.

@retallicka
Copy link
Author

@djee-ms the build works now, thanks for fixing so quickly 👍

@djee-ms
Copy link
Member

djee-ms commented Aug 6, 2019

Great, thanks! I need to add a unit test to avoid breaking the solution; logged #33.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants