make error / spca5xx driver with SUSE 10.2
Hi,
Recently I purchased an HP dv2000z Pavilion laptop. Naturally, some things didn't work out of the box and so it's an expedition to find drivers, make, make install. A quick dmesg verifies that built-in cam as: /*** usb 2-8: new device found, idVendor=0c45, idProduct=62c0 usb 2-8: new device strings: Mfr=2, Product=1, SerialNumber=3 usb 2-8: Product: USB 2.0 Camera usb 2-8: Manufacturer: Sonix Technology Co., Ltd. usb 2-8: SerialNumber: SN0001 ***/ The spca5xx driver from http://mxhaard.free.fr/spca5xx.html appears to support the device. But an initial make returns 'beaucoup' errors, the first of which is: /*** linux-rv02:/home/*/spca5xx-20060501 # make Building SPCA5XX driver for 2.5/2.6 kernel. Remember: you must have read/write access to your kernel source tree. make -C /lib/modules/`uname -r`/build SUBDIRS=/home/*/spca5xx-20060501 CC=cc modules make[1]: Entering directory `/usr/src/linux-2.6.18.2-34-obj/i386/default' make -C ../../../linux-2.6.18.2-34 O=../linux-2.6.18.2-34-obj/i386/default modules CC [M] /home/*/spca5xx-20060501/drivers/usb/spca5xx.o /home/*/spca5xx-20060501/drivers/usb/spca5xx.c: In function ‘spca5xx_open’: /home/*/spca5xx-20060501/drivers/usb/spca5xx.c:2392: error: implicit declaration of function ‘video_devdata’ ***/ Any suggestions are most appreciated. ~~Seasons Greetings~~ Peace |
Does this directory exist on your drive. /usr/src/linux-2.6.18.2-34-obj/i386/default
Brian |
Yes, thank you!:
linux-rv02:/home/*/spca5xx-20060501 # cd /usr/src/linux-2.6.18.2-34-obj/i386/default linux-rv02:/usr/src/linux-2.6.18.2-34-obj/i386/default # l total 472 drwxr-xr-x 6 root root 4096 Dec 16 23:10 ./ drwxr-xr-x 9 root root 4096 Dec 16 23:10 ../ -rw-r--r-- 1 root root 72710 Nov 27 13:15 .config -rw-r--r-- 1 root root 432 Nov 27 13:15 Makefile -rw-r--r-- 1 root root 370378 Nov 27 13:40 Module.symvers drwxr-xr-x 3 root root 4096 Dec 16 23:10 arch/ drwxr-xr-x 5 root root 4096 Dec 16 23:10 include/ drwxr-xr-x 2 root root 4096 Dec 16 23:10 include2/ drwxr-xr-x 6 root root 4096 Dec 16 23:11 scripts/ linux-rv02:/usr/src/linux-2.6.18.2-34-obj/i386/default # |
Add the following include line to the file drivers/usb/spca5xx.c
#include <media/v4l2-common.h> That cleared up the problem for me. |
Thanks newbie--I'll give that a shot!!
|
sorry that's thanks to 'fortytwo'
|
Follow up,
Well, that allow the spca driver to link and compile and it shows running with lsmod, but Ekiga doesn't recognize the camera 'video0' as present nor does it ls in /dev/. Also, no sound--the test fails with verbiage could not detect dsp. In between your reply and when I opened the thread, I went out and researched and determined another driver uvcvideo allows the camera to work, but still no sound. The only other thing I have to try with the uvcvideo is to update the alsa sound driver, I am using 1.0.13-22. I'd go with either driver if it worked. Any other suggestions appreciated as always. Thanks |
All times are GMT -5. The time now is 03:44 AM. |