Skip to content

Instantly share code, notes, and snippets.

@ablyeom
Created October 12, 2016 06:20
Show Gist options
  • Save ablyeom/1977b0badf987697a587be7f4bf14d20 to your computer and use it in GitHub Desktop.
Save ablyeom/1977b0badf987697a587be7f4bf14d20 to your computer and use it in GitHub Desktop.
Installing OpenCV using Homebrew

Currently(10/12/2016) installing on Sierra has many problems.

  1. Numpy Version, required 1.11.2, but brew install 1.11.1.
  2. QT, QTKit Problem. (actually I don't know how to solve this. so I'm using ffmepg.)

Steps

  1. Install with HEAD

    brew install opencv3 --with-contrib --with-ffmpeg --HEAD

  2. Make symbolic link to pkg-config directory.

  • If you were using OpenCV 2.x and OpenCV 3.x,

    `ln -s /usr/local/opt/opencv3/lib/pkgconfig/opencv.pc /usr/local/lib/pkgconfig/opencv3.pc`
    
  • If you not

    `ln -s /usr/local/opt/opencv3/lib/pkgconfig/opencv.pc /usr/local/lib/pkgconfig/opencv.pc`
    
  1. Test

    pkg-config --cflags --libs opencv3

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