Hey, everytime i run the make comman for pwc it gives me the following error:
make -C /lib/modules/2.6.24-23-generic/build SUBDIRS=/home/sisil/Desktop/pwc-10.0.12-rc1 modules make[1]: Entering directory `/usr/src/linux-headers-2.6.24-23-generic' CC [M] /home/sisil/Desktop/pwc-10.0.12-rc1/pwc-if.o In file included from /home/sisil/Desktop/pwc-10.0.12-rc1/pwc-if.c:69: /home/sisil/Desktop/pwc-10.0.12-rc1/pwc.h:28:26: error: linux/config.h: No such file or directory /home/sisil/Desktop/pwc-10.0.12-rc1/pwc-if.c:166: error: variable ‘pwc_template’ has initializer but incomplete type /home/sisil/Desktop/pwc-10.0.12-rc1/pwc-if.c:167: error: unknown field ‘owner’ specified in initializer /home/sisil/Desktop/pwc-10.0.12-rc1/pwc-if.c:167: warning: excess elements in struct initializer /home/sisil/Desktop/pwc-10.0.12-rc1/pwc-if.c:167: warning: (near initialization for ‘pwc_template’) /home/sisil/Desktop/pwc-10.0.12-rc1/pwc-if.c:168: error: unknown field ‘name’ specified in initializer /home/sisil/Desktop/pwc-10.0.12-rc1/pwc-if.c:168: warning: excess elements in struct initializer /home/sisil/Desktop/pwc-10.0.12-rc1/pwc-if.c:168: warning: (near initialization for ‘pwc_template’) /home/sisil/Desktop/pwc-10.0.12-rc1/pwc-if.c:169: error: unknown field ‘type’ specified in initializer /home/sisil/Desktop/pwc-10.0.12-rc1/pwc-if.c:169: warning: excess elements in struct initializer /home/sisil/Desktop/pwc-10.0.12-rc1/pwc-if.c:169: warning: (near initialization for ‘pwc_template’) /home/sisil/Desktop/pwc-10.0.12-rc1/pwc-if.c:170: error: unknown field ‘hardware’ specified in initializer /home/sisil/Desktop/pwc-10.0.12-rc1/pwc-if.c:170: error: ‘VID_HARDWARE_PWC’ undeclared here (not in a function) /home/sisil/Desktop/pwc-10.0.12-rc1/pwc-if.c:170: warning: excess elements in struct initializer /home/sisil/Desktop/pwc-10.0.12-rc1/pwc-if.c:170: warning: (near initialization for ‘pwc_template’) /home/sisil/Desktop/pwc-10.0.12-rc1/pwc-if.c:171: error: unknown field ‘release’ specified in initializer /home/sisil/Desktop/pwc-10.0.12-rc1/pwc-if.c:171: error: ‘video_device_release’ undeclared here (not in a function) /home/sisil/Desktop/pwc-10.0.12-rc1/pwc-if.c:171: warning: excess elements in struct initializer /home/sisil/Desktop/pwc-10.0.12-rc1/pwc-if.c:171: warning: (near initialization for ‘pwc_template’) /home/sisil/Desktop/pwc-10.0.12-rc1/pwc-if.c:172: error: unknown field ‘fops’ specified in initializer /home/sisil/Desktop/pwc-10.0.12-rc1/pwc-if.c:172: warning: excess elements in struct initializer /home/sisil/Desktop/pwc-10.0.12-rc1/pwc-if.c:172: warning: (near initialization for ‘pwc_template’) /home/sisil/Desktop/pwc-10.0.12-rc1/pwc-if.c:173: error: unknown field ‘minor’ specified in initializer /home/sisil/Desktop/pwc-10.0.12-rc1/pwc-if.c:173: warning: excess elements in struct initializer /home/sisil/Desktop/pwc-10.0.12-rc1/pwc-if.c:173: warning: (near initialization for ‘pwc_template’) /home/sisil/Desktop/pwc-10.0.12-rc1/pwc-if.c: In function ‘pwc_isoc_init’: /home/sisil/Desktop/pwc-10.0.12-rc1/pwc-if.c:921: warning: assignment from incompatible pointer type /home/sisil/Desktop/pwc-10.0.12-rc1/pwc-if.c: In function ‘cd_to_pwc’: /home/sisil/Desktop/pwc-10.0.12-rc1/pwc-if.c:1019: error: implicit declaration of function ‘to_video_device’ /home/sisil/Desktop/pwc-10.0.12-rc1/pwc-if.c:1019: warning: initialization makes pointer from integer without a cast /home/sisil/Desktop/pwc-10.0.12-rc1/pwc-if.c:1020: error: implicit declaration of function ‘video_get_drvdata’ /home/sisil/Desktop/pwc-10.0.12-rc1/pwc-if.c:1020: warning: return makes pointer from integer without a cast /home/sisil/Desktop/pwc-10.0.12-rc1/pwc-if.c: In function ‘pwc_create_sysfs_files’: /home/sisil/Desktop/pwc-10.0.12-rc1/pwc-if.c:1062: warning: initialization makes pointer from integer without a cast /home/sisil/Desktop/pwc-10.0.12-rc1/pwc-if.c:1064: error: implicit declaration of function ‘video_device_create_file’ /home/sisil/Desktop/pwc-10.0.12-rc1/pwc-if.c: In function ‘pwc_remove_sysfs_files’: /home/sisil/Desktop/pwc-10.0.12-rc1/pwc-if.c:1070: warning: initialization makes pointer from integer without a cast /home/sisil/Desktop/pwc-10.0.12-rc1/pwc-if.c:1072: error: implicit declaration of function ‘video_device_remove_file’ /home/sisil/Desktop/pwc-10.0.12-rc1/pwc-if.c: In function ‘pwc_video_open’: /home/sisil/Desktop/pwc-10.0.12-rc1/pwc-if.c:1112: error: implicit declaration of function ‘video_devdata’ /home/sisil/Desktop/pwc-10.0.12-rc1/pwc-if.c:1112: warning: initialization makes pointer from integer without a cast /home/sisil/Desktop/pwc-10.0.12-rc1/pwc-if.c:1117: error: dereferencing pointer to incomplete type /home/sisil/Desktop/pwc-10.0.12-rc1/pwc-if.c: In function ‘pwc_video_close’: /home/sisil/Desktop/pwc-10.0.12-rc1/pwc-if.c:1231: error: dereferencing pointer to incomplete type /home/sisil/Desktop/pwc-10.0.12-rc1/pwc-if.c: In function ‘pwc_video_read’: /home/sisil/Desktop/pwc-10.0.12-rc1/pwc-if.c:1292: error: dereferencing pointer to incomplete type /home/sisil/Desktop/pwc-10.0.12-rc1/pwc-if.c: In function ‘pwc_video_poll’: /home/sisil/Desktop/pwc-10.0.12-rc1/pwc-if.c:1359: error: dereferencing pointer to incomplete type /home/sisil/Desktop/pwc-10.0.12-rc1/pwc-if.c: In function ‘pwc_video_ioctl’: /home/sisil/Desktop/pwc-10.0.12-rc1/pwc-if.c:1375: error: implicit declaration of function ‘video_usercopy’ /home/sisil/Desktop/pwc-10.0.12-rc1/pwc-if.c: In function ‘pwc_video_mmap’: /home/sisil/Desktop/pwc-10.0.12-rc1/pwc-if.c:1388: error: dereferencing pointer to incomplete type /home/sisil/Desktop/pwc-10.0.12-rc1/pwc-if.c: In function ‘usb_pwc_probe’: /home/sisil/Desktop/pwc-10.0.12-rc1/pwc-if.c:1722: error: implicit declaration of function ‘video_device_alloc’ /home/sisil/Desktop/pwc-10.0.12-rc1/pwc-if.c:1722: warning: assignment makes pointer from integer without a cast /home/sisil/Desktop/pwc-10.0.12-rc1/pwc-if.c:1729: error: invalid application of ‘sizeof’ to incomplete type ‘struct video_device’ /home/sisil/Desktop/pwc-10.0.12-rc1/pwc-if.c:1729: error: invalid application of ‘sizeof’ to incomplete type ‘struct video_device’ /home/sisil/Desktop/pwc-10.0.12-rc1/pwc-if.c:1729: error: invalid application of ‘sizeof’ to incomplete type ‘struct video_device’ /home/sisil/Desktop/pwc-10.0.12-rc1/pwc-if.c:1730: error: dereferencing pointer to incomplete type /home/sisil/Desktop/pwc-10.0.12-rc1/pwc-if.c:1731: error: dereferencing pointer to incomplete type /home/sisil/Desktop/pwc-10.0.12-rc1/pwc-if.c:1732: error: dereferencing pointer to incomplete type /home/sisil/Desktop/pwc-10.0.12-rc1/pwc-if.c:1733: error: implicit declaration of function ‘video_set_drvdata’ /home/sisil/Desktop/pwc-10.0.12-rc1/pwc-if.c:1756: error: dereferencing pointer to incomplete type /home/sisil/Desktop/pwc-10.0.12-rc1/pwc-if.c:1757: error: implicit declaration of function ‘video_register_device’ /home/sisil/Desktop/pwc-10.0.12-rc1/pwc-if.c:1757: error: ‘VFL_TYPE_GRABBER’ undeclared (first use in this function) /home/sisil/Desktop/pwc-10.0.12-rc1/pwc-if.c:1757: error: (Each undeclared identifier is reported only once /home/sisil/Desktop/pwc-10.0.12-rc1/pwc-if.c:1757: error: for each function it appears in.) /home/sisil/Desktop/pwc-10.0.12-rc1/pwc-if.c:1760: error: implicit declaration of function ‘video_device_release’ /home/sisil/Desktop/pwc-10.0.12-rc1/pwc-if.c:1765: error: dereferencing pointer to incomplete type /home/sisil/Desktop/pwc-10.0.12-rc1/pwc-if.c: In function ‘usb_pwc_disconnect’: /home/sisil/Desktop/pwc-10.0.12-rc1/pwc-if.c:1819: error: implicit declaration of function ‘video_unregister_device’ make[2]: *** [/home/sisil/Desktop/pwc-10.0.12-rc1/pwc-if.o] Error 1 make[1]: *** [_module_/home/sisil/Desktop/pwc-10.0.12-rc1] Error 2 make[1]: Leaving directory `/usr/src/linux-headers-2.6.24-23-generic' make: *** [all] Error 2
Where am i goin wrong? what else do i need to install? i read the install.en file but it isnt making any sense where i'm goin wrong thnks sisil
On Sun, 2 Aug 2009, sisil mehta wrote:
make -C /lib/modules/2.6.24-23-generic/build SUBDIRS=/home/sisil/Desktop/pwc-10.0.12-rc1 modules make[1]: Entering directory `/usr/src/linux-headers-2.6.24-23-generic' CC [M] /home/sisil/Desktop/pwc-10.0.12-rc1/pwc-if.o In file included from /home/sisil/Desktop/pwc-10.0.12-rc1/pwc-if.c:69: /home/sisil/Desktop/pwc-10.0.12-rc1/pwc.h:28:26: error: linux/config.h: No such file or directory
You need to have installed and "configured" the kernel sources in order to be able to compile a kernel driver. For example you need the "linux/config.h" file mentioned above.
Once you got past the basics of compiling drivers, you may go to http://lists.saillard.org/mailman/listinfo/pwc for driver-specific help.
This is assuming that you need to compile a kernel driver in the first place. It's not really fun, so, most people get a precompiled set of drivers (that includes pwc.ko) and they don't touch any form of kernel source code.
AND this is assuming that pwc is the driver you need. There are at least four generations of QuickCams. pwc was most popular some years ago, but then Logitech switched to using the UVC protocol, so now, you need to load uvcvideo.ko if you have those cams. QuickCam Pro 4000 are the last cams of the main series to be PWC (Philips chip). Some lower-priced series continued with PWC for a while (well, they still were sold in 2007 and I didn't check after that).
_ _ __ ___ _____ ________ _____________ _____________________ ... | Mathieu Bouchard - tél:+1.514.383.3801, Montréal, Québec