-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Description
Hi all,
I am trying to run Intel RealSense D435 on a MacBook M4 with macOS Sequoia 15.6 (Apple Silicon). While I can build librealsense and use Python scripts, the RealSense Viewer GUI does not work.
⚙️ Environment
Device: Intel RealSense D435
macOS: Sequoia 15.6 (Apple Silicon, M4 chip)
Python: 3.13.7 (Homebrew), 3.9.6 (system)
librealsense: built from master
Tools installed: CMake, libusb, pkg-config
✅ What Works
rs-enumerate-devices detects the camera (after fixing USB permissions).
Python bindings (pyrealsense2) work inside a virtualenv after manual symlink and DYLD_LIBRARY_PATH fix.
I can capture frames (color + depth) using Python.
❌ What’s Broken
RealSense Viewer (C++ GUI)
Fails with OpenGL/ImGui shader errors:
ERROR: ImGui_ImplOpenGL3_CreateDeviceObjects: failed to compile shader!
With GLSL: #version 150 / #version 330 / #version 410 core
version not supported on macOS
macOS only supports OpenGL 4.1 Core, so shaders beyond/below that fail.
USB Access Issues
Occasionally:
failed to claim usb interface: RS2_USB_STATUS_ACCESS
failed to set power state
Works when running as root, but unstable.
Python Binding Path Issues
pyrealsense2 installs into /opt/homebrew/lib/python3.13/site-packages/ but looks for librealsense2.2.56.dylib in the wrong place.
Fixed by exporting DYLD_LIBRARY_PATH=/usr/local/lib.
No GUI Alternative
Since the official viewer crashes, I attempted a PyQt-based custom GUI, but hit compatibility issues with PyQt5/PyQt6.
📌 Questions for the Community
Has anyone successfully run RealSense Viewer GUI on Apple Silicon macOS (Sequoia or Sonoma)?
What’s the correct way to patch ImGui/OpenGL GLSL for macOS 4.1 Core support?
Is there an official or community workaround for the USB/libusb power state issue on macOS?
Any help, patches, or workarounds from the community would be greatly appreciated 🙏
Thanks,
Sid