1. 下载地址:
https://sourceforge.net/projects/zbar/files/zbar/0.10/zbar-0.10.tar.gz/download
2.配置
在命令行输入
./configure --without-imagemagick -disable-video -without-qt -without-gtk -without-x --without-python --enable-static --disable-shared
返回如下结果
3.make 编译
出现以下错误:
stdio2.h:140:1: error: expected identifier or ‘(’ before ‘{’ token
解决办法:
在命令行输入:export CFLAGS=""
然后重新./config
再make
4.在zbar目录下生成.libs目录,该目录下:包含有生成的库libzbar.a