完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
1 下载
Zbar源码: 注意git上的源码无配置配置文件, 解压缩: tar -jxvf zbar- 0.10.tar.bz2 2 配置文件 创建输出目录 cd zbar-0.10 mkdir output 配置编译ZBar库: ./configure --help 打印帮助信息,其中配置选项如下: Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-pic try to use only PIC/non-PIC objects [default=use both] --with-gnu-ld assume the C compiler uses GNU ld [default=no] --with-gnu-ld assume the C compiler uses GNU ld default=no --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib --without-libiconv-prefix don't search for libiconv in includedir and libdir --with-x use the X Window System --without-xshm disable support for X shared memory extension --without-xv disable support for XVideo extension --without-jpeg disable support for JPEG image conversions --without-imagemagick disable support for scanning images using ImageMagick --with-npapi enable support for Firefox/Mozilla/OpenOffice NPAPI plugin --without-gtk disable support for GTK+ widget --without-python disable support for Python bindings --without-qt disable support for Qt4 widget 配置文件: ./configure --prefix=$PWD/output/ --without-gtk --without-qt --without-imagemagick --without-python --disable-video 打印显示: please verify that the detected configuration matches your expectations: ------------------------------------------------------------------------ X --with-x=yes pthreads --enable-pthread=yes v4l --enable-video=no => zbarcam video scanner will *NOT* be built jpeg --with-jpeg=yes Magick++ --with-imagemagick=no => the zbarimg file scanner will *NOT* be built Python --with-python=no GTK+ --with-gtk=no => the GTK+ widget will *NOT* be built Qt4 --with-qt=no => the Qt4 widget will *NOT* be built 3 常见错误 我的错误1: 如果,这里是说你后面需要配置文件出错;请参考如下: 获取相关文件支持 1. $ sudo apt-get install libqt4-dev //qt相关 2. $ sudo apt-get install libv4l-dev 3. $ sudo ln -s /usr/include/libv4l1-videodev.h /usr/include/linux/videodev.h 4. $ sudo apt-get install python-gtk2-dev 5. $ sudo apt-get install imagemagick libmagickwand-dev/ 例如 我想用jpeg,但是怎么配置都没有,这里就安装的包可以 sudo apt-get install imagemagick libmagickwand-dev 我的错误2:编译ZBar时,./configure之后make时提示如下错误。 usr/include/x86_64-linux-gnu/bits/stdio2.h:140:1: error: expected |
|
|
|
你正在撰写答案
如果你是对答案或其他答案精选点评或询问,请使用“评论”功能。
945 浏览 3 评论
rk1126实现BT601输入,输入不带IIC接口的驱动程序
2573 浏览 0 评论
2156 浏览 1 评论
3354 浏览 3 评论
RK3568 Android11让系统ntp校准时间生效,需要设置些什么
3651 浏览 1 评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-9-6 14:20 , Processed in 0.696501 second(s), Total 72, Slave 56 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191