📺 OpenCV C++ Mac M1 Installation Tutorial Video
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
When I run 'arch -arm64 cmake ....' I get the error:
How do I install a version of make that has the arm64 architecture?
file
which cmake
show:/usr/local/bin/cmake: Mach-O 64-bit executable x86_64
Where as file
which make
shows:/usr/bin/make (for architecture x86_64): Mach-O 64-bit executable x86_64
/usr/bin/make (for architecture arm64e): Mach-O 64-bit executable arm64e