Skip to content

Problems building and installing on M1 Mac #11897

@emilk

Description

@emilk
Required Info
Camera Model D435
Firmware Version
Operating System & Version MacOS 13.3.1 (a)
SDK Version
Language C / Python

Issue Description

I'm trying to get a RealSense D435 working on my MacBook Pro M1.

I tried building from source following the instructions on https://github.com/IntelRealSense/librealsense/blob/master/doc/installation_osx.md

I get this:

§ cmake .. -DBUILD_EXAMPLES=true -DBUILD_WITH_OPENMP=false -DHWM_OVER_XU=false
-- The CXX compiler identification is AppleClang 14.0.3.14030022
-- The C compiler identification is AppleClang 14.0.3.14030022
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Checking internet connection...
-- Internet connection identified
-- Info: REALSENSE_VERSION_STRING=2.54.1
-- Setting Unix configurations
-- Performing Test SUPPORTS_CXX14
-- Performing Test SUPPORTS_CXX14 - Failed
CMake Error at CMake/lrs_macros.cmake:17 (message):
  Project 'realsense2' requires C++14 or higher
Call Stack (most recent call first):
  CMakeLists.txt:53 (config_cxx_flags)

Python

I want to use it from either Python or C. Is there a pip wheel I can just install and use?

I tried https://pypi.org/project/pyrealsense2-macosx/ but I get:

profile = pipe.start()
RuntimeError: No device connected

despite the camera being connected (and working correctly as a web-cam)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions