1. 打开 fbpy 官方网站 https://pypi.org/project/fbpy/
wget https://files.pythonhosted.org/packages/46/13/e931f1b15facd0e0d7a6913915e9f79f22ed9927326a841a01b5d164c3ac/fbpy-0.1.tar.gz
tar xvf fbpy-0.1.tar.gz
cd fbpy-0.1
2. 安装环境:
sudo apt-get install python-pip -y
sudo apt-get install python-numpy -y
sudo apt-get install libjack-dev -y
pip install Cython
pip install numpy
3. 修改代码 fbpy/utils/fbutils.c
插入:
#define png_infopp_NULL (png_infopp)NULL
#define int_p_NULL (int*)NULL
https://stackoverflow.com/questions/2442335/libpng-boostgil-png-infopp-null-not-found
4. 执行编译,安装:
sudo python setup.py install
离线
执行一个demo, 看下效果: python fbpy-0.1/examples/clockdemo.py
离线