Using a customized DLL for HoloLens 2 development on Unreal 4.26 (OpenCV)

At my work we are currently developing an application for the HoloLens 2, we are using the newest Unreal Engine 4.26. Within the application we need to be able to recognize and image/pattern in order to trigger some events. After researching a bit we managed to get working the OpenCV in Unreal Engine 4.26, but as for the HoloLens 2, we managed to create a customized DLL for it, but still have not find the way to deploy it correctly at the device. Any advices on deploying this customized DLL for the HoloLens 2 at UE4.26? Or is there a way for UE4.26 to not rely on this DLL and rely only on the .LIB?

Thanks in advance for your patience and answers.

HL2 can load dlls with the only limitations - they should be UWP compatible. You need to add the dll to your Build.cs RuntimeDependencies and PublicDelayLoadDLLs. Then call FPlatformProcess::GetDllHandle at the module startup.

You can see some technical details here

https://docs.microsoft.com/en-us/win…winrt?tabs=425