Skip to content

Commit 4187915

Browse files
committed
Fix build when PCL not enabled
1 parent 99ff41e commit 4187915

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

example/device/framegrabber/readRealSenseData.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -311,9 +311,11 @@ int main(int argc, const char *argv[])
311311
else {
312312
d2.init(I_depth, I_color.getWidth() + 10, 0, "Depth image");
313313
}
314+
#if defined(VISP_HAVE_PCL)
314315
pcl_viewer.setPosition(I_color.getWidth() + 10, I_color.getHeight() + 70);
315316
pcl_viewer.setWindowName("3D point cloud");
316317
pcl_viewer.startThread(std::ref(mutex), pointcloud);
318+
#endif
317319
}
318320

319321
vpDisplay::display(I_color);

0 commit comments

Comments
 (0)