您尚未登录。

楼主 #1 2018-01-16 17:10:05

bugfix
会员
注册时间: 2017-11-22
已发帖子: 125
积分: 125

正在ARM9上弄二维码识别, 转个编译的帖子

https://my.oschina.net/u/115346/blog/480854

在arm平台交叉编译ZBar开源软件, 并将显示改成直接在Framebuffer设备显示

git clone https://github.com/ZBar/ZBar.git
cd ZBar

libtoolize --copy --force --install
aclocal
autoconf
autoheader
automake -a -c -f --foreign
# 请根据实际情况修改CC和--prefix
CC=/path/to/arm-linux-gnueabi-gcc ./configure --host=arm-linux --without-imagemagick --without-python --without-qt --without-java --without-gtk --prefix=/path/to/rootfs
make
make install

离线

#2 2018-01-16 17:30:19

daydayup
会员
注册时间: 2017-10-09
已发帖子: 343
积分: 343

Re: 正在ARM9上弄二维码识别, 转个编译的帖子

automake 失败, Linux折腾真麻烦

# automake -a -c -f --foreign
automake: warnings are treated as errors
gtk/Makefile.am.inc:13: warning: '%'-style pattern rules are a GNU make extension
Makefile.am:31:   'gtk/Makefile.am.inc' included from here
gtk/Makefile.am.inc:17: warning: '%'-style pattern rules are a GNU make extension
Makefile.am:31:   'gtk/Makefile.am.inc' included from here
pygtk/Makefile.am.inc:20: warning: '%'-style pattern rules are a GNU make extension
Makefile.am:34:   'pygtk/Makefile.am.inc' included from here
qt/Makefile.am.inc:11: warning: '%'-style pattern rules are a GNU make extension
Makefile.am:38:   'qt/Makefile.am.inc' included from here
qt/Makefile.am.inc:14: warning: '%'-style pattern rules are a GNU make extension
Makefile.am:38:   'qt/Makefile.am.inc' included from here
test/Makefile.am.inc:64: warning: '%'-style pattern rules are a GNU make extension
Makefile.am:47:   'test/Makefile.am.inc' included from here
Makefile.am:69: warning: '%'-style pattern rules are a GNU make extension
Makefile.am:72: warning: '%'-style pattern rules are a GNU make extension
/usr/share/automake-1.14/am/ltlibrary.am: warning: 'gtk/libzbargtk.la': linking libtool libraries using a non-POSIX
/usr/share/automake-1.14/am/ltlibrary.am: archiver requires 'AM_PROG_AR' in 'configure.ac'
Makefile.am:31:   'gtk/Makefile.am.inc' included from here
gtk/Makefile.am.inc:1:   while processing Libtool library 'gtk/libzbargtk.la'
/usr/share/automake-1.14/am/ltlibrary.am: warning: 'plugin/libzbarplugin.la': linking libtool libraries using a non-POSIX
/usr/share/automake-1.14/am/ltlibrary.am: archiver requires 'AM_PROG_AR' in 'configure.ac'
Makefile.am:45:   'plugin/Makefile.am.inc' included from here
plugin/Makefile.am.inc:1:   while processing Libtool library 'plugin/libzbarplugin.la'
/usr/share/automake-1.14/am/ltlibrary.am: warning: 'pygtk/zbarpygtk.la': linking libtool libraries using a non-POSIX
/usr/share/automake-1.14/am/ltlibrary.am: archiver requires 'AM_PROG_AR' in 'configure.ac'
Makefile.am:34:   'pygtk/Makefile.am.inc' included from here
pygtk/Makefile.am.inc:1:   while processing Libtool library 'pygtk/zbarpygtk.la'
/usr/share/automake-1.14/am/ltlibrary.am: warning: 'python/zbar.la': linking libtool libraries using a non-POSIX
/usr/share/automake-1.14/am/ltlibrary.am: archiver requires 'AM_PROG_AR' in 'configure.ac'
Makefile.am:28:   'python/Makefile.am.inc' included from here
python/Makefile.am.inc:1:   while processing Libtool library 'python/zbar.la'
/usr/share/automake-1.14/am/ltlibrary.am: warning: 'qt/libzbarqt.la': linking libtool libraries using a non-POSIX
/usr/share/automake-1.14/am/ltlibrary.am: archiver requires 'AM_PROG_AR' in 'configure.ac'
Makefile.am:38:   'qt/Makefile.am.inc' included from here
qt/Makefile.am.inc:1:   while processing Libtool library 'qt/libzbarqt.la'
/usr/share/automake-1.14/am/ltlibrary.am: warning: 'zbar/libzbar.la': linking libtool libraries using a non-POSIX
/usr/share/automake-1.14/am/ltlibrary.am: archiver requires 'AM_PROG_AR' in 'configure.ac'
Makefile.am:5:   while processing Libtool library 'zbar/libzbar.la'
/usr/share/automake-1.14/am/ltlibrary.am: warning: 'libzbarjni.la': linking libtool libraries using a non-POSIX
/usr/share/automake-1.14/am/ltlibrary.am: archiver requires 'AM_PROG_AR' in 'configure.ac'
java/Makefile.am:6:   while processing Libtool library 'libzbarjni.la'

离线

#3 2018-01-16 17:32:03

daydayup
会员
注册时间: 2017-10-09
已发帖子: 343
积分: 343

Re: 正在ARM9上弄二维码识别, 转个编译的帖子

# BR2_PACKAGE_ZBAR is not set
# BR2_PACKAGE_ZXING_CPP is not set

发现buildroot居然带zbar, 还带zxing-cpp.

在 Target packages > Libraries > Graphics 里面开启,
试一试看能不能完成编译

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn