Ubuntu22.04 编译ZBar源码

code

c 复制代码
git clone https://github.com/mchehab/zbar.git -b 0.23.93

# Debian/Ubuntu
sudo apt-get install autoconf autopoint pkg-config automake libtool gettext

# 运行 autoreconf 生成所有必要文件,包括configure
autoreconf -fiv

# 配置
mkdir -p install
./configure --without-gtk --without-python --without-qt --prefix=$(pwd)/install

make
sudo make install


# 测试
export LD_LIBRARY_PATH=$(pwd)/install/lib:$LD_LIBRARY_PATH
./install/bin/zbarimg -q 2.jpg
QR-Code:http://weixin.qq.com/q/02Sg3s8mJFcQG10000007e
相关推荐
Color Space2 年前
用Python和OpenCV搭建自己的一维码和QRCode扫描仪(步骤 + 源码)
python·opencv·barcode·二维码解码