Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Having trouble building for Oculus Quest (on Ubuntu 24.04) #816

Closed
ipeakermit opened this issue Feb 3, 2025 · 9 comments
Closed

Having trouble building for Oculus Quest (on Ubuntu 24.04) #816

ipeakermit opened this issue Feb 3, 2025 · 9 comments

Comments

@ipeakermit
Copy link

Unity for Linux v 2022.3.34f1. Current main HEAD (8bcd3ff): I get errors following the build instructions for Oculus as follows:

Error 1) [Repetition of the same basic error with numerous variations on fields/types]

Type '[Oculus.VR]OVRManager' has an extra field 'expandMixedRealityCapturePropertySheet' of type 'System.Boolean' in the player and thus can't be serialized (expected 'launchSimultaneousHandsControllersOnStartup' of type 'System.Boolean')
UnityEditor.BuildPipeline:BuildPlayer (string[],string,UnityEditor.BuildTarget,UnityEditor.BuildOptions)
BuildTiltBrush:DoBuild (BuildTiltBrush/TiltBuildOptions) (at Assets/Editor/BuildTiltBrush.cs:1686)
BuildTiltBrush:MenuItem_Build () (at Assets/Editor/BuildTiltBrush.cs:322)

'[Oculus.VR]OVRManager' has an extra field 'virtualGreenScreenBottomY' of type 'System.Single' in the player and thus can't be serialized (expected 'launchSimultaneousHandsControllersOnStartup' of type 'System.Boolean')
UnityEditor.BuildPipeline:BuildPlayer (string[],string,UnityEditor.BuildTarget,UnityEditor.BuildOptions)
BuildTiltBrush:DoBuild (BuildTiltBrush/TiltBuildOptions) (at Assets/Editor/BuildTiltBrush.cs:1686)
BuildTiltBrush:MenuItem_Build () (at Assets/Editor/BuildTiltBrush.cs:322)

Error 2)

Error building player because script class layout is incompatible between the editor and the player.

Error 3)

