Download

Compiling VR Editor branch on Mac

Hi All,

Has anyone compiled the dev-vr-editor branch on Mac? The build fails for me in the Compile Module.VREditor.cpp action


ERROR: UBT ERROR: Failed to produce item: /Users/cvasc/gitRepos/UnrealEngine/Engine/Binaries/Mac/UE4Editor.app/Contents/MacOS/UE4Editor-VREditor.dylib

Seems like all other build actions succeed just fine.

My setup:
Mac OSX El Capitan 10.11.3
XCode Version 7.3 (7D175)

Here are the errors:



In file included from /Users/cvasc/gitRepos/UnrealEngine/Engine/Intermediate/Build/Mac/UE4Editor/Development/VREditor/Module.VREditor.cpp:3:
In file included from /Users/cvasc/gitRepos/UnrealEngine/Engine/Source/Editor/VREditor/Gizmo/VREditorBaseTransformGizmo.cpp:7:
In file included from Editor/VREditor/VREditorMode.h:7:
Editor/VREditor/VirtualHand.h:136:24: error: size of array has non-integer type 'EVRActionType'
        bool IsInputCaptured EVRActionType::TotalActionTypes ];
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /Users/cvasc/gitRepos/UnrealEngine/Engine/Intermediate/Build/Mac/UE4Editor/Development/VREditor/Module.VREditor.cpp:3:
In file included from /Users/cvasc/gitRepos/UnrealEngine/Engine/Source/Editor/VREditor/Gizmo/VREditorBaseTransformGizmo.cpp:7:
Editor/VREditor/VREditorMode.h:222:10: error: cannot initialize object parameter of type 'const FEdMode' with an expression of type 'const FVREditorMode'
                return GetWorld()->GetWorldSettings()->WorldToMeters / 100.0f;
                       ^~~~~~~~
...
/Users/cvasc/gitRepos/UnrealEngine/Engine/Source/Editor/VREditor/VREditorMode.cpp:129:16: error: exception specification in declaration does not match previous declaration
FVREditorMode::~FVREditorMode()
               ^
Editor/VREditor/VREditorMode.h:26:10: note: previous declaration is here
        virtual ~FVREditorMode();
                ^
In file included from /Users/cvasc/gitRepos/UnrealEngine/Engine/Intermediate/Build/Mac/UE4Editor/Development/VREditor/Module.VREditor.cpp:16:
/Users/cvasc/gitRepos/UnrealEngine/Engine/Source/Editor/VREditor/VREditorMode.cpp:166:11: error: cannot initialize object parameter of type 'FEdMode' with an expression of type 'FVREditorMode'
        FEdMode::Enter();
                 ^~~~~
/Users/cvasc/gitRepos/UnrealEngine/Engine/Source/Editor/VREditor/VREditorMode.cpp:573:11: error: cannot initialize object parameter of type 'FEdMode' with an expression of type 'FVREditorMode'
        FEdMode::Exit();
                 ^~~~
...
/Users/cvasc/gitRepos/UnrealEngine/Engine/Source/Editor/VREditor/VREditorMode.cpp:902:11: error: cannot initialize object parameter of type 'FEdMode' with an expression of type 'FVREditorMode'
        FEdMode::Tick( ViewportClient, DeltaTime );
                 ^~~~
...
In file included from /Users/cvasc/gitRepos/UnrealEngine/Engine/Intermediate/Build/Mac/UE4Editor/Development/VREditor/Module.VREditor.cpp:16:
/Users/cvasc/gitRepos/UnrealEngine/Engine/Source/Editor/VREditor/VREditorMode.cpp:1353:18: error: cannot initialize object parameter of type 'FEdMode' with an expression of type 'FVREditorMode'
        return FEdMode::InputKey(ViewportClient, Viewport, Key, Event);
                        ^~~~~~~~
/Users/cvasc/gitRepos/UnrealEngine/Engine/Source/Editor/VREditor/VREditorMode.cpp:1513:18: error: cannot initialize object parameter of type 'FEdMode' with an expression of type 'FVREditorMode'
        return FEdMode::InputAxis(ViewportClient, Viewport, ControllerId, Key, Delta, DeltaTime);
                        ^~~~~~~~~
/Users/cvasc/gitRepos/UnrealEngine/Engine/Source/Editor/VREditor/VREditorMode.cpp:1658:11: error: cannot initialize object parameter of type 'FEdMode' with an expression of type 'FVREditorMode'
        FEdMode::Render( SceneView, Viewport, PDI );
                 ^~~~~~
