linux下对Zbar源码进行编译

 

github上git的源码的目录下没有configure ,晕

wget http://downloads.sourceforge.net/project/zbar/zbar/0.10/zbar-0.10.tar.gz

tar -zvxf zbar-0.10.tar.gz
export CFLAGS
=""./configure --prefix=$(pwd)/output0808 --enable-shared --enable-static --without-imagemagick --without-jpeg --without-python --without-gtk --without-qt --disable-video
make&&make intsall

 

编译成功

output0808中生成的工程结构如下

 

实验中并没有使用到交叉编译器,生成的是x86架构的文件

在output0808/lib下

file libzbar.so.0.2.0

 

 

posted @ 2019-08-08 11:15  挑食君  阅读(2003)  评论(0编辑  收藏  举报