编译安装 zbar 时两次 make 带来的惊喜
为了装 php 的条形码扩展模块 php-zbarcode,先装了一天的 ImageMagick 和 zbar。也许和我装的 Ubuntu 17.10 的有版本兼容问题吧,总之什么毛病都有,apt 不行,PPA 源也不行,编译安装还有几处源代码出错,装不上~
折腾了大半天之后终于把 ImageMagick 编译安装好了~~而在编译安装 zbar 的时候,值得微笑的事就来了。参考了网上的很多资料,解决了大多问题,比较重要的是在 zbar 执行 ./configure 配置的时候会找不到 ./wand/ 目录下的头文件,加两个软链接指向本地库就可以
sudo ln -s /usr/local/include/ImageMagick-7 /usr/local/include/ImageMagick
sudo ln -s /usr/local/include/ImageMagick-7/MagickWand /usr/local/include/wand
最后剩下一个,就是在 make 编译的时候始终报错,错的地方有点多~~
mingc@mingc-GE60-2PL:~/Downloads/qrcode/zbar-0.10$ make
make all-am
make[1]: Entering directory '/home/mingc/Downloads/qrcode/zbar-0.10'
/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/zbar_libzbar_la-config.lo -MD -MP -MF zbar/.deps/zbar_libzbar_la-config.Tpo -c -o zbar/zbar_libzbar_la-config.lo `test -f 'zbar/config.c' || echo './'`zbar/config.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/zbar_libzbar_la-config.lo -MD -MP -MF zbar/.deps/zbar_libzbar_la-config.Tpo -c zbar/config.c -fPIC -DPIC -o zbar/.libs/zbar_libzbar_la-config.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/zbar_libzbar_la-config.lo -MD -MP -MF zbar/.deps/zbar_libzbar_la-config.Tpo -c zbar/config.c -o zbar/zbar_libzbar_la-config.o >/dev/null 2>&1
mv -f zbar/.deps/zbar_libzbar_la-config.Tpo zbar/.deps/zbar_libzbar_la-config.Plo
/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/zbar_libzbar_la-error.lo -MD -MP -MF zbar/.deps/zbar_libzbar_la-error.Tpo -c -o zbar/zbar_libzbar_la-error.lo `test -f 'zbar/error.c' || echo './'`zbar/error.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/zbar_libzbar_la-error.lo -MD -MP -MF zbar/.deps/zbar_libzbar_la-error.Tpo -c zbar/error.c -fPIC -DPIC -o zbar/.libs/zbar_libzbar_la-error.o
zbar/error.c:39:19: warning: duplicate ‘const’ declaration specifier [-Wduplicate-decl-specifier]
static const char const * err_str[] = {
^~~~~
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/zbar_libzbar_la-error.lo -MD -MP -MF zbar/.deps/zbar_libzbar_la-error.Tpo -c zbar/error.c -o zbar/zbar_libzbar_la-error.o >/dev/null 2>&1
mv -f zbar/.deps/zbar_libzbar_la-error.Tpo zbar/.deps/zbar_libzbar_la-error.Plo
/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/zbar_libzbar_la-symbol.lo -MD -MP -MF zbar/.deps/zbar_libzbar_la-symbol.Tpo -c -o zbar/zbar_libzbar_la-symbol.lo `test -f 'zbar/symbol.c' || echo './'`zbar/symbol.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/zbar_libzbar_la-symbol.lo -MD -MP -MF zbar/.deps/zbar_libzbar_la-symbol.Tpo -c zbar/symbol.c -fPIC -DPIC -o zbar/.libs/zbar_libzbar_la-symbol.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/zbar_libzbar_la-symbol.lo -MD -MP -MF zbar/.deps/zbar_libzbar_la-symbol.Tpo -c zbar/symbol.c -o zbar/zbar_libzbar_la-symbol.o >/dev/null 2>&1
mv -f zbar/.deps/zbar_libzbar_la-symbol.Tpo zbar/.deps/zbar_libzbar_la-symbol.Plo
/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/zbar_libzbar_la-image.lo -MD -MP -MF zbar/.deps/zbar_libzbar_la-image.Tpo -c -o zbar/zbar_libzbar_la-image.lo `test -f 'zbar/image.c' || echo './'`zbar/image.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/zbar_libzbar_la-image.lo -MD -MP -MF zbar/.deps/zbar_libzbar_la-image.Tpo -c zbar/image.c -fPIC -DPIC -o zbar/.libs/zbar_libzbar_la-image.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/zbar_libzbar_la-image.lo -MD -MP -MF zbar/.deps/zbar_libzbar_la-image.Tpo -c zbar/image.c -o zbar/zbar_libzbar_la-image.o >/dev/null 2>&1
mv -f zbar/.deps/zbar_libzbar_la-image.Tpo zbar/.deps/zbar_libzbar_la-image.Plo
/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/zbar_libzbar_la-convert.lo -MD -MP -MF zbar/.deps/zbar_libzbar_la-convert.Tpo -c -o zbar/zbar_libzbar_la-convert.lo `test -f 'zbar/convert.c' || echo './'`zbar/convert.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/zbar_libzbar_la-convert.lo -MD -MP -MF zbar/.deps/zbar_libzbar_la-convert.Tpo -c zbar/convert.c -fPIC -DPIC -o zbar/.libs/zbar_libzbar_la-convert.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/zbar_libzbar_la-convert.lo -MD -MP -MF zbar/.deps/zbar_libzbar_la-convert.Tpo -c zbar/convert.c -o zbar/zbar_libzbar_la-convert.o >/dev/null 2>&1
mv -f zbar/.deps/zbar_libzbar_la-convert.Tpo zbar/.deps/zbar_libzbar_la-convert.Plo
/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/zbar_libzbar_la-processor.lo -MD -MP -MF zbar/.deps/zbar_libzbar_la-processor.Tpo -c -o zbar/zbar_libzbar_la-processor.lo `test -f 'zbar/processor.c' || echo './'`zbar/processor.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/zbar_libzbar_la-processor.lo -MD -MP -MF zbar/.deps/zbar_libzbar_la-processor.Tpo -c zbar/processor.c -fPIC -DPIC -o zbar/.libs/zbar_libzbar_la-processor.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/zbar_libzbar_la-processor.lo -MD -MP -MF zbar/.deps/zbar_libzbar_la-processor.Tpo -c zbar/processor.c -o zbar/zbar_libzbar_la-processor.o >/dev/null 2>&1
mv -f zbar/.deps/zbar_libzbar_la-processor.Tpo zbar/.deps/zbar_libzbar_la-processor.Plo
/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/processor/zbar_libzbar_la-lock.lo -MD -MP -MF zbar/processor/.deps/zbar_libzbar_la-lock.Tpo -c -o zbar/processor/zbar_libzbar_la-lock.lo `test -f 'zbar/processor/lock.c' || echo './'`zbar/processor/lock.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/processor/zbar_libzbar_la-lock.lo -MD -MP -MF zbar/processor/.deps/zbar_libzbar_la-lock.Tpo -c zbar/processor/lock.c -fPIC -DPIC -o zbar/processor/.libs/zbar_libzbar_la-lock.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/processor/zbar_libzbar_la-lock.lo -MD -MP -MF zbar/processor/.deps/zbar_libzbar_la-lock.Tpo -c zbar/processor/lock.c -o zbar/processor/zbar_libzbar_la-lock.o >/dev/null 2>&1
mv -f zbar/processor/.deps/zbar_libzbar_la-lock.Tpo zbar/processor/.deps/zbar_libzbar_la-lock.Plo
/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/zbar_libzbar_la-refcnt.lo -MD -MP -MF zbar/.deps/zbar_libzbar_la-refcnt.Tpo -c -o zbar/zbar_libzbar_la-refcnt.lo `test -f 'zbar/refcnt.c' || echo './'`zbar/refcnt.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/zbar_libzbar_la-refcnt.lo -MD -MP -MF zbar/.deps/zbar_libzbar_la-refcnt.Tpo -c zbar/refcnt.c -fPIC -DPIC -o zbar/.libs/zbar_libzbar_la-refcnt.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/zbar_libzbar_la-refcnt.lo -MD -MP -MF zbar/.deps/zbar_libzbar_la-refcnt.Tpo -c zbar/refcnt.c -o zbar/zbar_libzbar_la-refcnt.o >/dev/null 2>&1
mv -f zbar/.deps/zbar_libzbar_la-refcnt.Tpo zbar/.deps/zbar_libzbar_la-refcnt.Plo
/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/zbar_libzbar_la-window.lo -MD -MP -MF zbar/.deps/zbar_libzbar_la-window.Tpo -c -o zbar/zbar_libzbar_la-window.lo `test -f 'zbar/window.c' || echo './'`zbar/window.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/zbar_libzbar_la-window.lo -MD -MP -MF zbar/.deps/zbar_libzbar_la-window.Tpo -c zbar/window.c -fPIC -DPIC -o zbar/.libs/zbar_libzbar_la-window.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/zbar_libzbar_la-window.lo -MD -MP -MF zbar/.deps/zbar_libzbar_la-window.Tpo -c zbar/window.c -o zbar/zbar_libzbar_la-window.o >/dev/null 2>&1
mv -f zbar/.deps/zbar_libzbar_la-window.Tpo zbar/.deps/zbar_libzbar_la-window.Plo
/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/zbar_libzbar_la-video.lo -MD -MP -MF zbar/.deps/zbar_libzbar_la-video.Tpo -c -o zbar/zbar_libzbar_la-video.lo `test -f 'zbar/video.c' || echo './'`zbar/video.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/zbar_libzbar_la-video.lo -MD -MP -MF zbar/.deps/zbar_libzbar_la-video.Tpo -c zbar/video.c -fPIC -DPIC -o zbar/.libs/zbar_libzbar_la-video.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/zbar_libzbar_la-video.lo -MD -MP -MF zbar/.deps/zbar_libzbar_la-video.Tpo -c zbar/video.c -o zbar/zbar_libzbar_la-video.o >/dev/null 2>&1
mv -f zbar/.deps/zbar_libzbar_la-video.Tpo zbar/.deps/zbar_libzbar_la-video.Plo
/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/zbar_libzbar_la-img_scanner.lo -MD -MP -MF zbar/.deps/zbar_libzbar_la-img_scanner.Tpo -c -o zbar/zbar_libzbar_la-img_scanner.lo `test -f 'zbar/img_scanner.c' || echo './'`zbar/img_scanner.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/zbar_libzbar_la-img_scanner.lo -MD -MP -MF zbar/.deps/zbar_libzbar_la-img_scanner.Tpo -c zbar/img_scanner.c -fPIC -DPIC -o zbar/.libs/zbar_libzbar_la-img_scanner.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/zbar_libzbar_la-img_scanner.lo -MD -MP -MF zbar/.deps/zbar_libzbar_la-img_scanner.Tpo -c zbar/img_scanner.c -o zbar/zbar_libzbar_la-img_scanner.o >/dev/null 2>&1
mv -f zbar/.deps/zbar_libzbar_la-img_scanner.Tpo zbar/.deps/zbar_libzbar_la-img_scanner.Plo
/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/zbar_libzbar_la-scanner.lo -MD -MP -MF zbar/.deps/zbar_libzbar_la-scanner.Tpo -c -o zbar/zbar_libzbar_la-scanner.lo `test -f 'zbar/scanner.c' || echo './'`zbar/scanner.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/zbar_libzbar_la-scanner.lo -MD -MP -MF zbar/.deps/zbar_libzbar_la-scanner.Tpo -c zbar/scanner.c -fPIC -DPIC -o zbar/.libs/zbar_libzbar_la-scanner.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/zbar_libzbar_la-scanner.lo -MD -MP -MF zbar/.deps/zbar_libzbar_la-scanner.Tpo -c zbar/scanner.c -o zbar/zbar_libzbar_la-scanner.o >/dev/null 2>&1
mv -f zbar/.deps/zbar_libzbar_la-scanner.Tpo zbar/.deps/zbar_libzbar_la-scanner.Plo
/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/zbar_libzbar_la-decoder.lo -MD -MP -MF zbar/.deps/zbar_libzbar_la-decoder.Tpo -c -o zbar/zbar_libzbar_la-decoder.lo `test -f 'zbar/decoder.c' || echo './'`zbar/decoder.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/zbar_libzbar_la-decoder.lo -MD -MP -MF zbar/.deps/zbar_libzbar_la-decoder.Tpo -c zbar/decoder.c -fPIC -DPIC -o zbar/.libs/zbar_libzbar_la-decoder.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/zbar_libzbar_la-decoder.lo -MD -MP -MF zbar/.deps/zbar_libzbar_la-decoder.Tpo -c zbar/decoder.c -o zbar/zbar_libzbar_la-decoder.o >/dev/null 2>&1
mv -f zbar/.deps/zbar_libzbar_la-decoder.Tpo zbar/.deps/zbar_libzbar_la-decoder.Plo
/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/decoder/zbar_libzbar_la-ean.lo -MD -MP -MF zbar/decoder/.deps/zbar_libzbar_la-ean.Tpo -c -o zbar/decoder/zbar_libzbar_la-ean.lo `test -f 'zbar/decoder/ean.c' || echo './'`zbar/decoder/ean.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/decoder/zbar_libzbar_la-ean.lo -MD -MP -MF zbar/decoder/.deps/zbar_libzbar_la-ean.Tpo -c zbar/decoder/ean.c -fPIC -DPIC -o zbar/decoder/.libs/zbar_libzbar_la-ean.o
zbar/decoder/ean.c: In function ‘ean_part_end4’:
zbar/decoder/ean.c:245:13: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses]
if(!par == fwd) {
^~
zbar/decoder/ean.c:245:8: note: add parentheses around left hand side expression to silence this warning
if(!par == fwd) {
^~~~
( )
zbar/decoder/ean.c: In function ‘ean_part_end7’:
zbar/decoder/ean.c:294:13: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses]
if(!par == fwd) {
^~
zbar/decoder/ean.c:294:8: note: add parentheses around left hand side expression to silence this warning
if(!par == fwd) {
^~~~
( )
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/decoder/zbar_libzbar_la-ean.lo -MD -MP -MF zbar/decoder/.deps/zbar_libzbar_la-ean.Tpo -c zbar/decoder/ean.c -o zbar/decoder/zbar_libzbar_la-ean.o >/dev/null 2>&1
mv -f zbar/decoder/.deps/zbar_libzbar_la-ean.Tpo zbar/decoder/.deps/zbar_libzbar_la-ean.Plo
/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/decoder/zbar_libzbar_la-code128.lo -MD -MP -MF zbar/decoder/.deps/zbar_libzbar_la-code128.Tpo -c -o zbar/decoder/zbar_libzbar_la-code128.lo `test -f 'zbar/decoder/code128.c' || echo './'`zbar/decoder/code128.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/decoder/zbar_libzbar_la-code128.lo -MD -MP -MF zbar/decoder/.deps/zbar_libzbar_la-code128.Tpo -c zbar/decoder/code128.c -fPIC -DPIC -o zbar/decoder/.libs/zbar_libzbar_la-code128.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/decoder/zbar_libzbar_la-code128.lo -MD -MP -MF zbar/decoder/.deps/zbar_libzbar_la-code128.Tpo -c zbar/decoder/code128.c -o zbar/decoder/zbar_libzbar_la-code128.o >/dev/null 2>&1
mv -f zbar/decoder/.deps/zbar_libzbar_la-code128.Tpo zbar/decoder/.deps/zbar_libzbar_la-code128.Plo
/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/decoder/zbar_libzbar_la-code39.lo -MD -MP -MF zbar/decoder/.deps/zbar_libzbar_la-code39.Tpo -c -o zbar/decoder/zbar_libzbar_la-code39.lo `test -f 'zbar/decoder/code39.c' || echo './'`zbar/decoder/code39.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/decoder/zbar_libzbar_la-code39.lo -MD -MP -MF zbar/decoder/.deps/zbar_libzbar_la-code39.Tpo -c zbar/decoder/code39.c -fPIC -DPIC -o zbar/decoder/.libs/zbar_libzbar_la-code39.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/decoder/zbar_libzbar_la-code39.lo -MD -MP -MF zbar/decoder/.deps/zbar_libzbar_la-code39.Tpo -c zbar/decoder/code39.c -o zbar/decoder/zbar_libzbar_la-code39.o >/dev/null 2>&1
mv -f zbar/decoder/.deps/zbar_libzbar_la-code39.Tpo zbar/decoder/.deps/zbar_libzbar_la-code39.Plo
/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/decoder/zbar_libzbar_la-i25.lo -MD -MP -MF zbar/decoder/.deps/zbar_libzbar_la-i25.Tpo -c -o zbar/decoder/zbar_libzbar_la-i25.lo `test -f 'zbar/decoder/i25.c' || echo './'`zbar/decoder/i25.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/decoder/zbar_libzbar_la-i25.lo -MD -MP -MF zbar/decoder/.deps/zbar_libzbar_la-i25.Tpo -c zbar/decoder/i25.c -fPIC -DPIC -o zbar/decoder/.libs/zbar_libzbar_la-i25.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/decoder/zbar_libzbar_la-i25.lo -MD -MP -MF zbar/decoder/.deps/zbar_libzbar_la-i25.Tpo -c zbar/decoder/i25.c -o zbar/decoder/zbar_libzbar_la-i25.o >/dev/null 2>&1
mv -f zbar/decoder/.deps/zbar_libzbar_la-i25.Tpo zbar/decoder/.deps/zbar_libzbar_la-i25.Plo
/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/decoder/zbar_libzbar_la-qr_finder.lo -MD -MP -MF zbar/decoder/.deps/zbar_libzbar_la-qr_finder.Tpo -c -o zbar/decoder/zbar_libzbar_la-qr_finder.lo `test -f 'zbar/decoder/qr_finder.c' || echo './'`zbar/decoder/qr_finder.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/decoder/zbar_libzbar_la-qr_finder.lo -MD -MP -MF zbar/decoder/.deps/zbar_libzbar_la-qr_finder.Tpo -c zbar/decoder/qr_finder.c -fPIC -DPIC -o zbar/decoder/.libs/zbar_libzbar_la-qr_finder.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/decoder/zbar_libzbar_la-qr_finder.lo -MD -MP -MF zbar/decoder/.deps/zbar_libzbar_la-qr_finder.Tpo -c zbar/decoder/qr_finder.c -o zbar/decoder/zbar_libzbar_la-qr_finder.o >/dev/null 2>&1
mv -f zbar/decoder/.deps/zbar_libzbar_la-qr_finder.Tpo zbar/decoder/.deps/zbar_libzbar_la-qr_finder.Plo
/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/qrcode/zbar_libzbar_la-qrdec.lo -MD -MP -MF zbar/qrcode/.deps/zbar_libzbar_la-qrdec.Tpo -c -o zbar/qrcode/zbar_libzbar_la-qrdec.lo `test -f 'zbar/qrcode/qrdec.c' || echo './'`zbar/qrcode/qrdec.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/qrcode/zbar_libzbar_la-qrdec.lo -MD -MP -MF zbar/qrcode/.deps/zbar_libzbar_la-qrdec.Tpo -c zbar/qrcode/qrdec.c -fPIC -DPIC -o zbar/qrcode/.libs/zbar_libzbar_la-qrdec.o
zbar/qrcode/qrdec.c: In function ‘qr_finder_quick_crossing_check’:
zbar/qrcode/qrdec.c:1215:27: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses]
if(!_img[_y0*_width+_x0]!=_v||!_img[_y1*_width+_x1]!=_v)return 1;
^~
zbar/qrcode/qrdec.c:1215:6: note: add parentheses around left hand side expression to silence this warning
if(!_img[_y0*_width+_x0]!=_v||!_img[_y1*_width+_x1]!=_v)return 1;
^~~~~~~~~~~~~~~~~~~~~
( )
zbar/qrcode/qrdec.c:1215:54: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses]
if(!_img[_y0*_width+_x0]!=_v||!_img[_y1*_width+_x1]!=_v)return 1;
^~
zbar/qrcode/qrdec.c:1215:33: note: add parentheses around left hand side expression to silence this warning
if(!_img[_y0*_width+_x0]!=_v||!_img[_y1*_width+_x1]!=_v)return 1;
^~~~~~~~~~~~~~~~~~~~~
( )
zbar/qrcode/qrdec.c:1216:45: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses]
if(!_img[(_y0+_y1>>1)*_width+(_x0+_x1>>1)]==_v)return -1;
^~
zbar/qrcode/qrdec.c:1216:6: note: add parentheses around left hand side expression to silence this warning
if(!_img[(_y0+_y1>>1)*_width+(_x0+_x1>>1)]==_v)return -1;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
( )
zbar/qrcode/qrdec.c: In function ‘qr_finder_locate_crossing’:
zbar/qrcode/qrdec.c:1257:33: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses]
if(!_img[x0[1]*_width+x0[0]]!=_v)break;
^~
zbar/qrcode/qrdec.c:1257:8: note: add parentheses around left hand side expression to silence this warning
if(!_img[x0[1]*_width+x0[0]]!=_v)break;
^~~~~~~~~~~~~~~~~~~~~~~~~
( )
zbar/qrcode/qrdec.c:1269:33: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses]
if(!_img[x1[1]*_width+x1[0]]!=_v)break;
^~
zbar/qrcode/qrdec.c:1269:8: note: add parentheses around left hand side expression to silence this warning
if(!_img[x1[1]*_width+x1[0]]!=_v)break;
^~~~~~~~~~~~~~~~~~~~~~~~~
( )
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/qrcode/zbar_libzbar_la-qrdec.lo -MD -MP -MF zbar/qrcode/.deps/zbar_libzbar_la-qrdec.Tpo -c zbar/qrcode/qrdec.c -o zbar/qrcode/zbar_libzbar_la-qrdec.o >/dev/null 2>&1
mv -f zbar/qrcode/.deps/zbar_libzbar_la-qrdec.Tpo zbar/qrcode/.deps/zbar_libzbar_la-qrdec.Plo
/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/qrcode/zbar_libzbar_la-qrdectxt.lo -MD -MP -MF zbar/qrcode/.deps/zbar_libzbar_la-qrdectxt.Tpo -c -o zbar/qrcode/zbar_libzbar_la-qrdectxt.lo `test -f 'zbar/qrcode/qrdectxt.c' || echo './'`zbar/qrcode/qrdectxt.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/qrcode/zbar_libzbar_la-qrdectxt.lo -MD -MP -MF zbar/qrcode/.deps/zbar_libzbar_la-qrdectxt.Tpo -c zbar/qrcode/qrdectxt.c -fPIC -DPIC -o zbar/qrcode/.libs/zbar_libzbar_la-qrdectxt.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/qrcode/zbar_libzbar_la-qrdectxt.lo -MD -MP -MF zbar/qrcode/.deps/zbar_libzbar_la-qrdectxt.Tpo -c zbar/qrcode/qrdectxt.c -o zbar/qrcode/zbar_libzbar_la-qrdectxt.o >/dev/null 2>&1
mv -f zbar/qrcode/.deps/zbar_libzbar_la-qrdectxt.Tpo zbar/qrcode/.deps/zbar_libzbar_la-qrdectxt.Plo
/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/qrcode/zbar_libzbar_la-rs.lo -MD -MP -MF zbar/qrcode/.deps/zbar_libzbar_la-rs.Tpo -c -o zbar/qrcode/zbar_libzbar_la-rs.lo `test -f 'zbar/qrcode/rs.c' || echo './'`zbar/qrcode/rs.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/qrcode/zbar_libzbar_la-rs.lo -MD -MP -MF zbar/qrcode/.deps/zbar_libzbar_la-rs.Tpo -c zbar/qrcode/rs.c -fPIC -DPIC -o zbar/qrcode/.libs/zbar_libzbar_la-rs.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/qrcode/zbar_libzbar_la-rs.lo -MD -MP -MF zbar/qrcode/.deps/zbar_libzbar_la-rs.Tpo -c zbar/qrcode/rs.c -o zbar/qrcode/zbar_libzbar_la-rs.o >/dev/null 2>&1
mv -f zbar/qrcode/.deps/zbar_libzbar_la-rs.Tpo zbar/qrcode/.deps/zbar_libzbar_la-rs.Plo
/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/qrcode/zbar_libzbar_la-isaac.lo -MD -MP -MF zbar/qrcode/.deps/zbar_libzbar_la-isaac.Tpo -c -o zbar/qrcode/zbar_libzbar_la-isaac.lo `test -f 'zbar/qrcode/isaac.c' || echo './'`zbar/qrcode/isaac.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/qrcode/zbar_libzbar_la-isaac.lo -MD -MP -MF zbar/qrcode/.deps/zbar_libzbar_la-isaac.Tpo -c zbar/qrcode/isaac.c -fPIC -DPIC -o zbar/qrcode/.libs/zbar_libzbar_la-isaac.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/qrcode/zbar_libzbar_la-isaac.lo -MD -MP -MF zbar/qrcode/.deps/zbar_libzbar_la-isaac.Tpo -c zbar/qrcode/isaac.c -o zbar/qrcode/zbar_libzbar_la-isaac.o >/dev/null 2>&1
mv -f zbar/qrcode/.deps/zbar_libzbar_la-isaac.Tpo zbar/qrcode/.deps/zbar_libzbar_la-isaac.Plo
/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/qrcode/zbar_libzbar_la-bch15_5.lo -MD -MP -MF zbar/qrcode/.deps/zbar_libzbar_la-bch15_5.Tpo -c -o zbar/qrcode/zbar_libzbar_la-bch15_5.lo `test -f 'zbar/qrcode/bch15_5.c' || echo './'`zbar/qrcode/bch15_5.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/qrcode/zbar_libzbar_la-bch15_5.lo -MD -MP -MF zbar/qrcode/.deps/zbar_libzbar_la-bch15_5.Tpo -c zbar/qrcode/bch15_5.c -fPIC -DPIC -o zbar/qrcode/.libs/zbar_libzbar_la-bch15_5.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/qrcode/zbar_libzbar_la-bch15_5.lo -MD -MP -MF zbar/qrcode/.deps/zbar_libzbar_la-bch15_5.Tpo -c zbar/qrcode/bch15_5.c -o zbar/qrcode/zbar_libzbar_la-bch15_5.o >/dev/null 2>&1
mv -f zbar/qrcode/.deps/zbar_libzbar_la-bch15_5.Tpo zbar/qrcode/.deps/zbar_libzbar_la-bch15_5.Plo
/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/qrcode/zbar_libzbar_la-binarize.lo -MD -MP -MF zbar/qrcode/.deps/zbar_libzbar_la-binarize.Tpo -c -o zbar/qrcode/zbar_libzbar_la-binarize.lo `test -f 'zbar/qrcode/binarize.c' || echo './'`zbar/qrcode/binarize.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/qrcode/zbar_libzbar_la-binarize.lo -MD -MP -MF zbar/qrcode/.deps/zbar_libzbar_la-binarize.Tpo -c zbar/qrcode/binarize.c -fPIC -DPIC -o zbar/qrcode/.libs/zbar_libzbar_la-binarize.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/qrcode/zbar_libzbar_la-binarize.lo -MD -MP -MF zbar/qrcode/.deps/zbar_libzbar_la-binarize.Tpo -c zbar/qrcode/binarize.c -o zbar/qrcode/zbar_libzbar_la-binarize.o >/dev/null 2>&1
mv -f zbar/qrcode/.deps/zbar_libzbar_la-binarize.Tpo zbar/qrcode/.deps/zbar_libzbar_la-binarize.Plo
/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/qrcode/zbar_libzbar_la-util.lo -MD -MP -MF zbar/qrcode/.deps/zbar_libzbar_la-util.Tpo -c -o zbar/qrcode/zbar_libzbar_la-util.lo `test -f 'zbar/qrcode/util.c' || echo './'`zbar/qrcode/util.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/qrcode/zbar_libzbar_la-util.lo -MD -MP -MF zbar/qrcode/.deps/zbar_libzbar_la-util.Tpo -c zbar/qrcode/util.c -fPIC -DPIC -o zbar/qrcode/.libs/zbar_libzbar_la-util.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/qrcode/zbar_libzbar_la-util.lo -MD -MP -MF zbar/qrcode/.deps/zbar_libzbar_la-util.Tpo -c zbar/qrcode/util.c -o zbar/qrcode/zbar_libzbar_la-util.o >/dev/null 2>&1
mv -f zbar/qrcode/.deps/zbar_libzbar_la-util.Tpo zbar/qrcode/.deps/zbar_libzbar_la-util.Plo
/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/processor/zbar_libzbar_la-posix.lo -MD -MP -MF zbar/processor/.deps/zbar_libzbar_la-posix.Tpo -c -o zbar/processor/zbar_libzbar_la-posix.lo `test -f 'zbar/processor/posix.c' || echo './'`zbar/processor/posix.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/processor/zbar_libzbar_la-posix.lo -MD -MP -MF zbar/processor/.deps/zbar_libzbar_la-posix.Tpo -c zbar/processor/posix.c -fPIC -DPIC -o zbar/processor/.libs/zbar_libzbar_la-posix.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/processor/zbar_libzbar_la-posix.lo -MD -MP -MF zbar/processor/.deps/zbar_libzbar_la-posix.Tpo -c zbar/processor/posix.c -o zbar/processor/zbar_libzbar_la-posix.o >/dev/null 2>&1
mv -f zbar/processor/.deps/zbar_libzbar_la-posix.Tpo zbar/processor/.deps/zbar_libzbar_la-posix.Plo
/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/video/zbar_libzbar_la-null.lo -MD -MP -MF zbar/video/.deps/zbar_libzbar_la-null.Tpo -c -o zbar/video/zbar_libzbar_la-null.lo `test -f 'zbar/video/null.c' || echo './'`zbar/video/null.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/video/zbar_libzbar_la-null.lo -MD -MP -MF zbar/video/.deps/zbar_libzbar_la-null.Tpo -c zbar/video/null.c -fPIC -DPIC -o zbar/video/.libs/zbar_libzbar_la-null.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/video/zbar_libzbar_la-null.lo -MD -MP -MF zbar/video/.deps/zbar_libzbar_la-null.Tpo -c zbar/video/null.c -o zbar/video/zbar_libzbar_la-null.o >/dev/null 2>&1
mv -f zbar/video/.deps/zbar_libzbar_la-null.Tpo zbar/video/.deps/zbar_libzbar_la-null.Plo
/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/zbar_libzbar_la-jpeg.lo -MD -MP -MF zbar/.deps/zbar_libzbar_la-jpeg.Tpo -c -o zbar/zbar_libzbar_la-jpeg.lo `test -f 'zbar/jpeg.c' || echo './'`zbar/jpeg.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/zbar_libzbar_la-jpeg.lo -MD -MP -MF zbar/.deps/zbar_libzbar_la-jpeg.Tpo -c zbar/jpeg.c -fPIC -DPIC -o zbar/.libs/zbar_libzbar_la-jpeg.o
zbar/jpeg.c: In function ‘_zbar_convert_jpeg_to_y’:
zbar/jpeg.c:174:39: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
cinfo->src->fill_input_buffer = fill_input_buffer;
^
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/zbar_libzbar_la-jpeg.lo -MD -MP -MF zbar/.deps/zbar_libzbar_la-jpeg.Tpo -c zbar/jpeg.c -o zbar/zbar_libzbar_la-jpeg.o >/dev/null 2>&1
mv -f zbar/.deps/zbar_libzbar_la-jpeg.Tpo zbar/.deps/zbar_libzbar_la-jpeg.Plo
/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/processor/zbar_libzbar_la-x.lo -MD -MP -MF zbar/processor/.deps/zbar_libzbar_la-x.Tpo -c -o zbar/processor/zbar_libzbar_la-x.lo `test -f 'zbar/processor/x.c' || echo './'`zbar/processor/x.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/processor/zbar_libzbar_la-x.lo -MD -MP -MF zbar/processor/.deps/zbar_libzbar_la-x.Tpo -c zbar/processor/x.c -fPIC -DPIC -o zbar/processor/.libs/zbar_libzbar_la-x.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/processor/zbar_libzbar_la-x.lo -MD -MP -MF zbar/processor/.deps/zbar_libzbar_la-x.Tpo -c zbar/processor/x.c -o zbar/processor/zbar_libzbar_la-x.o >/dev/null 2>&1
mv -f zbar/processor/.deps/zbar_libzbar_la-x.Tpo zbar/processor/.deps/zbar_libzbar_la-x.Plo
/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/window/zbar_libzbar_la-x.lo -MD -MP -MF zbar/window/.deps/zbar_libzbar_la-x.Tpo -c -o zbar/window/zbar_libzbar_la-x.lo `test -f 'zbar/window/x.c' || echo './'`zbar/window/x.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/window/zbar_libzbar_la-x.lo -MD -MP -MF zbar/window/.deps/zbar_libzbar_la-x.Tpo -c zbar/window/x.c -fPIC -DPIC -o zbar/window/.libs/zbar_libzbar_la-x.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/window/zbar_libzbar_la-x.lo -MD -MP -MF zbar/window/.deps/zbar_libzbar_la-x.Tpo -c zbar/window/x.c -o zbar/window/zbar_libzbar_la-x.o >/dev/null 2>&1
mv -f zbar/window/.deps/zbar_libzbar_la-x.Tpo zbar/window/.deps/zbar_libzbar_la-x.Plo
/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/window/zbar_libzbar_la-ximage.lo -MD -MP -MF zbar/window/.deps/zbar_libzbar_la-ximage.Tpo -c -o zbar/window/zbar_libzbar_la-ximage.lo `test -f 'zbar/window/ximage.c' || echo './'`zbar/window/ximage.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/window/zbar_libzbar_la-ximage.lo -MD -MP -MF zbar/window/.deps/zbar_libzbar_la-ximage.Tpo -c zbar/window/ximage.c -fPIC -DPIC -o zbar/window/.libs/zbar_libzbar_la-ximage.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -MT zbar/window/zbar_libzbar_la-ximage.lo -MD -MP -MF zbar/window/.deps/zbar_libzbar_la-ximage.Tpo -c zbar/window/ximage.c -o zbar/window/zbar_libzbar_la-ximage.o >/dev/null 2>&1
mv -f zbar/window/.deps/zbar_libzbar_la-ximage.Tpo zbar/window/.deps/zbar_libzbar_la-ximage.Plo
/bin/bash ./libtool --tag=CC --mode=link gcc -Wall -Wno-parentheses -no-undefined -version-info 2:0:2 -export-symbols-regex "^(zbar|_zbar.*_error)_.*" -o zbar/libzbar.la -rpath /usr/local/lib zbar/zbar_libzbar_la-config.lo zbar/zbar_libzbar_la-error.lo zbar/zbar_libzbar_la-symbol.lo zbar/zbar_libzbar_la-image.lo zbar/zbar_libzbar_la-convert.lo zbar/zbar_libzbar_la-processor.lo zbar/processor/zbar_libzbar_la-lock.lo zbar/zbar_libzbar_la-refcnt.lo zbar/zbar_libzbar_la-window.lo zbar/zbar_libzbar_la-video.lo zbar/zbar_libzbar_la-img_scanner.lo zbar/zbar_libzbar_la-scanner.lo zbar/zbar_libzbar_la-decoder.lo zbar/decoder/zbar_libzbar_la-ean.lo zbar/decoder/zbar_libzbar_la-code128.lo zbar/decoder/zbar_libzbar_la-code39.lo zbar/decoder/zbar_libzbar_la-i25.lo zbar/decoder/zbar_libzbar_la-qr_finder.lo zbar/qrcode/zbar_libzbar_la-qrdec.lo zbar/qrcode/zbar_libzbar_la-qrdectxt.lo zbar/qrcode/zbar_libzbar_la-rs.lo zbar/qrcode/zbar_libzbar_la-isaac.lo zbar/qrcode/zbar_libzbar_la-bch15_5.lo zbar/qrcode/zbar_libzbar_la-binarize.lo zbar/qrcode/zbar_libzbar_la-util.lo zbar/processor/zbar_libzbar_la-posix.lo zbar/video/zbar_libzbar_la-null.lo zbar/zbar_libzbar_la-jpeg.lo zbar/processor/zbar_libzbar_la-x.lo zbar/window/zbar_libzbar_la-x.lo zbar/window/zbar_libzbar_la-ximage.lo -lSM -lICE -lX11 -ljpeg -lpthread
libtool: link: /usr/bin/nm -B zbar/.libs/zbar_libzbar_la-config.o zbar/.libs/zbar_libzbar_la-error.o zbar/.libs/zbar_libzbar_la-symbol.o zbar/.libs/zbar_libzbar_la-image.o zbar/.libs/zbar_libzbar_la-convert.o zbar/.libs/zbar_libzbar_la-processor.o zbar/processor/.libs/zbar_libzbar_la-lock.o zbar/.libs/zbar_libzbar_la-refcnt.o zbar/.libs/zbar_libzbar_la-window.o zbar/.libs/zbar_libzbar_la-video.o zbar/.libs/zbar_libzbar_la-img_scanner.o zbar/.libs/zbar_libzbar_la-scanner.o zbar/.libs/zbar_libzbar_la-decoder.o zbar/decoder/.libs/zbar_libzbar_la-ean.o zbar/decoder/.libs/zbar_libzbar_la-code128.o zbar/decoder/.libs/zbar_libzbar_la-code39.o zbar/decoder/.libs/zbar_libzbar_la-i25.o zbar/decoder/.libs/zbar_libzbar_la-qr_finder.o zbar/qrcode/.libs/zbar_libzbar_la-qrdec.o zbar/qrcode/.libs/zbar_libzbar_la-qrdectxt.o zbar/qrcode/.libs/zbar_libzbar_la-rs.o zbar/qrcode/.libs/zbar_libzbar_la-isaac.o zbar/qrcode/.libs/zbar_libzbar_la-bch15_5.o zbar/qrcode/.libs/zbar_libzbar_la-binarize.o zbar/qrcode/.libs/zbar_libzbar_la-util.o zbar/processor/.libs/zbar_libzbar_la-posix.o zbar/video/.libs/zbar_libzbar_la-null.o zbar/.libs/zbar_libzbar_la-jpeg.o zbar/processor/.libs/zbar_libzbar_la-x.o zbar/window/.libs/zbar_libzbar_la-x.o zbar/window/.libs/zbar_libzbar_la-ximage.o | sed -n -e 's/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' | /bin/sed 's/.* //' | sort | uniq > zbar/.libs/libzbar.exp
libtool: link: /bin/grep -E -e "^(zbar|_zbar.*_error)_.*" "zbar/.libs/libzbar.exp" > "zbar/.libs/libzbar.expT"
libtool: link: mv -f "zbar/.libs/libzbar.expT" "zbar/.libs/libzbar.exp"
libtool: link: echo "{ global:" > zbar/.libs/libzbar.ver
libtool: link: cat zbar/.libs/libzbar.exp | sed -e "s/\(.*\)/\1;/" >> zbar/.libs/libzbar.ver
libtool: link: echo "local: *; };" >> zbar/.libs/libzbar.ver
libtool: link: gcc -shared zbar/.libs/zbar_libzbar_la-config.o zbar/.libs/zbar_libzbar_la-error.o zbar/.libs/zbar_libzbar_la-symbol.o zbar/.libs/zbar_libzbar_la-image.o zbar/.libs/zbar_libzbar_la-convert.o zbar/.libs/zbar_libzbar_la-processor.o zbar/processor/.libs/zbar_libzbar_la-lock.o zbar/.libs/zbar_libzbar_la-refcnt.o zbar/.libs/zbar_libzbar_la-window.o zbar/.libs/zbar_libzbar_la-video.o zbar/.libs/zbar_libzbar_la-img_scanner.o zbar/.libs/zbar_libzbar_la-scanner.o zbar/.libs/zbar_libzbar_la-decoder.o zbar/decoder/.libs/zbar_libzbar_la-ean.o zbar/decoder/.libs/zbar_libzbar_la-code128.o zbar/decoder/.libs/zbar_libzbar_la-code39.o zbar/decoder/.libs/zbar_libzbar_la-i25.o zbar/decoder/.libs/zbar_libzbar_la-qr_finder.o zbar/qrcode/.libs/zbar_libzbar_la-qrdec.o zbar/qrcode/.libs/zbar_libzbar_la-qrdectxt.o zbar/qrcode/.libs/zbar_libzbar_la-rs.o zbar/qrcode/.libs/zbar_libzbar_la-isaac.o zbar/qrcode/.libs/zbar_libzbar_la-bch15_5.o zbar/qrcode/.libs/zbar_libzbar_la-binarize.o zbar/qrcode/.libs/zbar_libzbar_la-util.o zbar/processor/.libs/zbar_libzbar_la-posix.o zbar/video/.libs/zbar_libzbar_la-null.o zbar/.libs/zbar_libzbar_la-jpeg.o zbar/processor/.libs/zbar_libzbar_la-x.o zbar/window/.libs/zbar_libzbar_la-x.o zbar/window/.libs/zbar_libzbar_la-ximage.o -lSM -lICE -lX11 -ljpeg -lpthread -Wl,-soname -Wl,libzbar.so.0 -Wl,-version-script -Wl,zbar/.libs/libzbar.ver -o zbar/.libs/libzbar.so.0.2.0
libtool: link: (cd "zbar/.libs" && rm -f "libzbar.so.0" && ln -s "libzbar.so.0.2.0" "libzbar.so.0")
libtool: link: (cd "zbar/.libs" && rm -f "libzbar.so" && ln -s "libzbar.so.0.2.0" "libzbar.so")
copying selected object files to avoid basename conflicts...
libtool: link: ln zbar/window/zbar_libzbar_la-x.o zbar/.libs/libzbar.lax/lt1-zbar_libzbar_la-x.o || cp zbar/window/zbar_libzbar_la-x.o zbar/.libs/libzbar.lax/lt1-zbar_libzbar_la-x.o
libtool: link: ar cru zbar/.libs/libzbar.a zbar/zbar_libzbar_la-config.o zbar/zbar_libzbar_la-error.o zbar/zbar_libzbar_la-symbol.o zbar/zbar_libzbar_la-image.o zbar/zbar_libzbar_la-convert.o zbar/zbar_libzbar_la-processor.o zbar/processor/zbar_libzbar_la-lock.o zbar/zbar_libzbar_la-refcnt.o zbar/zbar_libzbar_la-window.o zbar/zbar_libzbar_la-video.o zbar/zbar_libzbar_la-img_scanner.o zbar/zbar_libzbar_la-scanner.o zbar/zbar_libzbar_la-decoder.o zbar/decoder/zbar_libzbar_la-ean.o zbar/decoder/zbar_libzbar_la-code128.o zbar/decoder/zbar_libzbar_la-code39.o zbar/decoder/zbar_libzbar_la-i25.o zbar/decoder/zbar_libzbar_la-qr_finder.o zbar/qrcode/zbar_libzbar_la-qrdec.o zbar/qrcode/zbar_libzbar_la-qrdectxt.o zbar/qrcode/zbar_libzbar_la-rs.o zbar/qrcode/zbar_libzbar_la-isaac.o zbar/qrcode/zbar_libzbar_la-bch15_5.o zbar/qrcode/zbar_libzbar_la-binarize.o zbar/qrcode/zbar_libzbar_la-util.o zbar/processor/zbar_libzbar_la-posix.o zbar/video/zbar_libzbar_la-null.o zbar/zbar_libzbar_la-jpeg.o zbar/processor/zbar_libzbar_la-x.o zbar/.libs/libzbar.lax/lt1-zbar_libzbar_la-x.o zbar/window/zbar_libzbar_la-ximage.o
ar: `u' modifier ignored since `D' is the default (see `U')
libtool: link: ranlib zbar/.libs/libzbar.a
libtool: link: rm -fr zbar/.libs/libzbar.lax
libtool: link: ( cd "zbar/.libs" && rm -f "libzbar.la" && ln -s "../libzbar.la" "libzbar.la" )
gcc -DHAVE_CONFIG_H -I. -I./include -fopenmp -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -fopenmp -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/usr/local/include/ImageMagick-7 -I./include -Wall -Wno-parentheses -MT zbarimg/zbarimg_zbarimg-zbarimg.o -MD -MP -MF zbarimg/.deps/zbarimg_zbarimg-zbarimg.Tpo -c -o zbarimg/zbarimg_zbarimg-zbarimg.o `test -f 'zbarimg/zbarimg.c' || echo './'`zbarimg/zbarimg.c
mv -f zbarimg/.deps/zbarimg_zbarimg-zbarimg.Tpo zbarimg/.deps/zbarimg_zbarimg-zbarimg.Po
/bin/bash ./libtool --tag=CC --mode=link gcc -Wall -Wno-parentheses -o zbarimg/zbarimg zbarimg/zbarimg_zbarimg-zbarimg.o -L/usr/local/lib -lMagickWand-7.Q16HDRI -lMagickCore-7.Q16HDRI zbar/libzbar.la -ljpeg -lpthread
libtool: link: gcc -Wall -Wno-parentheses -o zbarimg/.libs/zbarimg zbarimg/zbarimg_zbarimg-zbarimg.o -L/usr/local/lib /usr/local/lib/libMagickWand-7.Q16HDRI.so /usr/local/lib/libMagickCore-7.Q16HDRI.so /usr/lib/x86_64-linux-gnu/libfreetype.so -lpng16 -lfontconfig -lXext -lpangocairo-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lcairo -lz -lm -lgomp zbar/.libs/libzbar.so -lSM -lICE -lX11 /usr/local/lib/libjpeg.so -lpthread -pthread -fopenmp
make[1]: Leaving directory '/home/mingc/Downloads/qrcode/zbar-0.10'
谷歌翻遍了,结果只有纯文本格式的 log 日志,这我还是第一次见到~~直到晚上,我放弃了谷歌。回到源头,在尝试改了几处错误后,我懵了~~百思不得其姐,这搞不下去了。然后我清掉了整个编译目录,重新解了 zbar 的 tar.gz 包。重来。
执行了 ./configure,然后抱着撞大运的态度执行了 make。不出所料,还是那好长一串串的错误消息。心累……
我盯着屏幕发了会儿呆,手也不自觉地又敲了个 m、a、k、e,回车——
mingc@mingc-GE60-2PL:~/Downloads/qrcode/zbar-0.10$ make
make all-am
make[1]: Entering directory '/home/mingc/Downloads/qrcode/zbar-0.10'
make[1]: Leaving directory '/home/mingc/Downloads/qrcode/zbar-0.10'
诶?这什么?等等,好像不对……这是……好了?
赶快趁热 make install!
mingc@mingc-GE60-2PL:~/Downloads/qrcode/zbar-0.10$ sudo make install
[sudo] mingc 的密码:
make install-am
make[1]: Entering directory '/home/mingc/Downloads/qrcode/zbar-0.10'
make[2]: Entering directory '/home/mingc/Downloads/qrcode/zbar-0.10'
test -z "/usr/local/lib" || /bin/mkdir -p "/usr/local/lib"
/bin/bash ./libtool --mode=install /usr/bin/install -c 'zbar/libzbar.la' '/usr/local/lib/libzbar.la'
libtool: install: /usr/bin/install -c zbar/.libs/libzbar.so.0.2.0 /usr/local/lib/libzbar.so.0.2.0
libtool: install: (cd /usr/local/lib && { ln -s -f libzbar.so.0.2.0 libzbar.so.0 || { rm -f libzbar.so.0 && ln -s libzbar.so.0.2.0 libzbar.so.0; }; })
libtool: install: (cd /usr/local/lib && { ln -s -f libzbar.so.0.2.0 libzbar.so || { rm -f libzbar.so && ln -s libzbar.so.0.2.0 libzbar.so; }; })
libtool: install: /usr/bin/install -c zbar/.libs/libzbar.lai /usr/local/lib/libzbar.la
libtool: install: /usr/bin/install -c zbar/.libs/libzbar.a /usr/local/lib/libzbar.a
libtool: install: chmod 644 /usr/local/lib/libzbar.a
libtool: install: ranlib /usr/local/lib/libzbar.a
libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/sbin" ldconfig -n /usr/local/lib
----------------------------------------------------------------------
Libraries have been installed in:
/usr/local/lib If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,-rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf' See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
test -z "/usr/local/bin" || /bin/mkdir -p "/usr/local/bin"
/bin/bash ./libtool --mode=install /usr/bin/install -c 'zbarimg/zbarimg' '/usr/local/bin/zbarimg'
libtool: install: /usr/bin/install -c zbarimg/.libs/zbarimg /usr/local/bin/zbarimg
test -z "" || /bin/mkdir -p ""
test -z "/usr/local/share/doc/zbar" || /bin/mkdir -p "/usr/local/share/doc/zbar"
/usr/bin/install -c -m 644 'COPYING' '/usr/local/share/doc/zbar/COPYING'
/usr/bin/install -c -m 644 'HACKING' '/usr/local/share/doc/zbar/HACKING'
/usr/bin/install -c -m 644 'INSTALL' '/usr/local/share/doc/zbar/INSTALL'
/usr/bin/install -c -m 644 'LICENSE' '/usr/local/share/doc/zbar/LICENSE'
/usr/bin/install -c -m 644 'NEWS' '/usr/local/share/doc/zbar/NEWS'
/usr/bin/install -c -m 644 'README' '/usr/local/share/doc/zbar/README'
/usr/bin/install -c -m 644 'TODO' '/usr/local/share/doc/zbar/TODO'
test -z "/usr/local/include" || /bin/mkdir -p "/usr/local/include"
/usr/bin/install -c -m 644 'include/zbar.h' '/usr/local/include/zbar.h'
test -z "/usr/local/share/man/man1" || /bin/mkdir -p "/usr/local/share/man/man1"
/usr/bin/install -c -m 644 'doc/man/zbarimg.1' '/usr/local/share/man/man1/zbarimg.1'
test -z "/usr/local/lib/pkgconfig" || /bin/mkdir -p "/usr/local/lib/pkgconfig"
/usr/bin/install -c -m 644 'zbar.pc' '/usr/local/lib/pkgconfig/zbar.pc'
test -z "/usr/local/share/zbar" || /bin/mkdir -p "/usr/local/share/zbar"
test -z "/usr/local/include/zbar" || /bin/mkdir -p "/usr/local/include/zbar"
/usr/bin/install -c -m 644 'include/zbar/Scanner.h' '/usr/local/include/zbar/Scanner.h'
/usr/bin/install -c -m 644 'include/zbar/Decoder.h' '/usr/local/include/zbar/Decoder.h'
/usr/bin/install -c -m 644 'include/zbar/Exception.h' '/usr/local/include/zbar/Exception.h'
/usr/bin/install -c -m 644 'include/zbar/Symbol.h' '/usr/local/include/zbar/Symbol.h'
/usr/bin/install -c -m 644 'include/zbar/Image.h' '/usr/local/include/zbar/Image.h'
/usr/bin/install -c -m 644 'include/zbar/ImageScanner.h' '/usr/local/include/zbar/ImageScanner.h'
/usr/bin/install -c -m 644 'include/zbar/Video.h' '/usr/local/include/zbar/Video.h'
/usr/bin/install -c -m 644 'include/zbar/Window.h' '/usr/local/include/zbar/Window.h'
/usr/bin/install -c -m 644 'include/zbar/Processor.h' '/usr/local/include/zbar/Processor.h'
make[2]: Leaving directory '/home/mingc/Downloads/qrcode/zbar-0.10'
make[1]: Leaving directory '/home/mingc/Downloads/qrcode/zbar-0.10'
这好像就装上了,这么棒。不行我还得检查一下
mingc@mingc-GE60-2PL:~/Downloads/qrcode/zbar-0.10$ zbarimg --version
0.10
(⊙v⊙)嗯,用 zbar 的命令行接口 zbarimg ,试一下我刚做的二维码电子名片
mingc@mingc-GE60-2PL:~/Downloads/qrcode/zbar-0.10$ zbarimg ~/Downloads/qrcode_vcard.png
QR-Code:BEGIN:VCARD
VERSION:2.1
N:Jin;mingc
FN:mingc
ORG:free man
TITLE:PHPer
TEL;WORK;VOICE:1382173xxxx
TEL;HOME;VOICE:1383284xxxx
ADR;WORK;TianJin, China
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:TianJin, China(LABEL;WORK)
ADR;HOME;TianJin, China
LABEL;HOME;ENCODING=QUOTED-PRINTABLE:TianJin, China(LABEL;HOME)
EMAIL;PREF;INTERNET:name@example.com
REV:20171201T005548Z
END:VCARD
scanned 1 barcode symbols from 1 images in 0.02 seconds
完全可以。总之,装上了。
不过这两次 make 其中的道理还是不太明白的,就留待以后了,有时间再系统整理一下编译时候的一些简单原理,暂且这么记下~
编译安装 zbar 时两次 make 带来的惊喜的更多相关文章
- 编译安装PHP 时遇到问题解决方法.
编译安装PHP时出现下面的错误代码: error 2 checking for pkg-config... /usr/bin/pkg-config configure: error: Cannot f ...
- 编译安装php时遇到virtual memory exhausted: Cannot allocate memory
有时候用vps建站时需要通过编译的方式来安装主机控制面板.对于大内存的VPS来说一般问题不大,但是对于小内存,比如512MB内存的godaddy VPS来说,很有可能会出现问题,因为编译过程是一个内存 ...
- windows平台python 2.7环境编译安装zbar
最近一个项目需要识别二维码,找来找去找到了zbar和zxing,中间越过无数坑,总算基本上弄明白,分享出来给大家. 一.zbar官方介绍 ZBar 是款桌面电脑用条形码/二维码扫描工具,支持摄像头及图 ...
- 编译安装nginx时配置开机自启
详细编译安装nginx请参考[Nginx目录结构与配置文件详解]以及[Nginx安装部署],在这里就进行简单安装 安装Nginx 环境介绍 操作系统: [root@localhost ~]# cat ...
- 编译安装php时提示Cannot find MySQL header files的解决方法
php的配置文件中有一行--with-mysql=/usr/local/mysql ,安装的时候提示:configure: error: Cannot find MySQL header files ...
- 【转】解决编译安装NGINX时make报错
编译参数:--[root@localhostnginx-1.4.6]#./configure--user=nginx--group=nginx--prefix=/usr/local/nginx--wi ...
- 使用git bash编译安装sysbench时遇到的坑
Preface When I was compiling the sysbench just now,I encountered some failures in the preced ...
- linux软件管理之------编译安装nginx服务器并手动编写自动化运行脚本
红帽系列的 linux软件管理分为三类:1. rpm 安装软件.2. yum 安装软件.3. 源码包编译安装.前面两种会在相关专题给出详细讲解.源码包的编译安装是非常关键的,我们知道linux的相关版 ...
- CentOS7编译安装Keepalived2.0.19
实验环境:centos7 节点1:10.15.192.21 节点2:10.15.192.22 vip地址:10.15.192.23 1.下载文件 cd /usr/local/src wget http ...
随机推荐
- 在tensorflow环境下安装matplotlib
在运行程序时,报错ImportError: No module named 'matplotlib',如图.经网上查询发现是没有安装matplotlib 因此记录一下在tensorflow环境下安装m ...
- 【大数据】关于Kafka的进一步理解
前置: 文件host 192.168.11.13 192.168.11.14 192.168.11.30 脚本init_kafka.sh #!/bin/bash source /etc/profile ...
- MySQL 双主问题集
最近试用MySQL高可用方案,需要配MySQL双主,对期间遇到的问题做下记录. 1.导出锁表问题 mysqldump 命令增加参数 --skip-opt -q 可避免导出时锁表: 2.导出\导入所有数 ...
- Hihocoder之conv2d()
http://hihocoder.com/contest/tupu2018/problem/2 题目2 : Standard 2D Convolution 时间限制:5000ms 单点时限:1000 ...
- 【刷题】BZOJ 2594 [Wc2006]水管局长数据加强版
Description SC省MY市有着庞大的地下水管网络,嘟嘟是MY市的水管局长(就是管水管的啦),嘟嘟作为水管局长的工作就是:每天供水公司可能要将一定量的水从x处送往y处,嘟嘟需要为供水公司找到一 ...
- 【刷题】BZOJ 3262 陌上花开
Description 有n朵花,每朵花有三个属性:花形(s).颜色(c).气味(m),用三个整数表示. 现在要对每朵花评级,一朵花的级别是它拥有的美丽能超过的花的数量. 定义一朵花A比另一朵花B要美 ...
- 解题:CF825E Minimal Labels
题面 看起来似乎是个水水的拓扑排序+堆,然而并不对,因为BFS拓扑排序的话每次只会在“当前”的点中排出一个最小/大的字典序,而我们是要一个确定的点的字典序尽量小.正确的做法是反向建图,之后跑一个字典序 ...
- mysql 中的共享锁和排他锁
共享锁(share lock) 共享锁又称读锁,是读取操作创建的锁.其他用户可以并发读取数据,但任何事务都不能对数据进行修改(获取数据上的排他锁),直到已释放所有共享锁. 如果事务T对数据A加上共享锁 ...
- egg.js路由的优雅改造
引言 在使用express,koa, 或者是egg.js进行node server开发的过程中,我们的路由基本上都是定义在controller层的,框架对于 node 原生路由都会进行一层封装,一版都 ...
- python中的协程并发
python asyncio 网络模型有很多中,为了实现高并发也有很多方案,多线程,多进程.无论多线程和多进程,IO的调度更多取决于系统,而协程的方式,调度来自用户,用户可以在函数中yield一个状态 ...