carmines / UnityPluginCollection

source code for Unity plugins for Desktop and UWP
MIT License
30 stars 7 forks source link

Unnable to build to UWP #9

Closed Nuno-Monteiro closed 3 years ago

Nuno-Monteiro commented 4 years ago

Hello! Super excited about this repo and being able to access camera stream on HLL2. I managed to compile the dll's for all architectures (altough I had to edit UWP.vcproj and delete the requires module line about Cpp.WinRT) However I'm having a very weird issue building the UWP proj from Unity (2019.4.1f1).

The error is: IOException: Failed to copy C:\Program Files\Unity\Hub\Editor\2019.4.1f1\Editor\Data\il2cpp\external\bdwgc\libatomic_ops\src\atomic_ops\sysdeps\loadstore\char_acquire_release_volatile.h to C:\Users\NunoMonteiro\Documents\test\UnityPluginCollection-master\CameraCapture\CameraCapture\UnitySample\CameraCaptureApp\Temp\StagingArea\Il2CppOutputProject\IL2CPP\external\bdwgc\libatomic_ops\src\atomic_ops\sysdeps\loadstore\char_acquire_release_volatile.h: The system cannot find the path specified.

The most bizarre thing is that if I copy and paste this path on explorer I can open the file!

Did you ever get this issue? What am I doing wrong?

Cheers!

cwule commented 3 years ago

Instead of removing Cpp.WinRT, download this and then build again.

mindfreaak commented 3 years ago

as @cwule said, try to download the C++/WinRT extension. if that did not reslove the issue try these steps:

carmines commented 3 years ago

correct, you should be on the latest VS2019 and ensure you have the cppwinrt extension installed from Visual Studio. There is also a Nuget package that you may not have. Right-click the solution and select "Manage Nuget Package"