Microsoft-OpenXR-Unreal
Microsoft-OpenXR-Unreal copied to clipboard
Problem building to HoloLens, getting: Missing precompiled manifest for 'NuGetModule' error.
When I try to build to HoloLens I get a NuGetModule missing error. I followed this guide to setup a HoloLens project and build.
I have disabled Microsoft Windows Mixed Reality and enabled the Microsoft OpenXR.
Here is the full error:
UATHelper: Packaging (HoloLens): ERROR: Missing precompiled manifest for 'NuGetModule'. This module was most likely not flagged for being included in a precompiled build - set 'PrecompileForTargets = PrecompileTargetsType.Any;' in NuGetModule.build.cs to override. UATHelper: Packaging (HoloLens): Took 5.863441s to run UnrealBuildTool.exe, ExitCode=6 UATHelper: Packaging (HoloLens): UnrealBuildTool failed. See log for more details. (C:\Users\martin.helvig\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.27\UBT-HoloLensTestUe4-HoloLens-Development.txt) UATHelper: Packaging (HoloLens): AutomationTool exiting with ExitCode=6 (6) UATHelper: Packaging (HoloLens): BUILD FAILED PackagingResults: Error: Missing precompiled manifest for 'NuGetModule'. This module was most likely not flagged for being included in a precompiled build - set 'PrecompileForTargets = PrecompileTargetsType.Any;' in NuGetModule.build.cs to override. PackagingResults: Error: Unknown Error
I'm suspecting this is a regression in the Unreal marketplace: It looks like marketplace builds are missing the Intermediate\Build\HoloLens directory for the Microsoft OpenXR plugin.
I have an update pending (1.1.14) which adds PrecompileTargetsType.Any to NuGetModule.build.cs (per the error message) to see if this addresses the problem. Also following up with the Marketplace team.
Update: This is a regression in how the Unreal Marketplace is packaging HoloLens plugins. They are investigating.
You can workaround this now by building the plugin locally:
"C:\Program Files\Epic Games\UE_4.27\Engine\Build\BatchFiles\RunUAT.bat" BuildPlugin -Plugin="C:\Program Files\Epic Games\UE_4.27\Engine\Plugins\Marketplace\MicrosoftOpenXR\MicrosoftOpenXR.uplugin" -package=C:\NewMicrosoftOpenXRBuild -nocompile -VS2019
Then copy C:\NewMicrosoftOpenXRBuild\Intermediate\Build\HoloLens to C:\Program Files\Epic Games\UE_4.27\Engine\Plugins\Marketplace\MicrosoftOpenXR\Intermediate\Build\HoloLens
I just use the plugin uploaded on github and put it in /YourProject/plugins/