Difference between revisions of "Compiling QuickCam Drivers"

From wikidb
Jump to: navigation, search
(New page: This doesn't work - a work in progress == The Source Code == [http://qce-ga.sourceforge.net qc driver site] == Process == * Assumes Compiling QuickCam Drivers * untar in /usr/src...)
 
(Process)
 
(One intermediate revision by the same user not shown)
Line 7: Line 7:
 
== Process ==
 
== Process ==
  
* Assumes [[Compiling QuickCam Drivers]]
+
* Assumes [[How To Compile FC5]]
* untar in
+
* Untar in
 
   /usr/src/redhat/BUILD/kernel-2.6.15/linux-2.6.15.i586/drivers/usb/media
 
   /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
+
* Edit Kconfig by adding the following at the end
 
   config USB_QC
 
   config USB_QC
 
         tristate "USB Logitech Quickcam"
 
         tristate "USB Logitech Quickcam"
Line 17: Line 17:
 
           Say Y or M here if you want to use one of these Logitech
 
           Say Y or M here if you want to use one of these Logitech
 
           webcams:
 
           webcams:
* edit Makefile by adding the following at the end
+
* Edit Makefile by adding the following at the end
 
   obj-$(CONFIG_USB_QC)            += qc-usb-0.6.6/
 
   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
+
* 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
 
/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) \
 
     //#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0) \
Line 25: Line 25:
 
     // owner: THIS_MODULE,
 
     // owner: THIS_MODULE,
 
     //#endif
 
     //#endif
* compile from /usr/src/redhat/BUILD/kernel-2.6.15/linux-2.6.15.i586/
+
* Compile from /usr/src/redhat/BUILD/kernel-2.6.15/linux-2.6.15.i586/
 
   make modules
 
   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 &

Latest revision as of 12:09, 12 October 2008

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 &