microsoft / Microsoft-OpenXR-Unreal

An Unreal Engine game plugin providing additional features available on Microsoft's Mixed Reality devices like the HoloLens 2 when using OpenXR.
MIT License
160 stars 51 forks source link

Problem building to HoloLens, getting: Missing precompiled manifest for 'NuGetModule' error. #63

Open MartinHelvig opened 2 years ago

MartinHelvig commented 2 years ago

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

fieldsJacksonG commented 2 years ago

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

Tim-Potratz commented 1 year ago

I just use the plugin uploaded on github and put it in /YourProject/plugins/