also missing a package() function
Search Criteria
Package Details: zbar-gtk 0.10-1
Package Actions
- View PKGBUILD
- Download tarball
- Search wiki
- Flagged out-of-date (2012-01-25)
| Package Base: | zbar-gtk |
|---|---|
| Description: | An open source software suite for reading bar codes from various sources |
| Upstream URL: | http://zbar.sourceforge.net/ |
| Category: | multimedia |
| Licenses: | |
| Submitter: | None |
| Maintainer: | None |
| Last Packager: | None |
| Votes: | 9 |
| First Submitted: | 2010-01-12 10:35 |
| Last Updated: | 2010-01-12 10:35 |
Dependencies (2)
Required by (0)
Sources
Latest Comments
Comment by GI_Jack
Comment by GI_Jack
should have provides,replaces and depends all "zbar"
Comment by intgr
I have created a "zbar" package to replace this: https://aur.archlinux.org/packages/zbar/ , which includes both gtk2 and qt4 libraries and Python bindings.
Comment by intgr
Please disown if you don't maintain this package.
Comment by milkmiruku
Hmm, I'm getting;
milk@silver:~ $ p zbar-gtk
Aur Targets (1): zbar-gtk
Proceed with installation? [Y/n]
==> ERROR: Invalid syntax for optdepend : 'python : python library'
The build failed.
Comment by capoeira
@jdetrey
I tried your PKGBUILD
but I get
"sed: nenhum arquivo de entrada"
which means: "sed: no entry file"
Comment by jdetrey
Yup. The macro dprintf, defined in zbar/debug.h, conflicts with dprintf(3).
Adding the following line in the PKGBUILD should do the trick:
sed -i 's/dprintf/debug_printf/g' `grep -lr dprintf ${srcdir}/zbar-${pkgver}/`
Patched PKGBUILD here:
http://pastebin.com/66a3ZHh3
Comment by crocowhile
Any idea of why this fails compilation?
I get the following error with the PKGBUILD provided by mutoso:
/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -MT zbar/zbar_libzbar_la-scanner.lo -MD -MP -MF zbar/.deps/zbar_libzbar_la-scanner.Tpo -c -o zbar/zbar_libzbar_la-scanner.lo `test -f 'zbar/scanner.c' || echo './'`zbar/scanner.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -MT zbar/zbar_libzbar_la-scanner.lo -MD -MP -MF zbar/.deps/zbar_libzbar_la-scanner.Tpo -c zbar/scanner.c -fPIC -DPIC -o zbar/.libs/zbar_libzbar_la-scanner.o
In file included from /usr/include/stdio.h:937:0,
from zbar/debug.h:60,
from zbar/scanner.c:34:
/usr/include/bits/stdio2.h:140:1: error: expected identifier or ‘(’ before ‘{’ token
make[1]: *** [zbar/zbar_libzbar_la-scanner.lo] Error 1
make[1]: Leaving directory `/tmp/zbar-gtk/src/zbar-0.10'
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
Aborting...
Comment by mutoso
Here's a fixed PKGBUILD:
http://pastebin.com/qsxYKPhz
Comment by Dieter_be
15:37:36 dieter@Gi zbar-gtk grep -i error src/zbar-0.10/config.log
gcc: error: unrecognized option '-V'
gcc: fatal error: no input files
conftest.c:10:28: fatal error: ac_nonexistent.h: No such file or directory
conftest.c:10:28: fatal error: ac_nonexistent.h: No such file or directory
| /* Override any GCC internal prototype to avoid an error.
| /* Override any GCC internal prototype to avoid an error.
| /* Override any GCC internal prototype to avoid an error.
gcc: error: unrecognized option '-V'
gcc: fatal error: no input files
g++: error: unrecognized option '-V'
g++: fatal error: no input files
g++: error: unrecognized option '-V'
g++: fatal error: no input files
conftest.cpp:27:28: fatal error: ac_nonexistent.h: No such file or directory
conftest.cpp:27:28: fatal error: ac_nonexistent.h: No such file or directory
| /* Override any GCC internal prototype to avoid an error.
conftest.c:71:28: fatal error: linux/videodev.h: No such file or directory
conftest.c:38:28: fatal error: linux/videodev.h: No such file or directory
configure:18859: error: in `/home/dieter/zbar-gtk/src/zbar-0.10':
configure:18864: error: test for video support failed!
15:37:38 dieter@Gi zbar-gtk grep -i warning src/zbar-0.10/config.log
cc1: warning: command line option '-fno-rtti' is valid for C++/ObjC++ but not for C [enabled by default]
cc1: warning: command line option '-fno-rtti' is valid for C++/ObjC++ but not for C [enabled by default]
conftest.c:(.text.startup+0x9): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
Comment by Dieter_be
after fixing the silly optdepend error I get:
checking linux/videodev.h presence... no
checking for linux/videodev.h... no
configure: error: in `/home/dieter/zbar-gtk/src/zbar-0.10':
configure: error: test for video support failed!
rebuild your kernel to include video4linux support or
configure --disable-video to skip building video support.
See `config.log' for more details.
==> ERROR: A failure occurred in build().
Aborting...
Comment by Maxr
ERROR: Invalid syntax for optdepend : 'python : python library'
Comment by eworm
You should add "conflicts=(zbar-qt)".
Comment by chenxiaolong
Please see my comment on the zbar-qt page to fix the video4linux error and optdepends error: http://aur.archlinux.org/packages.php?ID=33528
Hint: Press Control + F and search for "Sat, 30 Jul 2011 20:05:37 +0000"
Comment by doorknob60
checking linux/videodev.h usability... no
checking linux/videodev.h presence... no
checking for linux/videodev.h... no
configure: error: in `/tmp/yaourt-tmp-austin/aur-zbar-qt/src/zbar-0.10':
configure: error: test for video support failed!
rebuild your kernel to include video4linux support or
configure --disable-video to skip building video support.
Don't think there's anything wrong with my kernel that needs recompiling, just using the stock kernel, and webcam stuff works in other apps...and maybe it's just not looking for videodev.h in the right place:
austin@austin-desktop ~ % locate videodev.h
/usr/include/libv4l1-videodev.h
/usr/src/linux-2.6.38-ARCH/drivers/staging/usbvideo/videodev.h
Oh and also:
==> ERROR: Invalid syntax for optdepend : 'python : python library'
Comment by orbisvicis
Shouldn't GTK2 be a dependency and PyGTK an optdepends?
And (!libtool) be added as an option?
Also split build() and package() is apparently "a la mode".
http://aur.pastebin.com/y7jriT6b