二维码和条形码识别库 Zbar-0.10 安装和 QT环境测试

zbar 本地安装

(1).下载地址
http://sourceforge.mirrorservice.org/z/zb/zbar/zbar/0.10/
(2). 解压
tar -xvf zbar-0.10.tar.bz2
(3). 进入解压后的文件夹
cd zbar-0.10/
(4). 配置生产makefile文件参数
首先,将CFLAGS环境变量设置为空
export CFLAGS=""
再进行config配置
./configure --prefix=/usr/local/zbar --enable-shared --disable-video --without-imagemagick --without-gtk --without-python --without-qt
(5).编译
make
输出信息
libtool: link: ranlib zbar/.libs/libzbar.a
libtool: link: rm -fr zbar/.libs/libzbar.lax
libtool: link: ( cd “zbar/.libs” && rm -f “libzbar.la” && ln -s “…/libzbar.la” “libzbar.la” )
make[1]: Leaving directory ‘/home/robot/robot-thirtyLIB/zbar-0.10’
安装路径
–prefix=/usr/local/zbar
(6). 本地安装
sudo make install
输出信息
/usr/bin/install -c -m 644 ‘include/zbar/Scanner.h’ ‘/usr/local/zbar/include/zbar/Scanner.h’
/usr/bin/install -c -m 644 ‘include/zbar/Decoder.h’ ‘/usr/local/zbar/include/zbar/Decoder.h’
/usr/bin/install -c -m 644 ‘include/zbar/Exception.h’ ‘/usr/local/zbar/include/zbar/Exception.h’
/usr/bin/install -c -m 644 ‘include/zbar/Symbol.h’ ‘/usr/local/zbar/include/zbar/Symbol.h’
/usr/bin/install -c -m 644 ‘include/zbar/Image.h’ ‘/usr/local/zbar/include/zbar/Image.h’
/usr/bin/install -c -m 644 ‘include/zbar/ImageScanner.h’ ‘/usr/local/zbar/include/zbar/ImageScanner.h’
/usr/bin/install -c -m 644 ‘include/zbar/Video.h’ ‘/usr/local/zbar/include/zbar/Video.h’
/usr/bin/install -c -m 644 ‘include/zbar/Window.h’ ‘/usr/local/zbar/include/zbar/Window.h’
/usr/bin/install -c -m 644 ‘include/zbar/Processor.h’ ‘/usr/local/zbar/include/zbar/Processor.h’
make[2]: Leaving directory ‘/home/robot/robot-thirtyLIB/zbar-0.10’
make[1]: Leaving directory ‘/home/robot/robot-thirtyLIB/zbar-0.10’

你可能感兴趣的:(二维码和条形码识别库 Zbar-0.10 安装和 QT环境测试)