LoginSignup
1
2

More than 5 years have passed since last update.

OpenCV3(+Qt5)をbrewでインストールすると失敗する時の回避方法

Last updated at Posted at 2016-11-03
1 / 6

現時点(11/3)、[brew install opencv3]でエラーとなるので回避方法をメモ.


1. brewのアップデート&アップグレード

# brewが正常か確認
brew doctor
# brewのアップデート&アップグレード
brew update
brew upgrade

2. 依存ライブラリやツールをインストール

brew install cmake
brew install pkg-config
brew install libtiff
brew install jasper
brew install tbb
brew install ffmpeg
brew install qt5
brew linkapps qt5
brew install Matlab

3. OpenCVのインストール

brew tap homebrew/science
brew reinstall opencv3 --HEAD --c++11 --with-contrib --with-opengl --with-qt5 --without-opencl --with-python3

4. OpenCVの確認

/usr/local/Cellar/opencv3/HEAD-6c12533_4/bin/opencv_version 

↑を実行し↓が表示されればOK
3.1.0-dev

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2