Several "Undeclared" and "no member" errors while building
Hi. While building ffmpeg 8.0 I am confronted with several errors in the libavdevice/v4l2.c file. They are: libavdevice/v4l2.c: In function ‘device_open’: libavdevice/v4l2.c:191:35: error: ‘V4L2_CAP_VIDEO_CAPTURE_MPLANE’ undeclared (first use in this function) } else if (cap.capabilities & V4L2_CAP_VIDEO_CAPTURE_MPLANE) { ^ libavdevice/v4l2.c:191:35: note: each undeclared identifier is reported only once for each function it appears in libavdevice/v4l2.c:193:23: error: ‘V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE’ undeclared (first use in this function) s->buf_type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE; ^ libavdevice/v4l2.c: In function ‘mmap_init’: libavdevice/v4l2.c:394:34: error: ‘VIDEO_MAX_PLANES’ undeclared (first use in this function) struct v4l2_plane planes[VIDEO_MAX_PLANES]; ^ libavdevice/v4l2.c:399:13: error: unknown field ‘planes’ specified in initializer .m.planes = s->multiplanar ? planes : NULL, ^ libavdevice/v4l2.c:413:31: error: ‘union <anonymous>’ has no member named ‘planes’ buf_length = buf.m.planes[0].length; ^ libavdevice/v4l2.c:414:31: error: ‘union <anonymous>’ has no member named ‘planes’ buf_offset = buf.m.planes[0].m.mem_offset; ^ libavdevice/v4l2.c:394:27: warning: unused variable ‘planes’ [-Wunused-variable] struct v4l2_plane planes[VIDEO_MAX_PLANES]; ^ libavdevice/v4l2.c: In function ‘mmap_release_buffer’: libavdevice/v4l2.c:457:30: error: ‘VIDEO_MAX_PLANES’ undeclared (first use in this function) struct v4l2_plane planes[VIDEO_MAX_PLANES]; ^ libavdevice/v4l2.c:465:10: error: ‘union <anonymous>’ has no member named ‘planes’ buf.m.planes = s->multiplanar ? planes : NULL; ^ libavdevice/v4l2.c:457:23: warning: unused variable ‘planes’ [-Wunused-variable] struct v4l2_plane planes[VIDEO_MAX_PLANES]; ^ libavdevice/v4l2.c: In function ‘mmap_read_frame’: libavdevice/v4l2.c:536:30: error: ‘VIDEO_MAX_PLANES’ undeclared (first use in this function) struct v4l2_plane planes[VIDEO_MAX_PLANES]; ^ libavdevice/v4l2.c:540:9: error: unknown field ‘planes’ specified in initializer .m.planes = s->multiplanar ? planes : NULL, ^ libavdevice/v4l2.c:571:39: error: ‘union <anonymous>’ has no member named ‘planes’ bytesused = s->multiplanar ? buf.m.planes[0].bytesused : buf.bytesused; ^ libavdevice/v4l2.c:536:23: warning: unused variable ‘planes’ [-Wunused-variable] struct v4l2_plane planes[VIDEO_MAX_PLANES]; ^ libavdevice/v4l2.c: In function ‘mmap_start’: libavdevice/v4l2.c:652:34: error: ‘VIDEO_MAX_PLANES’ undeclared (first use in this function) struct v4l2_plane planes[VIDEO_MAX_PLANES]; ^ libavdevice/v4l2.c:657:13: error: unknown field ‘planes’ specified in initializer .m.planes = s->multiplanar ? planes : NULL, ^ libavdevice/v4l2.c:652:27: warning: unused variable ‘planes’ [-Wunused-variable] struct v4l2_plane planes[VIDEO_MAX_PLANES]; ^ make: *** [libavdevice/v4l2.o] Error 1 My building command: PKG_CONFIG_PATH=/arquivos/Fontconfig-2.12.0/lib/pkgconfig/:/arquivos/Freetype-2.6.5/lib/pkgconfig/:/arquivos/Vpx/lib/pkgconfig/:/arquivos/x264/lib/pkgconfig/:/arquivos/x265/lib/pkgconfig/ ./configure --prefix=/arquivos/ffmpeg-8.0/ --enable-gpl --enable-libx264 --enable-libx265 --enable-libvpx --enable-libfontconfig --enable-libfreetype
participants (1)
-
alexandre schenberg