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

Build error: no man-pages build. #146

Closed sassy-crick closed 3 years ago

sassy-crick commented 3 years ago

I am trying to build the latest zbar-0.23.1 with GCC-10.2.0. I am using:

$ ./configure --with-gtk=auto --with-python=python3 --prefix=/foo/baa/zbar-0.23.1

The configure step works well:

please verify that the detected configuration matches your expectations:


gettext yes X --with-x=yes pthreads --enable-pthread=yes doc --enable-doc=yes v4l --enable-video=yes jpeg --with-jpeg=yes Python --with-python=python3 python3.8 GTK --with-gtk=gtk3 Gtk3.24.23 GObject introspection --with-gir=no Qt --with-qt=no
Java --with-java=yes Dbus --with-dbus=yes ImageMagick --with-imagemagick=check Enabled codes: ean databar code128 code93 code39 codabar i25 qrcode sqcode Disabled codes: pdf417 JAVA_HOME /opt/software/build/software/Java/11.0.2

    => libv4l will *NOT* be used
    => the Qt widget will *NOT* be built
    => the Java unit test will *NOT* be enabled

However, make install fails here:


/usr/bin/install -c -m 644 include/zbar.h '/tmp/zbar-0.23.1/include' make[4]: Entering directory '/home/sassy/easybuild/OTPClient/zbar/zbar-0.23.1' : --searchpath /home/sassy/easybuild/OTPClient/zbar/zbar-0.23.1/doc -m /home/sassy/easybuild/OTPClient/zbar/zbar-0.23.1/doc/style.xsl --skip-validation -o doc/man man doc/manual.xml make[4]: Leaving directory '/home/sassy/easybuild/OTPClient/zbar/zbar-0.23.1' make[4]: Entering directory '/home/sassy/easybuild/OTPClient/zbar/zbar-0.23.1' : --searchpath /home/sassy/easybuild/OTPClient/zbar/zbar-0.23.1/doc -m /home/sassy/easybuild/OTPClient/zbar/zbar-0.23.1/doc/style.xsl --skip-validation -o doc/man man doc/manual.xml make[4]: Leaving directory '/home/sassy/easybuild/OTPClient/zbar/zbar-0.23.1' /bin/mkdir -p '/tmp/zbar-0.23.1/share/man/man1' /usr/bin/install -c -m 644 ./doc/man/zbarimg.1 ./doc/man/zbarcam.1 '/tmp/zbar-0.23.1/share/man/man1' /usr/bin/install: cannot stat './doc/man/zbarimg.1': No such file or directory /usr/bin/install: cannot stat './doc/man/zbarcam.1': No such file or directory make[3]: [Makefile:1722: install-man1] Error 1 make[3]: Leaving directory '/home/sassy/easybuild/OTPClient/zbar/zbar-0.23.1' make[2]: [Makefile:2209: install-am] Error 2 make[2]: Leaving directory '/home/sassy/easybuild/OTPClient/zbar/zbar-0.23.1' make[1]: [Makefile:1897: install-recursive] Error 1 make[1]: Leaving directory '/home/sassy/easybuild/OTPClient/zbar/zbar-0.23.1' make: [Makefile:2203: install] Error 2


(ignore I am trying to install it in /tmp/zbar-0.23.1 this is for debugging only)

Any idea where I get it wrong?

Thanks

sassy-crick commented 3 years ago

Update: the problem was a missing system xmlto. However, one would have thought as configure is checking for that, and if it is not installed the man-pages will simply not being build, rather then trying to build them and then failing when make install is executed.

sassy-crick commented 3 years ago

Hi @berkaytuna

yes, thanks. What I am after is that config should pick that up and not try to install the man-pages and then fails. I wrote an EasyBuild Configuration (EC) file for that and this is where I tripped over that. That is what I am after in the long run. :-)

Jörg

mchehab commented 3 years ago

What I am after is that config should pick that up and not try to install the man-pages and then fails.

Fair enough. I'm working on a patchset to improve the configure script to better handle things like this.

sassy-crick commented 3 years ago

Happy to try the patch and update the EC once it is done. Just let me know. Thanks for your help.

mchehab commented 3 years ago

Happy to try the patch and update the EC once it is done. Just let me know. Thanks for your help.

Patches applied. Please test.