zbar icon indicating copy to clipboard operation
zbar copied to clipboard

Homebrew `brew install zbar` doesn't include zbarcam

Open sunknudsen opened this issue 3 years ago • 6 comments

First, thanks for maintaining ZBar.

Is it normal that zbarcam is not installed when running brew install zbar?

sunknudsen avatar Oct 10 '20 13:10 sunknudsen

@sunknudsen You could try removing this line from the formula.

jameshilliard avatar Oct 10 '20 16:10 jameshilliard

@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

sunknudsen avatar Oct 10 '20 20:10 sunknudsen

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.

mchehab avatar Oct 10 '20 21:10 mchehab

AVFoundation may be a good start. FFmpeg is using this framework.

jasp00 avatar Oct 10 '20 23:10 jasp00

@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.

sunknudsen avatar Oct 11 '20 11:10 sunknudsen

Try compiling on a virtual machine and see if that works

hdfsyu avatar Sep 04 '21 18:09 hdfsyu