PHP 二维码解码 (读取二维码)

复制代码
#zbar
wget http://ncu.dl.sourceforge.net/project/zbar/zbar/0.10/zbar-0.10.tar.bz2
yum install  gtk2 gtk2-devel pygtk2 pygtk2-devel  qt qt-devel ImageMagick-devel ImageMagick
./configure --enable-pthread=yes --with-jpeg=yes --with-imagemagick=yes
make
make install 
#php 扩展
wget https://github.com/mkoppanen/php-zbarcode/archive/master.zip
unzip master.zip
cd php-zbarcode-master/
/usr/local/php/bin/phpize
 ./configure --with-php-config=/usr/local/php/bin/php-config --with-zbarcode=/usr/local/
make
make install
复制代码

 

posted @   liushan  阅读(8053)  评论(0编辑  收藏  举报
努力加载评论中...
点击右上角即可分享
微信分享提示