#126 Zbar install from source fails linux

latest_mercurial
open
nobody
None
5
2015-02-03
2014-02-18
No

ok first of all:

linux::: Linux Me 3.5.0-45-generic #68~precise1-Ubuntu SMP Wed Dec 4 16:19:28 UTC 2013 i686 athlon i386 GNU/Linux

Hi, I downloaded the code from the repo. I installed all the libs and

then I ran autoreconf --install
then ./configure
then make
and everything went fine.

Then I ran sudo checkinstall, and it failed (output below).

then I ran "make check" and it failed. The final lines are below.

I don't know if I don't have some libraries installed but this seems to be a problem in the source.

xdpyinfo is available

Output of make check:

libtool: link: gcc -Wall -Wno-parentheses -Werror -g -O2 -o test/.libs/test_video test/test_video.o test/test_images.o  zbar/.libs/libzbar.so -ljpeg -lpthread -lrt
depbase=`echo test/test_proc.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
    gcc -DHAVE_CONFIG_H -I. -I./include  -I./include  -Wall -Wno-parentheses -Werror -g -O2 -MT test/test_proc.o -MD -MP -MF $depbase.Tpo -c -o test/test_proc.o test/test_proc.c &&\
    mv -f $depbase.Tpo $depbase.Po
/bin/bash ./libtool --tag=CC   --mode=link gcc -Wall -Wno-parentheses -Werror -g -O2   -o test/test_proc test/test_proc.o test/test_images.o zbar/libzbar.la  -ljpeg -lpthread -lrt 
libtool: link: gcc -Wall -Wno-parentheses -Werror -g -O2 -o test/.libs/test_proc test/test_proc.o test/test_images.o  zbar/.libs/libzbar.so -ljpeg -lpthread -lrt
depbase=`echo test/test_cpp.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
    g++ -DHAVE_CONFIG_H -I. -I./include  -I./include  -Wall -Wno-parentheses -Werror -g -O2 -MT test/test_cpp.o -MD -MP -MF $depbase.Tpo -c -o test/test_cpp.o test/test_cpp.cpp &&\
    mv -f $depbase.Tpo $depbase.Po
In file included from ./include/zbar.h:1487:0,
                 from test/test_cpp.cpp:26:
./include/zbar/Exception.h:43:34: error: ‘NULL’ was not declared in this scope
./include/zbar/Exception.h: In constructor ‘zbar::FormatError::FormatError()’:
./include/zbar/Exception.h:144:7: error: the default argument for parameter 0 of ‘zbar::Exception::Exception(const void*)’ has not yet been parsed
In file included from ./include/zbar.h:1491:0,
                 from test/test_cpp.cpp:26:
./include/zbar/Image.h: In member function ‘zbar::Image zbar::Image::convert(long unsigned int) const’:
./include/zbar/Image.h:255:27: note: synthesized method ‘zbar::FormatError::FormatError()’ first required here 
make[3]: *** [test/test_cpp.o] Error 1
make[3]: Leaving directory `/usr/local/src/zbar_0_10'
make[2]: *** [check-am] Error 2
make[2]: Leaving directory `/usr/local/src/zbar_0_10'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/zbar_0_10'
make: *** [check] Error 2

Here is the output of sudo checkinstall

test -z "/usr/local/share/doc/zbar" || /bin/mkdir -p "/usr/local/share/doc/zbar"
 /usr/bin/install -c -m 644 COPYING HACKING INSTALL LICENSE NEWS README TODO '/usr/local/share/doc/zbar'
test -z "/usr/local/include" || /bin/mkdir -p "/usr/local/include"
 /usr/bin/install -c -m 644 include/zbar.h '/usr/local/include'
make[4]: Entering directory `/usr/local/src/zbar_0_10'
: --searchpath /usr/local/src/zbar_0_10/doc -m /usr/local/src/zbar_0_10/doc/style.xsl --skip-validation  -o doc/man man doc/manual.xml
make[4]: Leaving directory `/usr/local/src/zbar_0_10'
make[4]: Entering directory `/usr/local/src/zbar_0_10'
: --searchpath /usr/local/src/zbar_0_10/doc -m /usr/local/src/zbar_0_10/doc/style.xsl --skip-validation  -o doc/man man doc/manual.xml
make[4]: Leaving directory `/usr/local/src/zbar_0_10'
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 ./doc/man/zbarcam.1 '/usr/local/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]: *** [install-man1] Error 1
make[3]: Leaving directory `/usr/local/src/zbar_0_10'
make[2]: *** [install-am] Error 2
make[2]: Leaving directory `/usr/local/src/zbar_0_10'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/zbar_0_10'
make: *** [install] Error 2

