- Install Xcode (remember to install Command-Line Tools)
-
Install Homebrew
$ ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)" // Add the Homebrew directory to your system path _export PATH=/usr/local/bin:$PATH_ to .bash_profile
-
Install Python
$ brew install python --framework --universal // Add /usr/local/share/python to your system path export PATH=/usr/local/share/python:$PATH // change Lion's symlink to point at your new Python install $ cd /System/Library/Frameworks/Python.framework/Versions $ sudo rm Current $ ln -s /usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/Current
// To verify that your installation went as planned, typewhich
python at the command line. You should see/usr/local/bin/python
in response -
Use Homebrew to install git, opencv
$ brew install git $ brew install opencv
-
Install the dependent libraries
$ brew install sdl sdl_image sdl_mixer sdl_ttf smpeg portmidi $ ARCHFLAGS="-arch i386 -arch x86_64" brew install PIL
-
Make symbolic links
$ sudo ln -s /usr/local/lib/python2.7/site-packages/cv.so /Library/Python/2.7/site-packages/cv.so $ sudo ln -s /usr/local/lib/python2.7/site-packages/PIL /Library/Python/2.7/site-packages/PIL $ sudo ln -s /usr/local/lib/python2.7/site-packages/cv2.so /Library/Python/2.7/site-packages/cv2.so $ sudo ln -s /usr/local/lib/python2.7/site-packages/cv.py /Library/Python/2.7/site-packages/cv.py
-
Install pip (pip installs packages)
$ sudo easy_install pip
-
Install NumPy, SciPy, IPython
$ pip install numpy $ brew install gfortran $ pip install -e git+https://github.com/scipy/scipy#egg=scipy-dev $ pip install ipython
-
Intall Mercurial
$ brew install mercurial
-
Install PyGame
$ sudo pip install hg+http://bitbucket.org/pygame/pygame
-
Install SimpleCV
$ pip install https://github.com/ingenuitas/SimpleCV/zipball/master
-
Install readline
$ sudo easy_install readline
-
Start the SimpleCV shell
$ simplecv
--EOF--
Thanks! I have gone round in circles with this all afternoon.
ReplyDelete