Skip to content

Instantly share code, notes, and snippets.

@nucliweb
Last active September 25, 2025 11:12
Show Gist options
  • Select an option

  • Save nucliweb/b2a234c673221af5ec24508da7d8b854 to your computer and use it in GitHub Desktop.

Select an option

Save nucliweb/b2a234c673221af5ec24508da7d8b854 to your computer and use it in GitHub Desktop.
OpenCV C++ Mac M1 Installation Steps

📺 OpenCV C++ Mac M1 Installation Tutorial Video

Commands you need

We need homebrew installed in our system

brew install cmake

mkdir Open_CV && cd Open_CV

git clone https://github.com/opencv/opencv.git

mkdir build && cd build

cmake ../opencv/ .

arch -arm64 cmake ../opencv/ -DWITH_QT=OFF -DWITH_OPENGL=OFF -DFORCE_VTK=OFF -DWITH_TBB=OFF -DWITH_GDAL=OFF -DWITH_XINE=OFF -DBUILD_EXAMPLES=OFF -DBUILD_ZLIB=OFF -DBUILD_TESTS=OFF .

arch -arm64 sudo make -j 4

arch -arm64 sudo make install
@chriskery
Copy link

Hello, I dont know if you have already solve this problem or not, but the way I solve is by reinstall homebrew and make sure you are installing the arm version instead of X86

same problem and resolved by reinstall homebrew

@2black0
Copy link

2black0 commented Sep 25, 2025

is it optimized with metal support?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment