brew 为 macOS arm 安装 OpenCV
brew install OpenCV for macOS arm
我正在使用 macOS arm,并使用此命令为 c++ 安装 OpenCV:
brew install --build-from-source OpenCV
下载包已完成,然后出现此错误:
==> Installing OpenCV
Error: An exception occurred within a child process:
RuntimeError: Unexpected architecture: arm64. This only works with Intel architecture.
你能帮帮我吗?
克隆资源
git clone https://github.com/opencv/opencv.git
创建构建目录
mkdir -p build && cd build
配置
cmake ../opencv
建造
cmake --build .
我正在使用 macOS arm,并使用此命令为 c++ 安装 OpenCV:
brew install --build-from-source OpenCV
下载包已完成,然后出现此错误:
==> Installing OpenCV
Error: An exception occurred within a child process:
RuntimeError: Unexpected architecture: arm64. This only works with Intel architecture.
你能帮帮我吗?
克隆资源
git clone https://github.com/opencv/opencv.git
创建构建目录
mkdir -p build && cd build
配置
cmake ../opencv
建造
cmake --build .