Type '[Oculus.VR]OVRManager' has an extra field 'dynamicCullingMask' of type 'System.Boolean' in the player and thus can't be serialized (expected 'launchSimultaneousHandsControllersOnStartup' of type 'System.Boolean')
Type '[Oculus.VR]OVRManager' has an extra field 'externalCompositionBackdropColorRift' of type 'UnityEngine.Color' in the player and thus can't be serialized (expected 'launchSimultaneousHandsControllersOnStartup' of type 'System.Boolean')
Type '[Oculus.VR]OVRManager' has an extra field 'externalCompositionBackdropColorQuest' of type 'UnityEngine.Color' in the player and thus can't be serialized (expected 'launchSimultaneousHandsControllersOnStartup' of type 'System.Boolean')
Type '[Oculus.VR]OVRManager' has an extra field 'capturingCameraDevice' of type 'OVRManager+CameraDevice' in the player and thus can't be serialized (expected 'launchSimultaneousHandsControllersOnStartup' of type 'System.Boolean')
Type '[Oculus.VR]OVRManager' has an extra field 'flipCameraFrameHorizontally' of type 'System.Boolean' in the player and thus can't be serialized (expected 'launchSimultaneousHandsControllersOnStartup' of type 'System.Boolean')
Type '[Oculus.VR]OVRManager' has an extra field 'flipCameraFrameVertically' of type 'System.Boolean' in the player and thus can't be serialized (expected 'launchSimultaneousHandsControllersOnStartup' of type 'System.Boolean')
Type '[Oculus.VR]OVRManager' has an extra field 'handPoseStateLatency' of type 'System.Single' in the player and thus can't be serialized (expected 'launchSimultaneousHandsControllersOnStartup' of type 'System.Boolean')
Type '[Oculus.VR]OVRManager' has an extra field 'sandwichCompositionRenderLatency' of type 'System.Single' in the player and thus can't be serialized (expected 'launchSimultaneousHandsControllersOnStartup' of type 'System.Boolean')
Type '[Oculus.VR]OVRManager' has an extra field 'sandwichCompositionBufferedFrames' of type 'System.Int32' in the player and thus can't be serialized (expected 'launchSimultaneousHandsControllersOnStartup' of type 'System.Boolean')
Type '[Oculus.VR]OVRManager' has an extra field 'chromaKeyColor' of type 'UnityEngine.Color' in the player and thus can't be serialized (expected 'launchSimultaneousHandsControllersOnStartup' of type 'System.Boolean')
Type '[Oculus.VR]OVRManager' has an extra field 'chromaKeySimilarity' of type 'System.Single' in the player and thus can't be serialized (expected 'launchSimultaneousHandsControllersOnStartup' of type 'System.Boolean')
Type '[Oculus.VR]OVRManager' has an extra field 'chromaKeySmoothRange' of type 'System.Single' in the player and thus can't be serialized (expected 'launchSimultaneousHandsControllersOnStartup' of type 'System.Boolean')
Type '[Oculus.VR]OVRManager' has an extra field 'chromaKeySpillRange' of type 'System.Single' in the player and thus can't be serialized (expected 'launchSimultaneousHandsControllersOnStartup' of type 'System.Boolean')
Type '[Oculus.VR]OVRManager' has an extra field 'useDynamicLighting' of type 'System.Boolean' in the player and thus can't be serialized (expected 'launchSimultaneousHandsControllersOnStartup' of type 'System.Boolean')
Type '[Oculus.VR]OVRManager' has an extra field 'depthQuality' of type 'OVRManager+DepthQuality' in the player and thus can't be serialized (expected 'launchSimultaneousHandsControllersOnStartup' of type 'System.Boolean')
Type '[Oculus.VR]OVRManager' has an extra field 'dynamicLightingSmoothFactor' of type 'System.Single' in the player and thus can't be serialized (expected 'launchSimultaneousHandsControllersOnStartup' of type 'System.Boolean')
Type '[Oculus.VR]OVRManager' has an extra field 'dynamicLightingDepthVariationClampingValue' of type 'System.Single' in the player and thus can't be serialized (expected 'launchSimultaneousHandsControllersOnStartup' of type 'System.Boolean')
Type '[Oculus.VR]OVRManager' has an extra field 'virtualGreenScreenType' of type 'OVRManager+VirtualGreenScreenType' in the player and thus can't be serialized (expected 'launchSimultaneousHandsControllersOnStartup' of type 'System.Boolean')
Type '[Oculus.VR]OVRManager' has an extra field 'virtualGreenScreenTopY' of type 'System.Single' in the player and thus can't be serialized (expected 'launchSimultaneousHandsControllersOnStartup' of type 'System.Boolean')
Type '[Oculus.VR]OVRManager' has an extra field 'virtualGreenScreenBottomY' of type 'System.Single' in the player and thus can't be serialized (expected 'launchSimultaneousHandsControllersOnStartup' of type 'System.Boolean')
Type '[Oculus.VR]OVRManager' has an extra field 'virtualGreenScreenApplyDepthCulling' of type 'System.Boolean' in the player and thus can't be serialized (expected 'launchSimultaneousHandsControllersOnStartup' of type 'System.Boolean')
Type '[Oculus.VR]OVRManager' has an extra field 'virtualGreenScreenDepthTolerance' of type 'System.Single' in the player and thus can't be serialized (expected 'launchSimultaneousHandsControllersOnStartup' of type 'System.Boolean')
Type '[Oculus.VR]OVRManager' has an extra field 'mrcActivationMode' of type 'OVRManager+MrcActivationMode' in the player and thus can't be serialized (expected 'launchSimultaneousHandsControllersOnStartup' of type 'System.Boolean')
Fields serialized in Editor, class 'OVRManager'
'useRecommendedMSAALevel' of type 'System.Boolean'
'_monoscopic' of type 'System.Boolean'
'_sharpenType' of type 'OVRPlugin+LayerSharpenType'
'enableDynamicResolution' of type 'System.Boolean'
'minDynamicResolutionScale' of type 'System.Single'
'maxDynamicResolutionScale' of type 'System.Single'
'minRenderScale' of type 'System.Single'
'maxRenderScale' of type 'System.Single'
'_headPoseRelativeOffsetRotation' of type 'UnityEngine.Vector3'
'_headPoseRelativeOffsetTranslation' of type 'UnityEngine.Vector3'
'profilerTcpPort' of type 'System.Int32'
'launchSimultaneousHandsControllersOnStartup' of type 'System.Boolean'
'isInsightPassthroughEnabled' of type 'System.Boolean'
'shouldBoundaryVisibilityBeSuppressed' of type 'System.Boolean'
'requestBodyTrackingPermissionOnStartup' of type 'System.Boolean'
'requestFaceTrackingPermissionOnStartup' of type 'System.Boolean'
'requestEyeTrackingPermissionOnStartup' of type 'System.Boolean'
'requestScenePermissionOnStartup' of type 'System.Boolean'
'requestRecordAudioPermissionOnStartup' of type 'System.Boolean'
'_localDimming' of type 'System.Boolean'
'_trackingOriginType' of type 'OVRManager+TrackingOrigin'
'usePositionTracking' of type 'System.Boolean'
'useRotationTracking' of type 'System.Boolean'
'useIPDInPositionTracking' of type 'System.Boolean'
'resetTrackerOnLoad' of type 'System.Boolean'
'AllowRecenter' of type 'System.Boolean'
'LateControllerUpdate' of type 'System.Boolean'
'LateLatching' of type 'System.Boolean'
'controllerDrivenHandPosesType' of type 'OVRManager+ControllerDrivenHandPosesType'
'SimultaneousHandsAndControllersEnabled' of type 'System.Boolean'
'_readOnlyWideMotionModeHandPosesEnabled' of type 'System.Boolean'
'wideMotionModeHandPosesEnabled' of type 'System.Boolean'

Fields serialized in target platform, class 'OVRManager'
'useRecommendedMSAALevel' of type 'System.Boolean'
'_monoscopic' of type 'System.Boolean'
'_sharpenType' of type 'OVRPlugin+LayerSharpenType'
'enableDynamicResolution' of type 'System.Boolean'
'minDynamicResolutionScale' of type 'System.Single'
'maxDynamicResolutionScale' of type 'System.Single'
'minRenderScale' of type 'System.Single'
'maxRenderScale' of type 'System.Single'
'_headPoseRelativeOffsetRotation' of type 'UnityEngine.Vector3'
'_headPoseRelativeOffsetTranslation' of type 'UnityEngine.Vector3'
'profilerTcpPort' of type 'System.Int32'
'expandMixedRealityCapturePropertySheet' of type 'System.Boolean'
'enableMixedReality' of type 'System.Boolean'
'compositionMethod' of type 'OVRManager+CompositionMethod'
'extraHiddenLayers' of type 'UnityEngine.LayerMask'
'extraVisibleLayers' of type 'UnityEngine.LayerMask'
'dynamicCullingMask' of type 'System.Boolean'
'externalCompositionBackdropColorRift' of type 'UnityEngine.Color'
'externalCompositionBackdropColorQuest' of type 'UnityEngine.Color'
'capturingCameraDevice' of type 'OVRManager+CameraDevice'
'flipCameraFrameHorizontally' of type 'System.Boolean'
'flipCameraFrameVertically' of type 'System.Boolean'
'handPoseStateLatency' of type 'System.Single'
'sandwichCompositionRenderLatency' of type 'System.Single'
'sandwichCompositionBufferedFrames' of type 'System.Int32'
'chromaKeyColor' of type 'UnityEngine.Color'
'chromaKeySimilarity' of type 'System.Single'
'chromaKeySmoothRange' of type 'System.Single'
'chromaKeySpillRange' of type 'System.Single'
'useDynamicLighting' of type 'System.Boolean'
'depthQuality' of type 'OVRManager+DepthQuality'
'dynamicLightingSmoothFactor' of type 'System.Single'
'dynamicLightingDepthVariationClampingValue' of type 'System.Single'
'virtualGreenScreenType' of type 'OVRManager+VirtualGreenScreenType'
'virtualGreenScreenTopY' of type 'System.Single'
'virtualGreenScreenBottomY' of type 'System.Single'
'virtualGreenScreenApplyDepthCulling' of type 'System.Boolean'
'virtualGreenScreenDepthTolerance' of type 'System.Single'
'mrcActivationMode' of type 'OVRManager+MrcActivationMode'
'launchSimultaneousHandsControllersOnStartup' of type 'System.Boolean'
'isInsightPassthroughEnabled' of type 'System.Boolean'
'shouldBoundaryVisibilityBeSuppressed' of type 'System.Boolean'
'requestBodyTrackingPermissionOnStartup' of type 'System.Boolean'
'requestFaceTrackingPermissionOnStartup' of type 'System.Boolean'
'requestEyeTrackingPermissionOnStartup' of type 'System.Boolean'
'requestScenePermissionOnStartup' of type 'System.Boolean'
'requestRecordAudioPermissionOnStartup' of type 'System.Boolean'
'_localDimming' of type 'System.Boolean'
'_trackingOriginType' of type 'OVRManager+TrackingOrigin'
'usePositionTracking' of type 'System.Boolean'
'useRotationTracking' of type 'System.Boolean'
'useIPDInPositionTracking' of type 'System.Boolean'
'resetTrackerOnLoad' of type 'System.Boolean'
'AllowRecenter' of type 'System.Boolean'
'LateControllerUpdate' of type 'System.Boolean'
'LateLatching' of type 'System.Boolean'
'controllerDrivenHandPosesType' of type 'OVRManager+ControllerDrivenHandPosesType'
'SimultaneousHandsAndControllersEnabled' of type 'System.Boolean'
'_readOnlyWideMotionModeHandPosesEnabled' of type 'System.Boolean'
'wideMotionModeHandPosesEnabled' of type 'System.Boolean'