****  Installation failed. Aborting package creation.

v4l-info:

### v4l2 device info [/dev/video0] ###
general info
    VIDIOC_QUERYCAP
    driver                  : "uvcvideo"
    card                    : "HP Webcam"
    bus_info                : "usb-0000:00:12.2-3"
    version                 : 3.5.7
    capabilities            : 0x4000001 [VIDEO_CAPTURE,STREAMING]

standards

inputs
    VIDIOC_ENUMINPUT(0)
    index                   : 0
    name                    : "Camera 1"
    type                    : CAMERA
    audioset                : 0
    tuner                   : 0
    std                     : 0x0 []
    status                  : 0x0 []

video capture
    VIDIOC_ENUM_FMT(0,VIDEO_CAPTURE)
    index                   : 0
    type                    : VIDEO_CAPTURE
    flags                   : 0
    description             : "YUV 4:2:2 (YUYV)"
    pixelformat             : 0x56595559 [YUYV]
    VIDIOC_G_FMT(VIDEO_CAPTURE)
    type                    : VIDEO_CAPTURE
    fmt.pix.width           : 640
    fmt.pix.height          : 480
    fmt.pix.pixelformat     : 0x56595559 [YUYV]
    fmt.pix.field           : NONE
    fmt.pix.bytesperline    : 1280
    fmt.pix.sizeimage       : 614400
    fmt.pix.colorspace      : SRGB
    fmt.pix.priv            : 0

controls
    VIDIOC_QUERYCTRL(BASE+0)
    id                      : 9963776
    type                    : INTEGER
    name                    : "Brightness"
    minimum                 : -64
    maximum                 : 64
    step                    : 1
    default_value           : 0
    flags                   : 0
    VIDIOC_QUERYCTRL(BASE+1)
    id                      : 9963777
    type                    : INTEGER
    name                    : "Contrast"
    minimum                 : 0
    maximum                 : 64
    step                    : 1
    default_value           : 22
    flags                   : 0
    VIDIOC_QUERYCTRL(BASE+2)
    id                      : 9963778
    type                    : INTEGER
    name                    : "Saturation"
    minimum                 : 0
    maximum                 : 128
    step                    : 1
    default_value           : 67
    flags                   : 0
    VIDIOC_QUERYCTRL(BASE+3)
    id                      : 9963779
    type                    : INTEGER
    name                    : "Hue"
    minimum                 : -40
    maximum                 : 40
    step                    : 1
    default_value           : 0
    flags                   : 0
    VIDIOC_QUERYCTRL(BASE+12)
    id                      : 9963788
    type                    : BOOLEAN
    name                    : "White Balance Temperature, Auto"
    minimum                 : 0
    maximum                 : 1
    step                    : 1
    default_value           : 1
    flags                   : 0
    VIDIOC_QUERYCTRL(BASE+16)
    id                      : 9963792
    type                    : INTEGER
    name                    : "Gamma"
    minimum                 : 72
    maximum                 : 500
    step                    : 1
    default_value           : 125
    flags                   : 0
    VIDIOC_QUERYCTRL(BASE+19)
    id                      : 9963795
    type                    : INTEGER
    name                    : "Gain"
    minimum                 : 0
    maximum                 : 100
    step                    : 1
    default_value           : 0
    flags                   : 0
    VIDIOC_QUERYCTRL(BASE+24)
    id                      : 9963800
    type                    : MENU
    name                    : "Power Line Frequency"
    minimum                 : 0
    maximum                 : 2
    step                    : 1
    default_value           : 2
    flags                   : 0
    VIDIOC_QUERYCTRL(BASE+26)
    id                      : 9963802
    type                    : INTEGER
    name                    : "White Balance Temperature"
    minimum                 : 2800
    maximum                 : 6500
    step                    : 1
    default_value           : 4600
    flags                   : 16
    VIDIOC_QUERYCTRL(BASE+27)
    id                      : 9963803
    type                    : INTEGER
    name                    : "Sharpness"
    minimum                 : 0
    maximum                 : 6
    step                    : 1
    default_value           : 3
    flags                   : 0
    VIDIOC_QUERYCTRL(BASE+28)
    id                      : 9963804
    type                    : INTEGER
    name                    : "Backlight Compensation"
    minimum                 : 0
    maximum                 : 2
    step                    : 1
    default_value           : 1
    flags                   : 0

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks