mchehab / zbar

ZBar is an open source software suite for reading bar codes from various sources, including webcams. As its development stopped in 2012, I took the task of keeping it updated with the V4L2 API. This is the main repository for it. There's a clone at at LinuxTV.org, and another one at gitlab.
https://linuxtv.org/downloads/zbar/
GNU Lesser General Public License v2.1
975 stars 204 forks source link

cannot build on ubuntu 18 with zbarimg 0.23 #169

Closed p3x-robot closed 3 years ago

p3x-robot commented 3 years ago

Hello!

how are you? do you know how i can install the latest version in ubuntu 18? i only need the zbarimg with qr code, nothing else. is that possible?

p3x-robot commented 3 years ago

i use this settings:

./configure --with-x=disabled --enable-pthread=yes --enable-video=no --with-jpeg=no --with-imagemagick=no --with-python=no --with-gtk=no --with-qt=no

i get this output:

please verify that the detected configuration matches your expectations:
------------------------------------------------------------------------
gettext                yes
X                      --with-x=yes
pthreads               --enable-pthread=yes
doc                    --enable-doc=no
v4l                    --enable-video=no
jpeg                   --with-jpeg=no
Python                 --with-python=no 
GTK                    --with-gtk=no       
GObject introspection  --with-gir=no
Qt                     --with-qt=no         
Java                   --with-java=no
Dbus                   --with-dbus=yes
ImageMagick            --with-imagemagick=no
Enabled codes:         ean databar code128 code93 code39 codabar i25 qrcode sqcode
Disabled codes:        pdf417

        => zbarcam video scanner will *NOT* be built
        => libv4l will *NOT* be used
        => JPEG image conversions will *NOT* be supported
        => the zbarimg file scanner will *NOT* be built
        => GTK support will *NOT* be built
        => the Qt widget will *NOT* be built
        => the Java interface will *NOT* be built
        => the Java unit test will *NOT* be enabled

it says: the zbarimg file scanner will *NOT* be built how can i enable zbarimg?

besides i get this weird error:

root@ngerp:/home/patrikx3/work/zbar# make
make  all-recursive
make[1]: Entering directory '/home/patrikx3/work/zbar'
Making all in zbar
make[2]: Entering directory '/home/patrikx3/work/zbar/zbar'
  CC       libzbar_la-config.lo
  CC       libzbar_la-error.lo
  CC       libzbar_la-symbol.lo
  CC       libzbar_la-image.lo
  CC       libzbar_la-convert.lo
  CC       libzbar_la-processor.lo
  CC       processor/libzbar_la-lock.lo
  CC       libzbar_la-refcnt.lo
  CC       libzbar_la-window.lo
  CC       libzbar_la-video.lo
  CC       libzbar_la-img_scanner.lo
  CC       libzbar_la-scanner.lo
  CC       libzbar_la-decoder.lo
  CC       libzbar_la-misc.lo
  CC       decoder/libzbar_la-ean.lo
  CC       decoder/libzbar_la-databar.lo
  CC       decoder/libzbar_la-code128.lo
  CC       decoder/libzbar_la-code93.lo
  CC       decoder/libzbar_la-code39.lo
  CC       decoder/libzbar_la-codabar.lo
  CC       decoder/libzbar_la-i25.lo
  CC       decoder/libzbar_la-qr_finder.lo
  CC       qrcode/libzbar_la-qrdec.lo
  CC       qrcode/libzbar_la-qrdectxt.lo
  CC       qrcode/libzbar_la-rs.lo
  CC       qrcode/libzbar_la-isaac.lo
  CC       qrcode/libzbar_la-bch15_5.lo
  CC       qrcode/libzbar_la-binarize.lo
  CC       qrcode/libzbar_la-util.lo
  CC       libzbar_la-sqcode.lo
  CC       decoder/libzbar_la-sq_finder.lo
  CC       processor/libzbar_la-posix.lo
  CC       video/libzbar_la-null.lo
  CC       processor/libzbar_la-x.lo
  CC       window/libzbar_la-x.lo
  CC       window/libzbar_la-ximage.lo
  CCLD     libzbar.la
copying selected object files to avoid basename conflicts...
ar: `u' modifier ignored since `D' is the default (see `U')
make[2]: Leaving directory '/home/patrikx3/work/zbar/zbar'
Making all in po
make[2]: Entering directory '/home/patrikx3/work/zbar/po'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/patrikx3/work/zbar/po'
Making all in .
make[2]: Entering directory '/home/patrikx3/work/zbar'
make[2]: Nothing to be done for 'all-am'.
make[2]: Leaving directory '/home/patrikx3/work/zbar'
make[1]: Leaving directory '/home/patrikx3/work/zbar'
root@ngerp:/home/patrikx3/work/zbar# 

is this an error: copying selected object files to avoid basename conflicts... ?

p3x-robot commented 3 years ago

if anyone want to build, only for the zbarimg without camera and on ubuntu 18, here you go:

sudo apt-get install -y autoconf automake autotools-dev libdbus-1-dev pkg-config xmlto imagemagick libmagickwand-dev gettext libtool

git clone https://github.com/mchehab/zbar
cd zbar
git checkout tags/0.23.92
autoreconf -vfi
./configure --with-x=disabled --enable-pthread=yes --enable-video=no --with-jpeg=no --with-imagemagick=yes --with-python=no --with-gtk=no --with-qt=no
make
make install