Error building player because script class layout is incompatible between the editor and the player."
UnityEngine.Debug:LogFormat (string,object[])
BuildTiltBrush:Note (string,object[]) (at Assets/Editor/BuildTiltBrush.cs:1955)

Class 4)

: <<BuildPipeline.BuildPlayer() returned: "Errors:
Generate and validate platform script types
Type '[Oculus.VR]OVRManager' has an extra field 'expandMixedRealityCapturePropertySheet' of type 'System.Boolean' in the player and thus can't be serialized (expected 'launchSimultaneousHandsControllersOnStartup' of type 'System.Boolean')
Type '[Oculus.VR]OVRManager' has an extra field 'enableMixedReality' of type 'System.Boolean' in the player and thus can't be serialized (expected 'launchSimultaneousHandsControllersOnStartup' of type 'System.Boolean')
Type '[Oculus.VR]OVRManager' has an extra field 'compositionMethod' of type 'OVRManager+CompositionMethod' in the player and thus can't be serialized (expected 'launchSimultaneousHandsControllersOnStartup' of type 'System.Boolean')
Type '[Oculus.VR]OVRManager' has an extra field 'extraHiddenLayers' of type 'UnityEngine.LayerMask' in the player and thus can't be serialized (expected 'launchSimultaneousHandsControllersOnStartup' of type 'System.Boolean')
Type '[Oculus.VR]OVRManager' has an extra field 'extraVisibleLayers' of type 'UnityEngine.LayerMask' in the player and thus can't be serialized (expected 'launchSimultaneousHandsControllersOnStartup' of type 'System.Boolean')
Type '[Oculus.VR]OVRManager' has an extra field 'dynamicCullingMask' of type 'System.Boolean' in the player and thus can't be serialized (expected 'launchSimultaneousHandsControllersOnStartup' of type 'System.Boolean')
Type '[Oculus.VR]OVRManager' has an extra field 'externalCompositionBackdropColorRift' of type 'UnityEngine.Color' in the player and thus can't be serialized (expected 'launchSimultaneousHandsControllersOnStartup' of type 'System.Boolean')
Type '[Oculus.VR]OVRManager' has an extra field 'externalCompositionBackdropColorQuest' of type 'UnityEngine.Color' in the player and thus can't be serialized (expected 'launchSimultaneousHandsControllersOnStartup' of type 'System.Boolean')
Type '[Oculus.VR]OVRManager' has an extra field 'capturingCameraDevice' of type 'OVRManager+CameraDevice' in the player and thus can't be serialized (expected 'launchSimultaneousHandsControllersOnStartup' of type 'System.Boolean')
Type '[Oculus.VR]OVRManager' has an extra field 'flipCameraFrameHorizontally' of type 'System.Boolean' in the player and thus can't be serialized (expected 'launchSimultaneousHandsControllersOnStartup' of type 'System.Boolean')
Type '[Oculus.VR]OVRManager' has an extra field 'flipCameraFrameVertically' of type 'System.Boolean' in the player and thus can't be serialized (expected 'launchSimultaneousHandsControllersOnStartup' of type 'System.Boolean')
Type '[Oculus.VR]OVRManager' has an extra field 'handPoseStateLatency' of type 'System.Single' in the player and thus can't be serialized (expected 'launchSimultaneousHandsControllersOnStartup' of type 'System.Boolean')
Type '[Oculus.VR]OVRManager' has an extra field 'sandwichCompositionRenderLatency' of type 'System.Single' in the player and thus can't be serialized (expected 'launchSimultaneousHandsControllersOnStartup' of type 'System.Boolean')
Type '[Oculus.VR]OVRManager' has an extra field 'sandwichCompositionBufferedFrames' of type 'System.Int32' in the player and thus can't be serialized (expected 'launchSimultaneousHandsControllersOnStartup' of type 'System.Boolean')
Type '[Oculus.VR]OVRManager' has an extra field 'chromaKeyColor' of type 'UnityEngine.Color' in the player and thus can't be serialized (expected 'launchSimultaneousHandsControllersOnStartup' of type 'System.Boolean')
Type '[Oculus.VR]OVRManager' has an extra field 'chromaKeySimilarity' of type 'System.Single' in the player and thus can't be serialized (expected 'launchSimultaneousHandsControllersOnStartup' of type 'System.Boolean')
Type '[Oculus.VR]OVRManager' has an extra field 'chromaKeySmoothRange' of type 'System.Single' in the player and thus can't be serialized (expected 'launchSimultaneousHandsControllersOnStartup' of type 'System.Boolean')
Type '[Oculus.VR]OVRManager' has an extra field 'chromaKeySpillRange' of type 'System.Single' in the player and thus can't be serialized (expected 'launchSimultaneousHandsControllersOnStartup' of type 'System.Boolean')
Type '[Oculus.VR]OVRManager' has an extra field 'useDynamicLighting' of type 'System.Boolean' in the player and thus can't be serialized (expected 'launchSimultaneousHandsControllersOnStartup' of type 'System.Boolean')
Type '[Oculus.VR]OVRManager' has an extra field 'depthQuality' of type 'OVRManager+DepthQuality' in the player and thus can't be serialized (expected 'launchSimultaneousHandsControllersOnStartup' of type 'System.Boolean')
Type '[Oculus.VR]OVRManager' has an extra field 'dynamicLightingSmoothFactor' of type 'System.Single' in the player and thus can't be serialized (expected 'launchSimultaneousHandsControllersOnStartup' of type 'System.Boolean')
Type '[Oculus.VR]OVRManager' has an extra field 'dynamicLightingDepthVariationClampingValue' of type 'System.Single' in the player and thus can't be serialized (expected 'launchSimultaneousHandsControllersOnStartup' of type 'System.Boolean')
Type '[Oculus.VR]OVRManager' has an extra field 'virtualGreenScreenType' of type 'OVRManager+VirtualGreenScreenType' in the player and thus can't be serialized (expected 'launchSimultaneousHandsControllersOnStartup' of type 'System.Boolean')
Type '[Oculus.VR]OVRManager' has an extra field 'virtualGreenScreenTopY' of type 'System.Single' in the player and thus can't be serialized (expected 'launchSimultaneousHandsControllersOnStartup' of type 'System.Boolean')
Type '[Oculus.VR]OVRManager' has an extra field 'virtualGreenScreenBottomY' of type 'System.Single' in the player and thus can't be serialized (expected 'launchSimultaneousHandsControllersOnStartup' of type 'System.Boolean')
Type '[Oculus.VR]OVRManager' has an extra field 'virtualGreenScreenApplyDepthCulling' of type 'System.Boolean' in the player and thus can't be serialized (expected 'launchSimultaneousHandsControllersOnStartup' of type 'System.Boolean')
Type '[Oculus.VR]OVRManager' has an extra field 'virtualGreenScreenDepthTolerance' of type 'System.Single' in the player and thus can't be serialized (expected 'launchSimultaneousHandsControllersOnStartup' of type 'System.Boolean')
Type '[Oculus.VR]OVRManager' has an extra field 'mrcActivationMode' of type 'OVRManager+MrcActivationMode' in the player and thus can't be serialized (expected 'launchSimultaneousHandsControllersOnStartup' of type 'System.Boolean')
Fields serialized in Editor, class 'OVRManager'
'useRecommendedMSAALevel' of type 'System.Boolean'
'_monoscopic' of type 'System.Boolean'
'_sharpenType' of type 'OVRPlugin+LayerSharpenType'
'enableDynamicResolution' of type 'System.Boolean'
'minDynamicResolutionScale' of type 'System.Single'
'maxDynamicResolutionScale' of type 'System.Single'
'minRenderScale' of type 'System.Single'
'maxRenderScale' of type 'System.Single'
'_headPoseRelativeOffsetRotation' of type 'UnityEngine.Vector3'
'_headPoseRelativeOffsetTranslation' of type 'UnityEngine.Vector3'
'profilerTcpPort' of type 'System.Int32'
'launchSimultaneousHandsControllersOnStartup' of type 'System.Boolean'
'isInsightPassthroughEnabled' of type 'System.Boolean'
'shouldBoundaryVisibilityBeSuppressed' of type 'System.Boolean'
'requestBodyTrackingPermissionOnStartup' of type 'System.Boolean'
'requestFaceTrackingPermissionOnStartup' of type 'System.Boolean'
'requestEyeTrackingPermissionOnStartup' of type 'System.Boolean'
'requestScenePermissionOnStartup' of type 'System.Boolean'
'requestRecordAudioPermissionOnStartup' of type 'System.Boolean'
'_localDimming' of type 'System.Boolean'
'_trackingOriginType' of type 'OVRManager+TrackingOrigin'
'usePositionTracking' of type 'System.Boolean'
'useRotationTracking' of type 'System.Boolean'
'useIPDInPositionTracking' of type 'System.Boolean'
'resetTrackerOnLoad' of type 'System.Boolean'
'AllowRecenter' of type 'System.Boolean'
'LateControllerUpdate' of type 'System.Boolean'
'LateLatching' of type 'System.Boolean'
'controllerDrivenHandPosesType' of type 'OVRManager+ControllerDrivenHandPosesType'
'SimultaneousHandsAndControllersEnabled' of type 'System.Boolean'
'_readOnlyWideMotionModeHandPosesEnabled' of type 'System.Boolean'
'wideMotionModeHandPosesEnabled' of type 'System.Boolean'

