5
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

opencvをhomebrewでインストールする際cmakeやbrew-caskでつまった話

Posted at

http://www.learnopencv.com/install-opencv-3-on-yosemite-osx-10-10-x/
このサイトにある通りにopencvをインストールしようと思ったんですよ
ところが

brew tap homebrew/science
brew install opencv

どうやらうまくいかない
原因はbrewが最新状態にないっていうんで
brew updateを実行しようとするとエラーが返ってくるんね、ほんで診断するしかないわと

brew doctor

ってすると

Warning: You have external commands with conflicting names.
Found command `brew-cask` in following places:
    /usr/local/bin/brew-cask
    /usr/local/Library/Taps/caskroom/homebrew-cask/cmd/brew-cask.rb

うん、これはbrew caskがじゃましてんなと
https://github.com/caskroom/homebrew-cask/releases/tag/v0.60.0
ここね、

brew update && brew uninstall --force brew-cask

これで解決でんがな、んでbrew install opencvね、でもまだ

$brew info opencv
==> Dependencies
Build: cmake ✘, pkg-config ✘
Required: jpeg ✔, libpng ✔, libtiff ✔
Recommended: eigen ✔, openexr ✔, homebrew/python/numpy ✔
Optional: gstreamer ✘, jasper ✘, libdc1394 ✘, openni ✘, qt ✘, tbb ✘, ffmpeg ✘

だから

brew unlink cmake
brew install cmake 
brew unlink pkg-config
brew install pkg-config 

あとはuninstall してもう一回installしたら見事完成っちゅうわけや

5
4
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
5
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?