/Users/cvasc/gitRepos/UnrealEngine/Engine/Source/Editor/VREditor/VREditorMode.cpp:1809:8: error: cannot initialize object parameter of type 'const FEdMode' with an expression of type 'FVREditorMode'
                        if( GetWorld()->LineTraceSingleByChannel( HitResult, LaserPointerStart, LaserPointerEnd, CollisionChannel, TraceParams, ResponseParam ) )
                            ^~~~~~~~
/Users/cvasc/gitRepos/UnrealEngine/Engine/Source/Editor/VREditor/VREditorMode.cpp:1938:37: error: cannot initialize object parameter of type 'const FEdMode' with an expression of type 'const FVREditorMode'
        const bool bWasWorldPackageDirty = GetWorld()->GetOutermost()->IsDirty();
                                           ^~~~~~~~
/Users/cvasc/gitRepos/UnrealEngine/Engine/Source/Editor/VREditor/VREditorMode.cpp:1942:52: error: cannot initialize object parameter of type 'const FEdMode' with an expression of type 'const FVREditorMode'
        ActorSpawnParameters.Name = MakeUniqueObjectName( GetWorld(), ActorClass, *ActorName ); // @Todo vreditor: Without this, SpawnActor() can return us an existing PendingKill actor of the same name!  WTF?
                                                          ^~~~~~~~
/Users/cvasc/gitRepos/UnrealEngine/Engine/Source/Editor/VREditor/VREditorMode.cpp:1947:21: error: cannot initialize object parameter of type 'const FEdMode' with an expression of type 'const FVREditorMode'
        AActor* NewActor = GetWorld()->SpawnActor< AActor >( ActorClass, ActorSpawnParameters );
                           ^~~~~~~~
/Users/cvasc/gitRepos/UnrealEngine/Engine/Source/Editor/VREditor/VREditorMode.cpp:1947:45: error: 'AActor' does not refer to a value
        AActor* NewActor = GetWorld()->SpawnActor< AActor >( ActorClass, ActorSpawnParameters );
                                                   ^
../Intermediate/Build/Mac/UE4Editor/Inc/Engine/CheatManager.generated.h:13:7: note: declared here
class AActor;
      ^
In file included from /Users/cvasc/gitRepos/UnrealEngine/Engine/Intermediate/Build/Mac/UE4Editor/Development/VREditor/Module.VREditor.cpp:16:
/Users/cvasc/gitRepos/UnrealEngine/Engine/Source/Editor/VREditor/VREditorMode.cpp:1962:3: error: cannot initialize object parameter of type 'const FEdMode' with an expression of type 'const FVREditorMode'
                GetWorld()->GetOutermost()->SetDirtyFlag( false );
                ^~~~~~~~
/Users/cvasc/gitRepos/UnrealEngine/Engine/Source/Editor/VREditor/VREditorMode.cpp:1973:38: error: cannot initialize object parameter of type 'const FEdMode' with an expression of type 'const FVREditorMode'
                const bool bWasWorldPackageDirty = GetWorld()->GetOutermost()->IsDirty();
                                                   ^~~~~~~~
/Users/cvasc/gitRepos/UnrealEngine/Engine/Source/Editor/VREditor/VREditorMode.cpp:1977:3: error: cannot initialize object parameter of type 'const FEdMode' with an expression of type 'const FVREditorMode'
                GetWorld()->DestroyActor( Actor, bNetForce, bShouldModifyLevel );
                ^~~~~~~~
/Users/cvasc/gitRepos/UnrealEngine/Engine/Source/Editor/VREditor/VREditorMode.cpp:1983:4: error: cannot initialize object parameter of type 'const FEdMode' with an expression of type 'const FVREditorMode'
                        GetWorld()->GetOutermost()->SetDirtyFlag( false );
                        ^~~~~~~~
/Users/cvasc/gitRepos/UnrealEngine/Engine/Source/Editor/VREditor/VREditorMode.cpp:2526:19: error: cannot initialize object parameter of type 'const FEdMode' with an expression of type 'FVREditorMode'
        GUnrealEd->Exec( GetWorld(), TEXT( "TRANSACTION UNDO" ) );
                         ^~~~~~~~
fatal error: too many errors emitted, stopping now -ferror-limit=]



Any ideas? Did I miss some doc where VR Editor is not Mac compatible yet?

Thanks.

VR is generally not mac compatible right now.

There just isn’t any good hardware that can run it.