Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
Anonymous's avatar
Anonymous
5 years ago

Cannot open HandsTrainSample because Engine modules are out of date.

I wanted to try out Hand Tracking with UE4, and I just did git clone the engine source from Oculus github, and build the engine following the instruction in the Oculus website. I cloned 1e09d2f (the latest one) from branch 4.25, which is release "oculus-4.25.3-release-1.51.0-v19.0" and built the engine using Visual Studio 2019.
It worked fine, I could make a new project. I could also open HandSample project and it works great with Oculus Quest & Link. But I couldn't open HandsTrainSample.

I built the engine and clicked Debug/Start a new instance in Visual Studio, then it opened up the editor. Then I chose the sample, but I couldn't open it. I also tried to open .uproject directly but it just says "The following modules are missing or build with a different engine version: HandsTrainSample Would you like to rebuild them now?" and if i go Yes, then I get Missing Modules error with the message "Engine modules are out of date, and cannot be compiled while the engine is running. Please build through your IDE." and I couldn't open it.

I guess I have to find and fix errors in VS but I don't even know where I can get .sln file for this project so which I need to see errors in VS. I tried Generate Visual Studio project files from HandsTrainSample.uproject but .sln file wasn't generated in the same directory although I got no error.

This is my first time to build the engine from source and I might misunderstand some stuff. I hope someone helps me with it.



5 Replies

