Skip to content
Kiriti Gowda edited this page Jan 17, 2024 · 13 revisions

macOS Build Instructions

Identify macOS components

  • macOS version
system_profiler SPSoftwareDataType && sw_vers && uname -a
  • macOS CPU & GPU info
system_profiler SPDisplaysDataType && system_profiler SPHardwareDataType

Prerequisites

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  • Install dependency
brew install cmake opencv openssl

MIVisionX for macOS

git clone https://github.com/GPUOpen-ProfessionalCompute-Libraries/MIVisionX.git
  • Create a build directory
mkdir build && cd build
  • CMake, Build, & Install MIVisionX
cmake ../MIVisionX
make
sudo make install
  • Test
make test

Verify Installation

export PATH=$PATH:/opt/rocm/bin
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:/opt/rocm/lib
runvx /opt/rocm/share/mivisionx/samples/gdf/canny.gdf

Tested Configurations

  • macOS
    • Ventura 13
    • Sonoma 14
  • Homebrew 3.6.20
  • CMake 3.27.6
  • OpenCV 4.8.0_6
  • OpenSSL 3.1.2

Problems with Prerequisites

  • Export OpenCV in your PATH - OpenCV Extension & RunVX Display
brew info opencv
  • Export OpenSSL in your PATH - RunVX
brew info openssl