Created
January 29, 2015 15:27
-
-
Save redlotus/0cfeb4987723293db134 to your computer and use it in GitHub Desktop.
how to compile zbar
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*note: depends=('imagemagick' 'libxv' 'python2' 'gtk2' 'qt4' 'pygtk' 'v4l-utils') (apply for archlinux, use proper package with other distro. Something linke libv4l-devel alter v4l-utils) | |
get package: | |
wget http://downloads.sourceforge.net/project/zbar/zbar/0.10/zbar-0.10.tar.bz2 | |
tar xvf zbar-0.10.tar.bz2 | |
cd zbar-0.10 | |
put v4l1.path to the zbar-0.10 directory too | |
patch -p1 < v4l1.patch | |
./configure --prefix=/usr --without-qt --without-gtk --without-python --without-java CFLAGS=-DNDEBUG | |
make | |
make install |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Thanks to Andy Weidenbaum <[email protected]> for providing this patch! | |
--- ./zbar/video/v4l1.c 2013-03-06 23:24:22.996336417 -0800 | |
+++ ./zbar/video/v4l1.c 2013-03-06 23:29:29.789662369 -0800 | |
@@ -41,7 +41,7 @@ | |
#ifdef HAVE_SYS_MMAN_H | |
# include <sys/mman.h> | |
#endif | |
-#include <linux/videodev.h> | |
+#include <libv4l1-videodev.h> | |
#include "video.h" | |
#include "image.h" | |
--- ./configure 2009-10-23 11:17:24.000000000 -0700 | |
+++ ./configure 2013-03-06 23:47:33.902966990 -0800 | |
@@ -18709,7 +18709,7 @@ | |
if test "x$enable_video" != "xno"; then | |
if test "x$win32" = "xno"; then | |
-for ac_header in linux/videodev.h | |
+for ac_header in libv4l1-videodev.h | |
do | |
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment