Dependencies Installation MacOS - jackspaceBerkeley/pupil GitHub Wiki
These instructions have been tested for MacOS 10.8, 10.9, and 10.10. Use the linked websites and Terminal to execute the instructions.
- Install the latest Apple Developer Command Line Tools -- free, but requires Apple ID.
Homebrew describes itself as "the missing package manager for OSX." It makes development on MacOS much easier, plus it's open source. Install with the ruby script.
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Install Homebrew Python
.
brew install python
Add Homebrew installed executables and Python scripts to your path. Add the following two lines to your ~/.bash_profile. (you can open textedit from the terminal like so: sudo open ~/.bash_profile
)
export PATH=/usr/local/bin:/usr/local/sbin:$PATH
export PYTHONPATH=/usr/local/lib/python2.7/site-packages:$PYTHONPATH
Don't have a ~/.bash_profile? No problem, create one.
cd ~/
touch .bash_profile
Let's get started! Its time to put brew
to work! Just copy paste commands into your terminal and listen to your machine purr.
brew tap homebrew/python
brew install numpy
brew install scipy
brew install libjpeg-turbo
brew install libusb
brew tap homebrew/science
brew install ffmpeg --HEAD --with-tools
brew install opencv --with-ffmpeg
brew install glew
brew tap homebrew/versions
brew install glfw3
PyOpenGL, ZMQ, ...
pip install PyOpenGL
pip install pyzmq==13.1
pip install numexpr
pip install billiard
pip install cython
pip install psutil
##Manual Packages
Install PyAV
cd ~/
git clone https://github.com/pupil-labs/PyAV
cd PyAV
python setup.py install
Install libuvc
git clone https://github.com/pupil-labs/libuvc
cd libuvc
mkdir build
cd build
cmake ..
make && make install
Install pyuvc
cd ~/
git clone https://github.com/pupil-labs/pyuvc
cd pyuvc
python setup.py install
Install Pupil Labs UI module:
git clone https://github.com/pupil-labs/pyglui --recursive
cd pyglui
python setup.py install
That's it -- you're Done!
(sort of, you still need to download and install Pupil)