Fields serialized in target platform, class 'OVRManager'
'useRecommendedMSAALevel' of type 'System.Boolean'
'_monoscopic' of type 'System.Boolean'
'_sharpenType' of type 'OVRPlugin+LayerSharpenType'
'enableDynamicResolution' of type 'System.Boolean'
'minDynamicResolutionScale' of type 'System.Single'
'maxDynamicResolutionScale' of type 'System.Single'
'minRenderScale' of type 'System.Single'
'maxRenderScale' of type 'System.Single'
'_headPoseRelativeOffsetRotation' of type 'UnityEngine.Vector3'
'_headPoseRelativeOffsetTranslation' of type 'UnityEngine.Vector3'
'profilerTcpPort' of type 'System.Int32'
'expandMixedRealityCapturePropertySheet' of type 'System.Boolean'
'enableMixedReality' of type 'System.Boolean'
'compositionMethod' of type 'OVRManager+CompositionMethod'
'extraHiddenLayers' of type 'UnityEngine.LayerMask'
'extraVisibleLayers' of type 'UnityEngine.LayerMask'
'dynamicCullingMask' of type 'System.Boolean'
'externalCompositionBackdropColorRift' of type 'UnityEngine.Color'
'externalCompositionBackdropColorQuest' of type 'UnityEngine.Color'
'capturingCameraDevice' of type 'OVRManager+CameraDevice'
'flipCameraFrameHorizontally' of type 'System.Boolean'
'flipCameraFrameVertically' of type 'System.Boolean'
'handPoseStateLatency' of type 'System.Single'
'sandwichCompositionRenderLatency' of type 'System.Single'
'sandwichCompositionBufferedFrames' of type 'System.Int32'
'chromaKeyColor' of type 'UnityEngine.Color'
'chromaKeySimilarity' of type 'System.Single'
'chromaKeySmoothRange' of type 'System.Single'
'chromaKeySpillRange' of type 'System.Single'
'useDynamicLighting' of type 'System.Boolean'
'depthQuality' of type 'OVRManager+DepthQuality'
'dynamicLightingSmoothFactor' of type 'System.Single'
'dynamicLightingDepthVariationClampingValue' of type 'System.Single'
'virtualGreenScreenType' of type 'OVRManager+VirtualGreenScreenType'
'virtualGreenScreenTopY' of type 'System.Single'
'virtualGreenScreenBottomY' of type 'System.Single'
'virtualGreenScreenApplyDepthCulling' of type 'System.Boolean'
'virtualGreenScreenDepthTolerance' of type 'System.Single'
'mrcActivationMode' of type 'OVRManager+MrcActivationMode'
'launchSimultaneousHandsControllersOnStartup' of type 'System.Boolean'
'isInsightPassthroughEnabled' of type 'System.Boolean'
'shouldBoundaryVisibilityBeSuppressed' of type 'System.Boolean'
'requestBodyTrackingPermissionOnStartup' of type 'System.Boolean'
'requestFaceTrackingPermissionOnStartup' of type 'System.Boolean'
'requestEyeTrackingPermissionOnStartup' of type 'System.Boolean'
'requestScenePermissionOnStartup' of type 'System.Boolean'
'requestRecordAudioPermissionOnStartup' of type 'System.Boolean'
'_localDimming' of type 'System.Boolean'
'_trackingOriginType' of type 'OVRManager+TrackingOrigin'
'usePositionTracking' of type 'System.Boolean'
'useRotationTracking' of type 'System.Boolean'
'useIPDInPositionTracking' of type 'System.Boolean'
'resetTrackerOnLoad' of type 'System.Boolean'
'AllowRecenter' of type 'System.Boolean'
'LateControllerUpdate' of type 'System.Boolean'
'LateLatching' of type 'System.Boolean'
'controllerDrivenHandPosesType' of type 'OVRManager+ControllerDrivenHandPosesType'
'SimultaneousHandsAndControllersEnabled' of type 'System.Boolean'
'_readOnlyWideMotionModeHandPosesEnabled' of type 'System.Boolean'
'wideMotionModeHandPosesEnabled' of type 'System.Boolean'

