home/Administrator/ffmpeg-trunk -I/home/Administrator/ffmpeg-trunk/libavutil -I/ home/Administrator/ffmpeg-trunk/libavcodec -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BIT S=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o v4l2.o v4l2.c v4l2.c:30:23: sys/ioctl.h: No such file or directory v4l2.c:31:22: sys/mman.h: No such file or directory v4l2.c:33:23: asm/types.h: No such file or directory v4l2.c:34:29: linux/videodev2.h: No such file or directory v4l2.c:68: error: `V4L2_PIX_FMT_YUV420' undeclared here (not in a function) v4l2.c:68: error: initializer element is not constant v4l2.c:68: error: (near initialization for `fmt_conversion_table[0].v4l2_fmt') v4l2.c:69: error: initializer element is not constant v4l2.c:69: error: (near initialization for `fmt_conversion_table[0]') v4l2.c:72: error: `V4L2_PIX_FMT_YUV422P' undeclared here (not in a function) v4l2.c:72: error: initializer element is not constant v4l2.c:72: error: (near initialization for `fmt_conversion_table[1].v4l2_fmt') v4l2.c:73: error: initializer element is not constant v4l2.c:73: error: (near initialization for `fmt_conversion_table[1]') v4l2.c:76: error: `V4L2_PIX_FMT_YUYV' undeclared here (not in a function) v4l2.c:76: error: initializer element is not constant v4l2.c:76: error: (near initialization for `fmt_conversion_table[2].v4l2_fmt') v4l2.c:77: error: initializer element is not constant v4l2.c:77: error: (near initialization for `fmt_conversion_table[2]') v4l2.c:80: error: `V4L2_PIX_FMT_UYVY' undeclared here (not in a function) v4l2.c:80: error: initializer element is not constant v4l2.c:80: error: (near initialization for `fmt_conversion_table[3].v4l2_fmt') v4l2.c:81: error: initializer element is not constant v4l2.c:81: error: (near initialization for `fmt_conversion_table[3]') v4l2.c:84: error: `V4L2_PIX_FMT_YUV411P' undeclared here (not in a function) v4l2.c:84: error: initializer element is not constant v4l2.c:84: error: (near initialization for `fmt_conversion_table[4].v4l2_fmt') v4l2.c:85: error: initializer element is not constant v4l2.c:85: error: (near initialization for `fmt_conversion_table[4]') v4l2.c:88: error: `V4L2_PIX_FMT_YUV410' undeclared here (not in a function) v4l2.c:88: error: initializer element is not constant v4l2.c:88: error: (near initialization for `fmt_conversion_table[5].v4l2_fmt') v4l2.c:89: error: initializer element is not constant v4l2.c:89: error: (near initialization for `fmt_conversion_table[5]') v4l2.c:92: error: `V4L2_PIX_FMT_BGR24' undeclared here (not in a function) v4l2.c:92: error: initializer element is not constant v4l2.c:92: error: (near initialization for `fmt_conversion_table[6].v4l2_fmt') v4l2.c:93: error: initializer element is not constant v4l2.c:93: error: (near initialization for `fmt_conversion_table[6]') v4l2.c:96: error: `V4L2_PIX_FMT_RGB24' undeclared here (not in a function) v4l2.c:96: error: initializer element is not constant v4l2.c:96: error: (near initialization for `fmt_conversion_table[7].v4l2_fmt') v4l2.c:97: error: initializer element is not constant v4l2.c:97: error: (near initialization for `fmt_conversion_table[7]') v4l2.c:106: error: `V4L2_PIX_FMT_GREY' undeclared here (not in a function) v4l2.c:106: error: initializer element is not constant v4l2.c:106: error: (near initialization for `fmt_conversion_table[8].v4l2_fmt') v4l2.c:107: error: initializer element is not constant v4l2.c:107: error: (near initialization for `fmt_conversion_table[8]') v4l2.c: In function `device_open': v4l2.c:112: error: storage size of 'cap' isn't known v4l2.c:124: warning: implicit declaration of function `ioctl' v4l2.c:124: error: `VIDIOC_QUERYCAP' undeclared (first use in this function) v4l2.c:124: error: (Each undeclared identifier is reported only once v4l2.c:124: error: for each function it appears in.) v4l2.c:140: error: `V4L2_CAP_VIDEO_CAPTURE' undeclared (first use in this functi on) v4l2.c:112: warning: unused variable `cap' v4l2.c: In function `device_init': v4l2.c:153: error: storage size of 'fmt' isn't known v4l2.c:156: error: invalid application of `sizeof' to incomplete type `v4l2_form at' v4l2.c:157: error: `V4L2_BUF_TYPE_VIDEO_CAPTURE' undeclared (first use in this f unction) v4l2.c:161: error: `V4L2_FIELD_INTERLACED' undeclared (first use in this functio n) v4l2.c:162: error: `VIDIOC_S_FMT' undeclared (first use in this function) v4l2.c:153: warning: unused variable `fmt' v4l2.c: In function `first_field': v4l2.c:175: error: `v4l2_std_id' undeclared (first use in this function) v4l2.c:175: error: parse error before "std" v4l2.c:177: error: `VIDIOC_G_STD' undeclared (first use in this function) v4l2.c:177: error: `std' undeclared (first use in this function) v4l2.c:181: error: `V4L2_STD_NTSC' undeclared (first use in this function) v4l2.c: In function `mmap_init': v4l2.c:216: error: storage size of 'req' isn't known v4l2.c:219: error: invalid application of `sizeof' to incomplete type `v4l2_requ estbuffers' v4l2.c:221: error: `V4L2_BUF_TYPE_VIDEO_CAPTURE' undeclared (first use in this f unction) v4l2.c:222: error: `V4L2_MEMORY_MMAP' undeclared (first use in this function) v4l2.c:223: error: `VIDIOC_REQBUFS' undeclared (first use in this function) v4l2.c:255: error: storage size of 'buf' isn't known v4l2.c:257: error: invalid application of `sizeof' to incomplete type `v4l2_buff er' v4l2.c:261: error: `VIDIOC_QUERYBUF' undeclared (first use in this function) v4l2.c:274: warning: implicit declaration of function `mmap' v4l2.c:275: error: `PROT_READ' undeclared (first use in this function) v4l2.c:275: error: `PROT_WRITE' undeclared (first use in this function) v4l2.c:275: error: `MAP_SHARED' undeclared (first use in this function) v4l2.c:275: warning: assignment makes pointer from integer without a cast v4l2.c:276: error: `MAP_FAILED' undeclared (first use in this function) v4l2.c:255: warning: unused variable `buf' v4l2.c:216: warning: unused variable `req' v4l2.c: In function `mmap_read_frame': v4l2.c:293: error: storage size of 'buf' isn't known v4l2.c:296: error: invalid application of `sizeof' to incomplete type `v4l2_buff er' v4l2.c:297: error: `V4L2_BUF_TYPE_VIDEO_CAPTURE' undeclared (first use in this f unction) v4l2.c:298: error: `V4L2_MEMORY_MMAP' undeclared (first use in this function) v4l2.c:301: error: `VIDIOC_DQBUF' undeclared (first use in this function) v4l2.c:314: error: `VIDIOC_QBUF' undeclared (first use in this function) v4l2.c:293: warning: unused variable `buf' v4l2.c: In function `mmap_start': v4l2.c:331: error: storage size of 'type' isn't known v4l2.c:335: error: storage size of 'buf' isn't known v4l2.c:337: error: invalid application of `sizeof' to incomplete type `v4l2_buff er' v4l2.c:338: error: `V4L2_BUF_TYPE_VIDEO_CAPTURE' undeclared (first use in this f unction) v4l2.c:339: error: `V4L2_MEMORY_MMAP' undeclared (first use in this function) v4l2.c:342: error: `VIDIOC_QBUF' undeclared (first use in this function) v4l2.c:335: warning: unused variable `buf' v4l2.c:351: error: `VIDIOC_STREAMON' undeclared (first use in this function) v4l2.c:331: warning: unused variable `type' v4l2.c: In function `mmap_close': v4l2.c:363: error: storage size of 'type' isn't known v4l2.c:366: error: `V4L2_BUF_TYPE_VIDEO_CAPTURE' undeclared (first use in this f unction) v4l2.c:370: error: `VIDIOC_STREAMOFF' undeclared (first use in this function) v4l2.c:372: warning: implicit declaration of function `munmap' v4l2.c:363: warning: unused variable `type' v4l2.c: In function `v4l2_read_header': v4l2.c:457: error: `V4L2_CAP_STREAMING' undeclared (first use in this function) make[1]: *** [v4l2.o] Error 1 make[1]: Leaving directory `/home/Administrator/ffmpeg-trunk/libavformat' make: *** [lib] Error 2