Installing openCV 2.4.2 on Mac OS X 10.9 (Mavericks)

前端 未结 7 564
暗喜
暗喜 2020-12-04 16:06

I\'m trying to install openCV 2.4.2 (not the newest version but stable version compatible with newer OS X according to several sources) on Mac OS X 10.9 (Mavericks). I have

7条回答
  •  醉话见心
    2020-12-04 16:46

    You can try to install opencv from homebrew, I met the same problem with cmake in my 10.9 and finally I found the solution from Chris Muktar. Here are the steps:

    1. Make sure xcode-select --install Xcode command line tools 5.0.1 are installed.
    2. Install python using brew - brew install python.
    3. pip update
    4. pip install numpy
    5. brew linkapps
    6. Add export PYTHONPATH=/usr/local/Cellar/opencv/2.4.6.1/lib/python2.7/site-packages:$PYTHONPATH to .bash_profile in your home directory
    7. brew install opencv

    In the last step I came across the Error: No available formula for opencv. In this case, you should first run the command brew tap homebrew/science.

    Good Luck

提交回复
热议问题