The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

t/north_star: Fix build when we have depthai but no hand-tracking

authored by

Jakob Bornecrantz and committed by
Moses Turner
52d225ae 751c8034

+7 -2
+7 -2
src/xrt/targets/common/target_builder_north_star.c
··· 284 284 depthai_fs_get_stereo_calibration(the_fs, &calib); 285 285 286 286 287 - 287 + #ifdef XRT_BUILD_DRIVER_HANDTRACKING 288 288 struct xrt_slam_sinks *hand_sinks = NULL; 289 289 290 290 struct t_camera_extra_info extra_camera_info; ··· 304 304 if (create_status != 0) { 305 305 return XRT_ERROR_DEVICE_CREATION_FAILED; 306 306 } 307 + #endif 307 308 308 309 struct xrt_slam_sinks *slam_sinks = NULL; 309 310 twrap_slam_create_device(&usysd->xfctx, XRT_DEVICE_DEPTHAI, &slam_sinks, out_head_device); ··· 312 313 struct xrt_frame_sink *entry_left_sink = NULL; 313 314 struct xrt_frame_sink *entry_right_sink = NULL; 314 315 316 + #ifdef XRT_BUILD_DRIVER_HANDTRACKING 315 317 u_sink_split_create(&usysd->xfctx, slam_sinks->left, hand_sinks->left, &entry_left_sink); 316 318 u_sink_split_create(&usysd->xfctx, slam_sinks->right, hand_sinks->right, &entry_right_sink); 317 - 319 + #else 320 + entry_left_sink = slam_sinks->left; 321 + entry_right_sink = slam_sinks->right; 322 + #endif 318 323 319 324 entry_sinks = (struct xrt_slam_sinks){ 320 325 .left = entry_left_sink,