树莓派安装zbar,编译出现问题
zbar/video/v4l1.c: In function ‘v4l1_nq’:zbar/video/v4l1.c:94:23: error: storage size of ‘vmap’ isn’t known
zbar/video/v4l1.c:99:23: error: ‘VIDIOCMCAPTURE’ undeclared (first use in this function)
zbar/video/v4l1.c:99:23: note: each undeclared identifier is reported only once for each function it appears in
zbar/video/v4l1.c:94:23: warning: unused variable ‘vmap’ [-Wunused-variable]
zbar/video/v4l1.c: In function ‘v4l1_dq’:
zbar/video/v4l1.c:116:22: error: ‘VIDIOCSYNC’ undeclared (first use in this function)
zbar/video/v4l1.c: In function ‘v4l1_mmap_buffers’:
zbar/video/v4l1.c:129:23: error: storage size of ‘vbuf’ isn’t known
zbar/video/v4l1.c:131:23: error: ‘VIDIOCGMBUF’ undeclared (first use in this function)
zbar/video/v4l1.c:129:23: warning: unused variable ‘vbuf’ [-Wunused-variable]
zbar/video/v4l1.c: In function ‘v4l1_set_format’:
zbar/video/v4l1.c:181:26: error: storage size of ‘vpic’ isn’t known
zbar/video/v4l1.c:183:23: error: ‘VIDIOCGPICT’ undeclared (first use in this function)
zbar/video/v4l1.c:189:27: error: ‘VIDEO_PALETTE_YUV410P’ undeclared (first use in this function)
zbar/video/v4l1.c:198:23: error: ‘VIDIOCSPICT’ undeclared (first use in this function)
zbar/video/v4l1.c:181:26: warning: unused variable ‘vpic’ [-Wunused-variable]
zbar/video/v4l1.c: In function ‘v4l1_probe_iomode’:
zbar/video/v4l1.c:261:23: error: storage size of ‘vbuf’ isn’t known
zbar/video/v4l1.c:263:23: error: ‘VIDIOCGMBUF’ undeclared (first use in this function)
zbar/video/v4l1.c:261:23: warning: unused variable ‘vbuf’ [-Wunused-variable]
zbar/video/v4l1.c: In function ‘v4l1_probe_formats’:
zbar/video/v4l1.c:283:26: error: storage size of ‘vpic’ isn’t known
zbar/video/v4l1.c:285:23: error: ‘VIDIOCGPICT’ undeclared (first use in this function)
zbar/video/v4l1.c:290:24: error: ‘VIDEO_PALETTE_YUV410P’ undeclared (first use in this function)
zbar/video/v4l1.c:309:27: error: ‘VIDIOCSPICT’ undeclared (first use in this function)
zbar/video/v4l1.c:283:26: warning: unused variable ‘vpic’ [-Wunused-variable]
zbar/video/v4l1.c: In function ‘v4l1_init_window’:
zbar/video/v4l1.c:332:25: error: storage size of ‘vwin’ isn’t known
zbar/video/v4l1.c:334:23: error: ‘VIDIOCGWIN’ undeclared (first use in this function)
zbar/video/v4l1.c:346:25: error: storage size of ‘maxwin’ isn’t known
zbar/video/v4l1.c:354:23: error: ‘VIDIOCSWIN’ undeclared (first use in this function)
zbar/video/v4l1.c:346:25: warning: unused variable ‘maxwin’ [-Wunused-variable]
zbar/video/v4l1.c:332:25: warning: unused variable ‘vwin’ [-Wunused-variable]
zbar/video/v4l1.c: In function ‘_zbar_v4l1_probe’:
zbar/video/v4l1.c:377:29: error: storage size of ‘vcap’ isn’t known
zbar/video/v4l1.c:379:23: error: ‘VIDIOCGCAP’ undeclared (first use in this function)
zbar/video/v4l1.c:377:29: warning: unused variable ‘vcap’ [-Wunused-variable]
make: *** Error 1
make: Leaving directory `/home/pi/zbar-0.10'
make: *** Error 2
(附件为v4l1的txt档)
页:
[1]