zbar
zbar copied to clipboard
Homebrew `brew install zbar` doesn't include zbarcam
First, thanks for maintaining ZBar.
Is it normal that zbarcam
is not installed when running brew install zbar
?
@sunknudsen You could try removing this line from the formula.
@jameshilliard Thanks for your help... unfortunately that doesn't work.
==> ./configure --prefix=/usr/local/Cellar/zbar/0.23.1_10 --without-python --wit
Last 15 lines from /Users/sunknudsen/Library/Logs/Homebrew/zbar/02.configure:
checking for pthread_create in -lpthread... yes
checking linux/videodev.h usability... no
checking linux/videodev.h presence... no
checking for linux/videodev.h... no
checking linux/videodev2.h usability... no
checking linux/videodev2.h presence... no
checking for linux/videodev2.h... no
checking libv4l2.h usability... no
checking libv4l2.h presence... no
checking for libv4l2.h... no
configure: error: in `/private/tmp/zbar-20201010-5261-8g44zn/zbar-0.23.1':
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
I'm assuming that you want to build it for Mac OS (and/or iOS), right?
Currently, zbarcam
knows only those ways to talk with camera devices:
- On Windows: DirectShow (Windows) or VFW (Windows);
- On Linux: libv4l, V4L2 (and V4L1, although this is very old)
Currently, there's no support for talking with the camera/video API on Mac OS/iOS.
If someone wants to add support for it, this would be a great addition to ZBar.
AVFoundation may be a good start. FFmpeg is using this framework.
@mchehab Yes, macOS...
If someone wants to add support for it, this would be a great addition to ZBar.
That would be amazing!
@jasp00 Interesting. Thanks for sharing.
Hope someone with the right skill set figures out a way to support zbarcam on macOS.
Try compiling on a virtual machine and see if that works