安装例如以下包:
sudo apt-get install build-essential make cmake libqt4-dev qt4-qtconfig cmake-qt-gui pkg-config
sudo apt-get install python3.2-dev python-numpy libgtk2.0-dev ffmpeg libavcodec-dev libavformat-dev
libswscale-dev libjpeg-dev libjpeg8 libjpeg8-dev libjpeg8-dbg libjpeg-progs libpng12-0 libpng12-dev
libpng++-dev libpng3 pngtools libtiff4-dev libtiff4 libtiff-tools libjasper-dev libgstreamer0.10-0-dbg libgstreamer0.10-0
libgstreamer0.10-dev zlib1g-dbg zlib1g zlib1g-dev libbz2-dev libxine1-ffmpeg libxine-dev libxine1-bin libdc1394-22-dev
libdc1394-22 libdc1394-utils libv4l-0 libv4l-dev
sudo ln -s /usr/lib/arm-linux-gnueabihf/libjpeg.so /usr/lib
sudo ln -s /usr/lib/arm-linux-gnueabihf/libfreetype.so /usr/lib
sudo ln -s /usr/lib/arm-linux-gnueabihf/libz.so /usr/lib
注意:红色部分未实验。自己去试试吧
安装python图形处理库PIL(Python Image Library)
sudo easy_install PIL
sudo pip install -v PIL