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
离线
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'
离线
# BR2_PACKAGE_ZBAR is not set
# BR2_PACKAGE_ZXING_CPP is not set
发现buildroot居然带zbar, 还带zxing-cpp.
在 Target packages > Libraries > Graphics 里面开启,
试一试看能不能完成编译
离线