Error message:
In file included from /usr/include/stdio.h:937:0, from zbar/debug.h:60, from zbar/scanner.c:34: /usr/include/x86_64-linux-gnu/bits/stdio2.h:140:1: error: expected identifier or ‘(’ before ‘{’ token
First, in execution/ When configuring, pay attention to the final output result to ensure that the normal execution is completed. The normal completion should have no error character, for example:
... configure: creating ./config.status config.status: creating Makefile config.status: creating zbar.pc config.status: creating zbar-gtk.pc config.status: creating zbar-qt.pc config.status: creating doc/doxygen.conf config.status: creating include/config.h config.status: executing depfiles commands config.status: executing libtool commands config.status: executing doc/version.xml commands config.status: executing doc/reldate.xml commands please verify that the detected configuration matches your expectations: ------------------------------------------------------------------------ X --with-x=yes pthreads --enable-pthread=yes v4l --enable-video=no => zbarcam video scanner will *NOT* be built jpeg --with-jpeg=yes Magick++ --with-imagemagick=yes Python --with-python=no GTK+ --with-gtk=yes => the PyGTK widget wrapper will *NOT* be built Qt4 --with-qt=no => the Qt4 widget will *NOT* be built
If the message is unable to find ImageMagick, install ImageMagick and libmagickwand dev
apt-get install imagemagick libmagickwand-dev
If: error: no suitable Python interpreter found
Note: there is no Python environment or the required versions of existing Python and ZBar are inconsistent. If Python is not involved, add the parameter — without python
If: configure: error: Test for video support failed
rebuild your kernel to include video4linux support or
configure –disable-video to skip building video support.
Add — Disable video parameter
For example, my final execution /Configure parameter:
./configure FLAGS="" --disable-video --without-python --without-qt
Similar Posts:
- [Solved] OBS Studio Use VLC video to play video error: Unhandled exception: c00000005
- Easygbs runs with an error of too many open files and cannot play the video stream. How to adjust?
- Git Error: The requested URL returned error: 403 Forbidden while accessing
- [Solved] Installation and error summary of ImageMagick windows 10
- Failed to execute ‘toDataURL’ on ‘HTMLCanvasElement’: Tainted canvases may not be exported [Solved]
- EasyRTC Error: “[ERR] mod_local_stream.c:880 Unknown source default” [How to Solve]
- [Solved] OpenCV 4 (C++) Error: “error: ‘CV_FOURCC’ was not declared in this scope”
- Ffmpeg operation not permitted error resolution process record
- MySQL Python error installed in pyenv 2.7 environment
- Error report of gomq installation macro: AC_ LIBTOOL_ WIN32_ DLL