So we got our Mac mini M1, and gave it a quick try running DepthAI on it. Got our prebuilt wheels (for Intel CPUs - x86_64) working very well using the Rosetta emulator.
First, the native Apple Silicon support for Homebrew is still being actively worked on (with several issues still existing), so I didn't attempted installing it / building from sources. See https://github.com/Homebrew/brew/issues/7857
The steps followed:
Install Rosetta (note it may be already installed, for example attempting to install other apps (current TeamViewer) may prompt to install Rosetta first):
softwareupdate --install-rosetta
To run commands with x86_64
emulation, it is possible to prefix them with arch -x86_64
But there's an easier way, to open the terminal app directly using Rosetta. For example, I copied Terminal to Desktop, renamed it to Terminal-x86_64
, and tick the checkbox Open using Rosetta
:


Then after opening the terminal, it can be checked under what architecture it runs using uname -m
- with Rosetta it prints:
x86_64
- native:
arm64
After that, it's just the standard procedure to install Brew (it installed python 3.8.2 by default), clone depthai
repo, running ./install_requirements.py
, and finally ./depthai_demo.py
.
Cheers,
The Luxonis Team