Skip to content

Instantly share code, notes, and snippets.

@DomiR
Last active January 1, 2016 00:49
Show Gist options
  • Save DomiR/8069316 to your computer and use it in GitHub Desktop.
Save DomiR/8069316 to your computer and use it in GitHub Desktop.
How to install opencv on Mavericks

Install OPENCV

Download newest OpenCV 2.4.7.2 from

  git clone https://github.com/Itseez/opencv/commit/8f10ca5180d3c62e97f6a2099b5beb225b7df26b

With CUDA support

(source) https://github.com/Homebrew/homebrew/wiki/Custom-GCC-and-cross-compilers

brew tap homebrew/versions && brew install gcc48
cmake -G "Unix Makefiles" -D WITH_CUDA=ON -D CUDA_HOST_COMPILER=/usr/bin/gcc ..

Without CUDA support

cmake -G "Unix Makefiles" -D WITH_CUDA=OFF ..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment