Skip to content

Instantly share code, notes, and snippets.

@odarriba
Last active June 15, 2020 04:10
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save odarriba/011eb7df4ab235ad592e191f6bd6f31c to your computer and use it in GitHub Desktop.
Save odarriba/011eb7df4ab235ad592e191f6bd6f31c to your computer and use it in GitHub Desktop.
How to install ruby-opencv on OSX

First of all, install OpenCV v2:

$ brew install opencv@2

Then, set build configuration for build (changing OpenCVversion number for the current one):

$ bundle config build.ruby-opencv --with-opencv-lib=/usr/local/Cellar/opencv@2/2.4.13.6_2/lib \
    --with-opencv-include=/usr/local/Cellar/opencv@2/2.4.13.6_2/include/

... and then just run standard bundle command:

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