Replies have been turned off for this discussion
  • Anonymous's avatar
    Anonymous
    Ok I found logs. Here it is.
    But I still don't know how to "rebuild from an IDE instead."

    Log file open, 08/08/20 11:35:23
    LogInit: Display: Running engine for game: HandsTrainSample
    LogPlatformFile: Not using cached read wrapper
    LogTaskGraph: Started task graph with 5 named threads and 26 total threads with 3 sets of task threads.
    LogStats: Stats thread started at 0.147765
    LogD3D11RHI: Loaded GFSDK_Aftermath_Lib.x64.dll
    LogICUInternationalization: ICU TimeZone Detection - Raw Offset: +9:00, Platform Override: ''
    LogPluginManager: Mounting plugin Paper2D
    LogPluginManager: Mounting plugin AISupport
    LogPluginManager: Mounting plugin LightPropagationVolume
    LogPluginManager: Mounting plugin CameraShakePreviewer
    LogPluginManager: Mounting plugin ActorLayerUtilities
    LogPluginManager: Mounting plugin AnimationSharing
    LogPluginManager: Mounting plugin CLionSourceCodeAccess
    LogPluginManager: Mounting plugin CodeLiteSourceCodeAccess
    LogPluginManager: Mounting plugin GitSourceControl
    LogPluginManager: Mounting plugin KDevelopSourceCodeAccess
    LogPluginManager: Mounting plugin NullSourceCodeAccess
    LogPluginManager: Mounting plugin PerforceSourceControl
    LogPluginManager: Mounting plugin PlasticSourceControl
    LogPluginManager: Mounting plugin RiderSourceCodeAccess
    LogPluginManager: Mounting plugin SubversionSourceControl
    LogPluginManager: Mounting plugin UObjectPlugin
    LogPluginManager: Mounting plugin VisualStudioCodeSourceCodeAccess
    LogPluginManager: Mounting plugin VisualStudioSourceCodeAccess
    LogPluginManager: Mounting plugin XCodeSourceCodeAccess
    LogPluginManager: Mounting plugin AssetManagerEditor
    LogPluginManager: Mounting plugin CryptoKeys
    LogPluginManager: Mounting plugin CurveEditorTools
    LogPluginManager: Mounting plugin DataValidation
    LogPluginManager: Mounting plugin EditorScriptingUtilities
    LogPluginManager: Mounting plugin FacialAnimation
    LogPluginManager: Mounting plugin GameplayTagsEditor
    LogPluginManager: Mounting plugin GeometryMode
    LogPluginManager: Mounting plugin MacGraphicsSwitching
    LogPluginManager: Mounting plugin MaterialAnalyzer
    LogPluginManager: Mounting plugin MobileLauncherProfileWizard
    LogPluginManager: Mounting plugin PluginBrowser
    LogPluginManager: Mounting plugin SpeedTreeImporter
    LogPluginManager: Mounting plugin DatasmithContent
    LogPluginManager: Mounting plugin VariantManagerContent
    LogPluginManager: Mounting plugin AlembicImporter
    LogPluginManager: Mounting plugin AutomationUtils
    LogPluginManager: Mounting plugin BackChannel
    LogPluginManager: Mounting plugin ChaosCloth
    LogPluginManager: Mounting plugin ChaosClothEditor
    LogPluginManager: Mounting plugin ChaosEditor
    LogPluginManager: Mounting plugin ChaosNiagara
    LogPluginManager: Mounting plugin ChaosSolverPlugin
    LogPluginManager: Mounting plugin CharacterAI
    LogPluginManager: Mounting plugin GeometryCache
    LogPluginManager: Mounting plugin GeometryCollectionPlugin
    LogPluginManager: Mounting plugin GeometryProcessing
    LogPluginManager: Mounting plugin PlanarCut
    LogPluginManager: Mounting plugin PlatformCrypto
    LogPluginManager: Mounting plugin ProxyLODPlugin
    LogPluginManager: Mounting plugin SkeletalReduction
    LogPluginManager: Mounting plugin Niagara
    LogPluginManager: Mounting plugin MagicLeap
    LogPluginManager: Mounting plugin MagicLeapLightEstimation
    LogPluginManager: Mounting plugin MagicLeapMedia
    LogPluginManager: Mounting plugin MagicLeapPassableWorld
    LogPluginManager: Mounting plugin MLSDK
    LogPluginManager: Mounting plugin AndroidMedia
    LogPluginManager: Mounting plugin AvfMedia
    LogPluginManager: Mounting plugin ImgMedia
    LogPluginManager: Mounting plugin MediaCompositing
    LogPluginManager: Mounting plugin MediaPlayerEditor
    LogPluginManager: Mounting plugin WebMMedia
    LogPluginManager: Mounting plugin WmfMedia
    LogPluginManager: Mounting plugin MeshPainting
    LogPluginManager: Mounting plugin TcpMessaging
    LogPluginManager: Mounting plugin UdpMessaging
    LogPluginManager: Mounting plugin ActorSequence
    LogPluginManager: Mounting plugin LevelSequenceEditor
    LogPluginManager: Mounting plugin MatineeToLevelSequence
    LogPluginManager: Mounting plugin MovieRenderPipeline
    LogPluginManager: Mounting plugin TemplateSequence
    LogPluginManager: Mounting plugin NetcodeUnitTest
    LogPluginManager: Mounting plugin NUTUnrealEngine4
    LogPluginManager: Mounting plugin OnlineSubsystemGooglePlay
    LogPluginManager: Mounting plugin OnlineSubsystemIOS
    LogPluginManager: Mounting plugin OnlineSubsystem
    LogPluginManager: Mounting plugin OnlineSubsystemNull
    LogPluginManager: Mounting plugin OnlineSubsystemOculus
    LogPluginManager: Mounting plugin OnlineSubsystemUtils
    LogPluginManager: Mounting plugin LauncherChunkInstaller
    LogPluginManager: Mounting plugin AndroidDeviceProfileSelector
    LogPluginManager: Mounting plugin AndroidMoviePlayer
    LogPluginManager: Mounting plugin AndroidPermission
    LogPluginManager: Mounting plugin AppleImageUtils
    LogPluginManager: Mounting plugin AppleMoviePlayer
    LogPluginManager: Mounting plugin ArchVisCharacter
    LogPluginManager: Mounting plugin AssetTags
    LogPluginManager: Mounting plugin AudioCapture
    LogPluginManager: Mounting plugin CableComponent
    LogPluginManager: Mounting plugin CustomMeshComponent
    LogPluginManager: Mounting plugin EditableMesh
    LogPluginManager: Mounting plugin ExampleDeviceProfileSelector
    LogPluginManager: Mounting plugin GoogleCloudMessaging
    LogPluginManager: Mounting plugin GooglePAD
    LogPluginManager: Mounting plugin IOSDeviceProfileSelector
    LogPluginManager: Mounting plugin LinuxDeviceProfileSelector
    LogPluginManager: Mounting plugin LocationServicesBPLibrary
    LogPluginManager: Mounting plugin MobilePatchingUtils
    LogPluginManager: Mounting plugin OculusVR
    LogPluginManager: Mounting plugin PhysXVehicles
    LogPluginManager: Mounting plugin PostSplashScreen
    LogPluginManager: Mounting plugin ProceduralMeshComponent
    LogPluginManager: Mounting plugin RuntimePhysXCooking
    LogPluginManager: Mounting plugin SignificanceManager
    LogPluginManager: Mounting plugin SoundFields
    LogPluginManager: Mounting plugin SteamVR
    LogPluginManager: Mounting plugin Synthesis
    LogPluginManager: Mounting plugin WebMMoviePlayer
    LogPluginManager: Mounting plugin WindowsMoviePlayer
    LogPluginManager: Mounting plugin ScreenshotTools
    LogInit: Warning: Incompatible or missing module: HandsTrainSample
    Running F:/UnrealEngineSource/Oculus/UnrealEngine/Engine/Binaries/DotNET/UnrealBuildTool.exe Development Win64 -Project="F:/UnrealEngineSource/Oculus/UnrealEngine/Samples/Oculus/HandsTrainSample/HandsTrainSample.uproject" -TargetType=Editor -Progress -NoEngineChanges -NoHotReloadFromIDE
    Using 'git status' to determine working set for adaptive non-unity build (F:\UnrealEngineSource\Oculus\UnrealEngine).
    Creating makefile for HandsTrainSampleEditor (no existing makefile)
    @progress push 5%
    @progress pop
    ERROR: Building would modify the following engine files:
          
           F:\UnrealEngineSource\Oculus\UnrealEngine\Engine\Intermediate\Build\Win64\UE4Editor\Development\Engine\SharedPCH.Engine.h.obj
           F:\UnrealEngineSource\Oculus\UnrealEngine\Engine\Intermediate\Build\Win64\UE4Editor\Development\Engine\SharedPCH.Engine.h.pch
           F:\UnrealEngineSource\Oculus\UnrealEngine\Engine\Intermediate\Build\Win64\UE4Editor\Development\Engine\SharedPCH.Engine.h.txt
          
           Please rebuild from an IDE instead.
    LogCore: Engine exit requested (reason: EngineExit() was called)
    LogExit: Preparing to exit.
    LogModuleManager: Shutting down and abandoning module DesktopPlatform (46)
    LogModuleManager: Shutting down and abandoning module PlatformCryptoOpenSSL (44)
    LogModuleManager: Shutting down and abandoning module PlatformCryptoTypes (42)
    LogModuleManager: Shutting down and abandoning module PlatformCrypto (40)
    LogModuleManager: Shutting down and abandoning module AnimationModifiers (38)
    LogModuleManager: Shutting down and abandoning module PropertyEditor (37)
    LogModuleManager: Shutting down and abandoning module AudioEditor (34)
    LogModuleManager: Shutting down and abandoning module TextureCompressor (32)
    LogModuleManager: Shutting down and abandoning module RenderCore (30)
    LogModuleManager: Shutting down and abandoning module Landscape (28)
    LogModuleManager: Shutting down and abandoning module SlateRHIRenderer (26)
    LogModuleManager: Shutting down and abandoning module OpenGLDrv (24)
    LogModuleManager: Shutting down and abandoning module D3D11RHI (22)
    LogModuleManager: Shutting down and abandoning module AnimGraphRuntime (20)
    LogModuleManager: Shutting down and abandoning module Renderer (18)
    LogModuleManager: Shutting down and abandoning module Engine (16)
    LogModuleManager: Shutting down and abandoning module CoreUObject (14)
    LogModuleManager: Shutting down and abandoning module NetworkFile (12)
    LogModuleManager: Shutting down and abandoning module CookedIterativeFile (10)
    LogModuleManager: Shutting down and abandoning module StreamingFile (8)
    LogModuleManager: Shutting down and abandoning module SandboxFile (6)
    LogModuleManager: Shutting down and abandoning module PakFile (4)
    LogModuleManager: Shutting down and abandoning module RSA (3)
    LogExit: Exiting.
    Log file closed, 08/08/20 11:35:33


  • Anonymous's avatar
    Anonymous
    Never mind. I finally got it worked. What I needed is to open UE4.sln and rebuild HandsTrainSample from Solution Exoporer. And then I could open the project. I don't know why HandSample doens't need that process but HandsTrainSample, though.
    • Cafeciao's avatar
      Cafeciao
      Honored Guest

      Thanks for your solution. I can open the project and deploy to my Quest 2 but the sample show nothing. It just playing some sound with a whole black view.

  • Anonymous's avatar
    Anonymous
    Yeah it's the same way the Chaos example project from Epic needed to be built.

    Someone obviously put alot of work into this example however unfortunately they mustn't know unreal so well since it's not optimized for the Quest at all...
  • Thank you for following up on this. I had the same error. In my case, I had also downloaded just the SharedSpaces example project in a zip file in addition to the oculus fork source engine. I was getting build errors when I tried to rebuild the SharedSpaces solution. I realized I needed to right click on the SharedSpaces uproject file and set the source engine version as the associated engine, not the launcher version.