Guest vette Posted April 2, 2008 Report Share Posted April 2, 2008 I am running Mandriva Powerpack 2007 I am trying to get my webcam working. I found this driver http://linux-uvc.berlios.de/ and have tried to do an install with no luck. Hopefully one of you can help. Any assistance wil be appreciated. I am kinda a noob when it doesn't come in an RPM package. So please break it down Barney style for me. lol Ok here is the damage i have done so far. [root@localhost trunk]# make Building USB Video Class driver... make[1]: Entering directory `/usr/src/linux-2.6.17-13mdv' WARNING: Symbol version dump /usr/src/linux-2.6.17-13mdv/Module.symvers is missing; modules will have no dependencies and modversions. CC [M] /home/shane/trunk/uvc_driver.o CC [M] /home/shane/trunk/uvc_queue.o CC [M] /home/shane/trunk/uvc_v4l2.o CC [M] /home/shane/trunk/uvc_video.o CC [M] /home/shane/trunk/uvc_ctrl.o CC [M] /home/shane/trunk/uvc_status.o /home/shane/trunk/uvc_status.c:17:29: error: linux/usb/input.h: No such file or directory /home/shane/trunk/uvc_status.c: In function ‘uvc_input_init’: /home/shane/trunk/uvc_status.c:45: warning: implicit declaration of function ‘usb_to_input_id’ /home/shane/trunk/uvc_status.c:46: error: request for member ‘parent’ in something not a structure or union make[2]: *** [/home/shane/trunk/uvc_status.o] Error 1 make[1]: *** [_module_/home/shane/trunk] Error 2 make[1]: Leaving directory `/usr/src/linux-2.6.17-13mdv' make: *** [uvcvideo] Error 2 [root@localhost trunk]# sudo make install Installing USB Video Class driver... make[1]: Entering directory `/usr/src/linux-2.6.17-13mdv' DEPMOD 2.6.17-13mdvcustom make[1]: Leaving directory `/usr/src/linux-2.6.17-13mdv' depmod -ae `uname -r` [root@localhost trunk]# lsusb Bus 005 Device 004: ID 0bc2:3000 Seagate RSS LLC Bus 005 Device 001: ID 0000:0000 Bus 004 Device 001: ID 0000:0000 Bus 002 Device 001: ID 0000:0000 Bus 001 Device 003: ID 062a:0000 Creative Labs Bus 001 Device 001: ID 0000:0000 Bus 003 Device 001: ID 0000:0000 [root@localhost trunk]# Quote Link to comment Share on other sites More sharing options...
Greg2 Posted April 3, 2008 Report Share Posted April 3, 2008 Welcome to the board! :) First of all, (if possible) it would be easier for you to get your webcam working by upgrading to Mandriva 2008 and installing the driver with urpmi dkms-gspcav1 However if you want to use Mandriva 2007 and compile the latest driver from source, then you need to install the kernel-source package for your kernel from the /2007.0/i586/media/main/updates/ repo. Quote Link to comment Share on other sites More sharing options...
Guest dsant Posted April 5, 2008 Report Share Posted April 5, 2008 (edited) I could solve the first error, doing (same problem as Vette) : urpmi kernel-source urpmi kernel-devel and change the line 17 in uvc_status.c from : #include <linux/usb/input.h> to : #include "/usr/src/2.6.17.14-mm-desktop-6mdv/include/linux/usb/input.h" There is still a problem : /home/ds/tmp/uvc/trunk/uvc_status.c: In function ‘uvc_input_init’: /home/ds/tmp/uvc/trunk/uvc_status.c:46: error: request for member ‘parent’ in something not a structure or union I will post here if I find a solution :) this is for a philips SPC1300NC UVC webcam. Sorry, I can't change for Mandriva 2008, too old machine :( EDIT : I think the bug is not in Mandriva, but in the driver : in uvc_status.c line 46, we have : input->dev.parent = something "dev" is a "struct * uvc_device" defined in file uvcvideo.h line 593 but no "parent" here... I don't think "parent" is a C reserved word. I'am going to try to post on UVC dev-list, to know if I am wrong Dsant, from Lyon France Edited April 5, 2008 by dsant Quote Link to comment Share on other sites More sharing options...
Guest dsant Posted April 7, 2008 Report Share Posted April 7, 2008 (edited) Laurent Pinchart has posted a patch on the UVC mailing list ! the driver compilation works ! add #include <linux/version.h> in the includes I also had to : cp uvcvideo.ko /lib/modules/2.6.15-27-desktop/misc/ depmod -a modprobe uvcvideo I still have no image, but it should'nt be too long :) ========= Could you please test the attached patch and tell me if it helps ? Best regards, Laurent Pinchart Index: uvc_status.c =================================================================== --- uvc_status.c (revision 198) +++ uvc_status.c (working copy) @@ -43,7 +43,11 @@ input->name = dev->name; input->phys = phys; usb_to_input_id(udev, &input->id); +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,22) input->dev.parent = &dev->intf->dev; +#else + input->cdev.dev = &dev->intf->dev; +#endif set_bit(EV_KEY, input->evbit); set_bit(BTN_0, input->keybit); +++++++++++++++++++++++++++++ EDIT : hum, the driver can be loaded but it does not seem to be fonctionnal. Maybe I should switch to Mandriva 2008 Edited April 8, 2008 by dsant Quote Link to comment Share on other sites More sharing options...
Guest vette Posted April 7, 2008 Report Share Posted April 7, 2008 Thanks to all of you for the help. Sorry it took so long for me to reply. My ISP here in Iraq only works about one or two days a week. I finally got the gspca working. Don't know how but after i tried to get uvc working the gspca that i had previously had tried to get working started working. Now all I need to do is figure out how to make the brightness settings work. None of the configurations in kopete or ekiga work. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.