October 4, 2012

Install opencv in mac osx

The most straightforward way is via homebrew.
brew update
sudo brew install opencv

Then, all of the dependencies will be install with opencv. The reason to use "sodu" is because there will be twice "brew link" used in the process which could not link certain libraries without permission.

Finally, the brew gave a wrong file to update. Instead of updating .profile, the correct destination should be .bash_profile. Add this line:
export PYTHONPATH=/usr/local/lib/python2.7/site-packages/:$PYTHONPATH<\code>

That is it.


cheers,

No comments:

Post a Comment

Days of our lives

Daisypath Anniversary tickers