Dependencies Installation Linux 14.xx - jackspaceBerkeley/pupil GitHub Wiki
These installation instructions are proven to work on 64bit Ubuntu 14.04LTS running on a virtual machine and on a Lenovo Thinkpad X201.
Install Dependencies
Let's get started! Its time for apt-get
. Just copy paste into the terminal and listen to your machine purr.
sudo apt-get install python-opengl mesa-common-dev libglu1-mesa-dev git python-setuptools libusb-1.0-0-dev cmake python-zmq python-dev python-pip libav-tools python-opencv python-scipy build-essential libglew-dev nasm libavformat-dev libavcodec-dev libavdevice-dev libavutil-dev libswscale-dev libavresample-dev pkg-config
wget -O libjpeg-turbo-1.3.90.tar.gz http://sourceforge.net/projects/libjpeg-turbo/files/1.3.90%20%281.4%20beta1%29/libjpeg-turbo-1.3.90.tar.gz/download
tar xvzf libjpeg-turbo-1.3.90.tar.gz
cd libjpeg-turbo-1.3.90
./configure --with-pic
sudo make install
git clone https://github.com/pupil-labs/libuvc
cd libuvc
mkdir build
cd build
cmake ..
make && sudo make install
udev rules for running libuvc as normal user:
echo 'SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", GROUP="plugdev", MODE="0664"' | sudo tee /etc/udev/rules.d/10-libuvc.rules > /dev/null
sudo udevadm trigger
Install packages with pip
sudo pip install numexpr
sudo pip install cython
sudo pip install psutil
Install PyAV
cd ~/
git clone https://github.com/pupil-labs/PyAV
cd PyAV
sudo python setup.py install
install glfw3 manually
sudo apt-get install libxrandr-dev libxi-dev libxcursor-dev libxxf86vm-dev libxinerama-dev
cd ~/
git clone http://github.com/glfw/glfw
cd glfw/
git checkout tags/3.1.1
cmake -G "Unix Makefiles" -DBUILD_SHARED_LIBS=TRUE
sudo make install
sudo ln -s /usr/local/lib/libglfw.so.3 /usr/lib/libglfw.so.3
cd ../
sudo rm -r glfw
install pupil module pyuvc
cd ~/
git clone http://github.com/pupil-labs/pyuvc
cd pyuvc
sudo python setup.py install
install pupil module pyglui
cd ~/
git clone http://github.com/pupil-labs/pyglui --recursive
cd pyglui
sudo python setup.py install
That's it -- Done!
=========================
Install dependencies to bundle Pupil (not required not normal use!)
The following dependencies are optional. If you want to create a bundle executable you will need to:
install PyInstaller:
sudo pip install pyinstaller