david@sneaker:~/Download/ov511-2.32$ make Building OVCam drivers for 2.6 kernel. make -C /lib/modules/2.6.22-14-generic/build SUBDIRS=/home/david/Download/ov511-2.32 modules make[1]: Entering directory `/usr/src/linux-headers-2.6.22-14-generic' CC [M] /home/david/Download/ov511-2.32/ov511_core.o /home/david/Download/ov511-2.32/ov511_core.c:29:26: error: linux/config.h: No such file or directory /home/david/Download/ov511-2.32/ov511_core.c: In function ‘ov51x_init_isoc’: /home/david/Download/ov511-2.32/ov511_core.c:3566: warning: assignment from incompatible pointer type /home/david/Download/ov511-2.32/ov511_core.c: In function ‘ov51x_open’: /home/david/Download/ov511-2.32/ov511_core.c:3818: warning: implicit declaration of function ‘video_devdata’ /home/david/Download/ov511-2.32/ov511_core.c:3818: warning: initialization makes pointer from integer without a cast /home/david/Download/ov511-2.32/ov511_core.c:3819: warning: implicit declaration of function ‘video_get_drvdata’ /home/david/Download/ov511-2.32/ov511_core.c:3819: warning: initialization makes pointer from integer without a cast /home/david/Download/ov511-2.32/ov511_core.c: In function ‘ov51x_release’: /home/david/Download/ov511-2.32/ov511_core.c:3885: warning: initialization makes pointer from integer without a cast /home/david/Download/ov511-2.32/ov511_core.c: In function ‘ov51x_do_ioctl’: /home/david/Download/ov511-2.32/ov511_core.c:3924: warning: initialization makes pointer from integer without a cast /home/david/Download/ov511-2.32/ov511_core.c:3944: warning: implicit declaration of function ‘v4l_print_ioctl’ /home/david/Download/ov511-2.32/ov511_core.c:4303: error: dereferencing pointer to incomplete type /home/david/Download/ov511-2.32/ov511_core.c: In function ‘ov51x_ioctl’: /home/david/Download/ov511-2.32/ov511_core.c:4743: warning: initialization makes pointer from integer without a cast /home/david/Download/ov511-2.32/ov511_core.c:4749: warning: implicit declaration of function ‘video_usercopy’ /home/david/Download/ov511-2.32/ov511_core.c: In function ‘ov51x_read’: /home/david/Download/ov511-2.32/ov511_core.c:4765: warning: initialization makes pointer from integer without a cast /home/david/Download/ov511-2.32/ov511_core.c: In function ‘ov51x_mmap’: /home/david/Download/ov511-2.32/ov511_core.c:4920: warning: initialization makes pointer from integer without a cast /home/david/Download/ov511-2.32/ov511_core.c: At top level: /home/david/Download/ov511-2.32/ov511_core.c:4974: error: ‘v4l_compat_ioctl32’ undeclared here (not in a function) /home/david/Download/ov511-2.32/ov511_core.c:4979: error: variable ‘vdev_template’ has initializer but incomplete type /home/david/Download/ov511-2.32/ov511_core.c:4980: error: unknown field ‘owner’ specified in initializer /home/david/Download/ov511-2.32/ov511_core.c:4980: warning: excess elements in struct initializer /home/david/Download/ov511-2.32/ov511_core.c:4980: warning: (near initialization for ‘vdev_template’) /home/david/Download/ov511-2.32/ov511_core.c:4981: error: unknown field ‘name’ specified in initializer /home/david/Download/ov511-2.32/ov511_core.c:4981: warning: excess elements in struct initializer /home/david/Download/ov511-2.32/ov511_core.c:4981: warning: (near initialization for ‘vdev_template’) /home/david/Download/ov511-2.32/ov511_core.c:4982: error: unknown field ‘type’ specified in initializer /home/david/Download/ov511-2.32/ov511_core.c:4982: warning: excess elements in struct initializer /home/david/Download/ov511-2.32/ov511_core.c:4982: warning: (near initialization for ‘vdev_template’) /home/david/Download/ov511-2.32/ov511_core.c:4983: error: unknown field ‘hardware’ specified in initializer /home/david/Download/ov511-2.32/ov511_core.c:4983: warning: excess elements in struct initializer /home/david/Download/ov511-2.32/ov511_core.c:4983: warning: (near initialization for ‘vdev_template’) /home/david/Download/ov511-2.32/ov511_core.c:4984: error: unknown field ‘fops’ specified in initializer /home/david/Download/ov511-2.32/ov511_core.c:4984: warning: excess elements in struct initializer /home/david/Download/ov511-2.32/ov511_core.c:4984: warning: (near initialization for ‘vdev_template’) /home/david/Download/ov511-2.32/ov511_core.c:4986: error: unknown field ‘release’ specified in initializer /home/david/Download/ov511-2.32/ov511_core.c:4986: error: ‘video_device_release’ undeclared here (not in a function) /home/david/Download/ov511-2.32/ov511_core.c:4986: warning: excess elements in struct initializer /home/david/Download/ov511-2.32/ov511_core.c:4986: warning: (near initialization for ‘vdev_template’) /home/david/Download/ov511-2.32/ov511_core.c:4988: error: unknown field ‘minor’ specified in initializer /home/david/Download/ov511-2.32/ov511_core.c:4988: warning: excess elements in struct initializer /home/david/Download/ov511-2.32/ov511_core.c:4988: warning: (near initialization for ‘vdev_template’) /home/david/Download/ov511-2.32/ov511_core.c: In function ‘cd_to_ov’: /home/david/Download/ov511-2.32/ov511_core.c:5543: warning: implicit declaration of function ‘to_video_device’ /home/david/Download/ov511-2.32/ov511_core.c:5543: warning: initialization makes pointer from integer without a cast /home/david/Download/ov511-2.32/ov511_core.c:5544: warning: return makes pointer from integer without a cast /home/david/Download/ov511-2.32/ov511_core.c: In function ‘show_sensor’: /home/david/Download/ov511-2.32/ov511_core.c:5571: error: ‘senlist’ undeclared (first use in this function) /home/david/Download/ov511-2.32/ov511_core.c:5571: error: (Each undeclared identifier is reported only once /home/david/Download/ov511-2.32/ov511_core.c:5571: error: for each function it appears in.) /home/david/Download/ov511-2.32/ov511_core.c: In function ‘ov_create_sysfs’: /home/david/Download/ov511-2.32/ov511_core.c:5637: warning: implicit declaration of function ‘video_device_create_file’ /home/david/Download/ov511-2.32/ov511_core.c: In function ‘ov51x_probe’: /home/david/Download/ov511-2.32/ov511_core.c:5815: warning: implicit declaration of function ‘video_device_alloc’ /home/david/Download/ov511-2.32/ov511_core.c:5815: warning: assignment makes pointer from integer without a cast /home/david/Download/ov511-2.32/ov511_core.c:5819: error: dereferencing pointer to incomplete type /home/david/Download/ov511-2.32/ov511_core.c:5819: error: dereferencing pointer to incomplete type /home/david/Download/ov511-2.32/ov511_core.c:5819: error: dereferencing pointer to incomplete type /home/david/Download/ov511-2.32/ov511_core.c:5821: error: dereferencing pointer to incomplete type /home/david/Download/ov511-2.32/ov511_core.c:5823: warning: implicit declaration of function ‘video_set_drvdata’ /home/david/Download/ov511-2.32/ov511_core.c:5829: warning: implicit declaration of function ‘video_register_device’ /home/david/Download/ov511-2.32/ov511_core.c:5829: error: ‘VFL_TYPE_GRABBER’ undeclared (first use in this function) /home/david/Download/ov511-2.32/ov511_core.c:5835: error: dereferencing pointer to incomplete type /home/david/Download/ov511-2.32/ov511_core.c:5850: error: dereferencing pointer to incomplete type /home/david/Download/ov511-2.32/ov511_core.c:5856: error: dereferencing pointer to incomplete type /home/david/Download/ov511-2.32/ov511_core.c:5860: error: dereferencing pointer to incomplete type /home/david/Download/ov511-2.32/ov511_core.c:5882: error: dereferencing pointer to incomplete type /home/david/Download/ov511-2.32/ov511_core.c:5883: warning: implicit declaration of function ‘video_device_release’ /home/david/Download/ov511-2.32/ov511_core.c:5885: warning: implicit declaration of function ‘video_unregister_device’ make[2]: *** [/home/david/Download/ov511-2.32/ov511_core.o] Error 1 make[1]: *** [_module_/home/david/Download/ov511-2.32] Error 2 make[1]: Leaving directory `/usr/src/linux-headers-2.6.22-14-generic' make: *** [default] Error 2