Compiling QuickCam Drivers

From wikidb
Jump to: navigation, search

This doesn't work - a work in progress

The Source Code

qc driver site

Process

 /usr/src/redhat/BUILD/kernel-2.6.15/linux-2.6.15.i586/drivers/usb/media
  • Edit Kconfig by adding the following at the end
 config USB_QC
       tristate "USB Logitech Quickcam"
       depends on USB && VIDEO_DEV
       ---help---
         Say Y or M here if you want to use one of these Logitech
         webcams:
  • Edit Makefile by adding the following at the end
 obj-$(CONFIG_USB_QC)            += qc-usb-0.6.6/
  • Comment out the following lines at line number 3047 to get rid of a syntax error in

/usr/src/redhat/BUILD/kernel-2.6.15/linux-2.6.15.i586/drivers/usb/media/qc-usb-0.6.6/qc-driver.c

   //#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)	\
   //	&& LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,15)
   //	owner:		THIS_MODULE,
   //#endif
  • Compile from /usr/src/redhat/BUILD/kernel-2.6.15/linux-2.6.15.i586/
 make modules
  • install the module /usr/src/redhat/BUILD/kernel-2.6.15/linux-2.6.15.i586/drivers/usb/media/qc-usb-0.6.6/
 insmod quickcam.ko
  • Plug in the QuickCam
  • Look at /var/log/messages to see what happened
  • Create the driver nodes
   mknod /dev/video0 c 81 0
   chmod a+r /dev/video0
   ln -s /dev/video0 /dev/video
  • Capture an image
 vidcat -s 352x288 -p y -d/dev/video0 > test.ppm
  • The above complains and I haven't figured out why
 ls: /dev/video*: No such file or directory
  • When it works, I will view the image
 gthumb test.ppm &