oculus-samples / Unreal-MRUtilityKitSample

MRUK ("Mixed Reality Utility Kit") provides a rich set of utilities/tools on top of Scene API to perform common operations when building spatially-aware apps in Unreal. The Oculus SDK and other supporting material is subject to the Oculus proprietary license.
Other
6 stars 1 forks source link

'MRUtilityKitSample' depends on 'XRBase'. #3

Closed Zaptu3117 closed 3 weeks ago

Zaptu3117 commented 1 month ago

I'm using Meta's fork to run it but i get this error.

When i'm using the fork :

Running C:/Users/u2p05/Documents/UnrealDeep/UnrealEngine/Engine/Build/BatchFiles/Build.bat Development Win64 -Project="C:/Users/u2p05/Documents/Samples/Unreal-MRUtilityKitSample 5.4 - 2/MRUtilityKitSample.uproject" -TargetType=Editor -Progress -NoEngineChanges -NoHotReloadFromIDE
Using bundled DotNet SDK version: 6.0.302
Running UnrealBuildTool: dotnet "..\..\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll" Development Win64 -Project="C:/Users/u2p05/Documents/Samples/Unreal-MRUtilityKitSample 5.4 - 2/MRUtilityKitSample.uproject" -TargetType=Editor -Progress -NoEngineChanges -NoHotReloadFromIDE
Log file: C:\Users\u2p05\Documents\UnrealDeep\UnrealEngine\Engine\Programs\UnrealBuildTool\Log.txt
Using 'git status' to determine working set for adaptive non-unity build (C:\Users\u2p05\Documents\UnrealDeep\UnrealEngine).
Using 'git status' to determine working set for adaptive non-unity build (C:\Users\u2p05\Documents\Samples\Unreal-MRUtilityKitSample 5.4 - 2).
Creating makefile for MRUtilityKitSampleEditor (no existing makefile)
Warning: C:\Users\u2p05\Documents\Samples\Unreal-MRUtilityKitSample 5.4 - 2\MRUtilityKitSample.uproject does not list plugin 'XRBase' as a dependency, but module 'MRUtilityKitSample' depends on 'XRBase'.
@progress push 5%
Parsing headers for MRUtilityKitSampleEditor
  Running Internal UnrealHeaderTool "C:\Users\u2p05\Documents\Samples\Unreal-MRUtilityKitSample 5.4 - 2\MRUtilityKitSample.uproject" "C:\Users\u2p05\Documents\Samples\Unreal-MRUtilityKitSample 5.4 - 2\Intermediate\Build\Win64\MRUtilityKitSampleEditor\Development\MRUtilityKitSampleEditor.uhtmanifest" -WarningsAsErrors
Total of 17 written
Reflection code generated for MRUtilityKitSampleEditor in 1.0907245 seconds
@progress pop
Building would modify the following engine files:

C:\Users\u2p05\Documents\UnrealDeep\UnrealEngine\Engine\Intermediate\Build\Win64\x64\UnrealEditor\Development\UnrealEd\SharedPCH.UnrealEd.Project.ValApi.Cpp20.h.dep.json
C:\Users\u2p05\Documents\UnrealDeep\UnrealEngine\Engine\Intermediate\Build\Win64\x64\UnrealEditor\Development\UnrealEd\SharedPCH.UnrealEd.Project.ValApi.Cpp20.h.obj
C:\Users\u2p05\Documents\UnrealDeep\UnrealEngine\Engine\Intermediate\Build\Win64\x64\UnrealEditor\Development\UnrealEd\SharedPCH.UnrealEd.Project.ValApi.Cpp20.h.pch

Please rebuild from an IDE instead.
Total execution time: 4.70 seconds

And then when i build with in visual studio 2022 :

Severity    Code    Description Project File    Line    Suppression State
Error   MSB3073 The command "C:\Users\u2p05\Documents\UnrealDeep\UnrealEngine\Engine\Build\BatchFiles\Build.bat -Target="MRUtilityKitSampleEditor Win64 Development -Project=\"C:\Users\u2p05\Documents\Samples\Unreal-MRUtilityKitSample 5.4 - 2\MRUtilityKitSample.uproject\"" -Target="ShaderCompileWorker Win64 Development -Quiet" -WaitMutex -FromMsBuild -architecture=x64" exited with code 6.  MRUtilityKitSample  C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.MakeFile.Targets    44  

Does any one have an idea, how to make it work ?

felixweilbach commented 1 month ago

The warning is unlikely related to your problem. The logs don't contain the actual error messages. Please provide the actual output from the build and please give a bit more details on how you try build the project. Without this it will be difficult to help.

Zaptu3117 commented 1 month ago

Is it possible to just have a link with explanation about how to run the project ?

felixweilbach commented 1 month ago

Here is a guide: https://developer.oculus.com/documentation/unreal/unreal-mr-utility-kit-gs/ It's not different from any other C++ Unreal project. Just make sure you have the MetaXR plugin in your engine or project plugins.

Zaptu3117 commented 1 month ago

Thank you. Impossible to make it work with 5.4 and MetaXR v67. But works fine on 5.3 with v65.

felixweilbach commented 1 month ago

I'm pretty sure it works in that combination. I'm happy to help if you provide me the exact steps you are taking and give me a detailed build log where I can see the true error message.

Zaptu3117 commented 1 month ago

Ok, i was able to make it work with 5.4 and Meta v67. And to deploy it on the headset.

Nevertheless, nothing is happening after scene capture. The current room is still at nothing and the number of rooms says : 0. I tried to restart the headset, lanch the capture several times, or even to change room. The widget is not getting updating.

felixweilbach commented 1 month ago

Glad it worked out. Is the sample app given the permission to load spatial data? You can check this in the app settings in the VR shell.

felixweilbach commented 3 weeks ago

I'll close this task as there seems to be no activity anymore. If you think your issue is still not addressed, feel free to open the issue again.