Error building player because script class layout is incompatible between the editor and the player.">>

@mikeskydev
Copy link
Member

A quick search suggests this is a pre-processor issue with regards to serialization in unity, to make a guess the Oculus SDKs don't know how to deal with linux, but our linux-based CI does for some reason!

What distro are you using?

You may want to try #798, as we're removing Oculus SDKs in favour of OpenXR.

@ipeakermit
Copy link
Author

Thanks for the quick response. I'm using Ubuntu 24.04. Will give it a try!

@ipeakermit ipeakermit changed the title Having trouble building for Oculus Quest Having trouble building for Oculus Quest (on Ubuntu 24.04) Feb 5, 2025
@ipeakermit
Copy link
Author

Building for OpenXR succeeded using branch feature/pure-openxr. However strangely when I adb install the apk, nothing shows up on the Quest.

Previously when I sideloaded an OpenBrush build I see a new launcher icon under the "for work" tab. For this build, nothing. For reference, the device shows that there is an installed package foundation.icosa.openbrushunityeditor, which is different from the two package variants I have previously seen, namely com.Icosa.OpenBrush or com.development.OpenBrush.

@ipeakermit
Copy link
Author

Qualification for the above. I can programmatically launch foundation.icosa.openbrushunityeditor, and it runs. It just doesn't seem to show up in the Horizon OS library launcher anywhere.

@mikeskydev
Copy link
Member

Building for OpenXR succeeded

Nice!

nothing shows up on the Quest.

This has moved around a bit, but it looks like it appears in the "Applications" tab on v72. it doesn't show up on the usual slot because it doesn't match our official oculus package name (com.Icosa.OpenBrush), which is in turn different from our cross-platform OpenXR build (foundation.icosa.openbrush). Our build script automatically renames this and will add different endings (such as built in editor, or PR number) where appropriate.

Coincidentally this helps during development, as you'd most likely get flagged for illicit activity if the package name matched our official build but had the wrong signature!

@ipeakermit
Copy link
Author

Thanks. Indeed, after some finagling, reinstalling and restarting I have both a standard Beta build sideload and this custom build installed side by side. Strangely, only the custom build appears. For me it is under the "For work" tab like everything else. It may be related to the fact that we are trying to use Android Enterprise to manage a fleet of headsets. I am working on a custom build that forces passthrough mode and ultimately (if and when) multiplayer for groups of visitors to our (University) lab.

And your point about Meta's anti-piracy restrictions is taken---indeed that is how I ended up here, see #785 .

@ipeakermit
Copy link
Author

It's worth mentioning in passing that this build, including a hack (not yet PRed) to start up in passthrough mode seems to work quite well for the Quest 3.

@andybak
Copy link
Contributor

andybak commented Feb 5, 2025

Ooooh. Do share. I've been considering making passthrough the default where supported for a while.

@ipeakermit
Copy link
Author

Ooooh. Do share. I've been considering making passthrough the default where supported for a while.

Sure! This is lightly tested for Quest 3.

https://github.com/ipeakermit/open-brush/tree/forcePassthrough-202502

Critique welcome. Happy to make a PR with some feedback/coaching. I think only the mod to Assets/Scripts/EnvironmentCatalog.cs is required. The other diffs came along for the ride ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants