I’ve downloaded source for 4.4.0-release and deps from git, tried to build but failed.
First time it was because of incorrect dependency archive (libovr libs go to LibOVR folder instead of LibOVR_04). I copied libs to LibOVR_04 and tried to rebuild again.
Then I got other errors. Here’s build log’s fragment:
1>Creating library D:\Tim\ue4\4.4\Engine\Intermediate\Build\Win64\UE4Editor\Development\Plugins\Dynamic\UE4Editor-OculusRift.lib and object D:\Tim\ue4\4.4\Engine\Intermediate\Build\Win64\UE4Editor\Development\Plugins\Dynamic\UE4Editor-OculusRift.exp
1>Module.OculusRift.cpp.obj : error LNK2019: unresolved external symbol ovr_GetVersionString referenced in function "public: virtual bool __cdecl FOculusRiftHMD::Exec(class UWorld *,wchar_t const *,class FOutputDevice &)" (?Exec@FOculusRiftHMD@@UEAA_NPEAVUWorld@@PEB_WAEAVFOutputDevice@@@Z)
1>Module.OculusRift.cpp.obj : error LNK2019: unresolved external symbol ovrHmd_AttachToWindow referenced in function "private: void __cdecl FOculusRiftHMD::Shutdown(void)" (?Shutdown@FOculusRiftHMD@@AEAAXXZ)
1>Module.OculusRift.cpp.obj : error LNK2019: unresolved external symbol ovrHmd_ConfigureTracking referenced in function "private: void __cdecl FOculusRiftHMD::UpdateHmdCaps(void)" (?UpdateHmdCaps@FOculusRiftHMD@@AEAAXXZ)
1>Module.OculusRift.cpp.obj : error LNK2019: unresolved external symbol ovrHmd_GetTrackingState referenced in function "public: void __cdecl FOculusRiftHMD::GetCurrentPose(class FQuat &,class FVector &)const " (?GetCurrentPose@FOculusRiftHMD@@QEBAXAEAVFQuat@@AEAVFVector@@@Z)
1>Module.OculusRift.cpp.obj : error LNK2019: unresolved external symbol ovrHmd_DismissHSWDisplay referenced in function "public: virtual bool __cdecl FOculusRiftHMD::HandleInputKey(class UPlayerInput *,struct FKey const &,enum EInputEvent,float,bool)" (?HandleInputKey@FOculusRiftHMD@@UEAA_NPEAVUPlayerInput@@AEBUFKey@@W4EInputEvent@@M_N@Z)
1>D:\Tim\ue4\4.4\Engine\Plugins\OculusRift\Binaries\Win64\UE4Editor-OculusRift.dll : fatal error LNK1120: 5 unresolved externals
Same here. It looks like OculusRift plugin was broken in recent update.
You can still launch editor with plugin disabled. But you need to disable plugin in your .uproject file OR edit Plugins/OculusRift/OculusRift.uplugin file setting “EnabledByDefault” option to false. Otherwise you will see error message at startup and editor won’t launch.
Compilation fails because a third-party binary file is missing. Binaries are not included in repository, they are usually found in separate archives. So we just have to wait for updated archives.
There is lib file in archive. As I said it goes to wrong folder when unpacking.
I copied it to proper folder and it still fails to compile with error I mentioned above.
I’ll try to build with lib file downloaded from oculus developers site.
Your editor is built fine. It’s just a plugin that fails. You disable plugin to have ability to run editor without compiled oculus plugin not to get rid of build errors.