I am working through the tutorial here (https://docs.microsoft.com/en-us/windows/mixed-reality/unreal-uxt-ch6) and trying to do the last step of packaging the HoloLens 2 application to an .appx that can be deployed on the device. However, the build is failing - and I think this is because it is trying to build multiple architectures instead of just ARM or ARM64.
This is on Unreal Edition 4.25.1-13594126+++UE4+Release-4.25
Plugins enabled: Mixed Reality UX Tools, Microsoft Windows Mixed Reality 1.0, HoloLens 1.0
Project Settings - Build Configuration = Shipping
Supported Platforms = HoloLens
Then I Package for HoloLens.
-
The build fails with this error:
UATHelper: Packaging (HoloLens): ERROR: Stage Failed. Missing receipt ‘D:\Epic\UE_4.25\Engine\Binaries\HoloLens\UE4Game-HoloLens-ShippingMulti.target’. Check that this target has been built.
UATHelper: Packaging (HoloLens): (see C:\Users\larso\AppData\Roaming\Unreal Engine\AutomationTool\Logs\D+Epic+UE_4.25\Log.txt for full exception trace) -
I copy UE4Game-HoloLens-SHippingarm64.target as UE4Game-HoloLens-ShippingMulti.target, the build can proceed further.
It then fails at makeappx.exe with error 80080204
The errors 1+2 both suggest that UE4 is trying to build / target to multiple architectures which will fail due to a lack of target and then fails due to makeappx being unable to simultaneously build for ARM and x86, x64 at the same time.
I can’t find a way to only target to ARM64, the architecture for HoloLens 2. Any ideas how to fix? Is this a problem with a particular version of UE4?