How to make Webcam C3Tech work with openSUSE 11.2

I bought a cheap webcam called C3Tech to talk with my family. But, when I installed openSUSE 11.2, I can’t work with that. Solution? Use Video4Linux to solve this.
Some data about webcam:
## lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 004: ID 093a:2620 Pixart Imaging, Inc.
Bus 005 Device 003: ID 15d9:0a4c Unknown
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 002: ID 0b97:7761 O2 Micro, Inc. Oz776 1.1 Hub
Bus 007 Device 003: ID 0b97:7772 O2 Micro, Inc. OZ776 CCID Smartcard Reader
## lspic
00:00.0 Host bridge: Intel Corporation Mobile PM965/GM965/GL960 Memory
Controller Hub (rev 0c)
00:02.0 VGA compatible controller: Intel Corporation Mobile
GM965/GL960 Integrated Graphics Controller (rev 0c)
00:02.1 Display controller: Intel Corporation Mobile GM965/GL960
Integrated Graphics Controller (rev 0c)
00:1a.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB
UHCI Controller #4 (rev 02)
00:1a.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB
UHCI Controller #5 (rev 02)
00:1a.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2
EHCI Controller #2 (rev 02)
00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio
Controller (rev 02)
00:1c.0 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express
Port 1 (rev 02)
00:1c.1 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express
Port 2 (rev 02)
00:1c.5 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express
Port 6 (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB
UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB
UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801H (ICH8 Family) USB
UHCI Controller #3 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2
EHCI Controller #1 (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev f2)
00:1f.0 ISA bridge: Intel Corporation 82801HEM (ICH8M) LPC Interface
Controller (rev 02)
00:1f.1 IDE interface: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E)
IDE Controller (rev 02)
00:1f.2 IDE interface: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E)
SATA IDE Controller (rev 02)
00:1f.3 SMBus: Intel Corporation 82801H (ICH8 Family) SMBus Controller (rev 02)
03:01.0 CardBus bridge: O2 Micro, Inc. Cardbus bridge (rev 21)
03:01.4 FireWire (IEEE 1394): O2 Micro, Inc. Firewire (IEEE 1394) (rev 02)
09:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5755M
Gigabit Ethernet PCI Express (rev 02)
0c:00.0 Network controller: Broadcom Corporation BCM4311 802.11b/g WLAN (rev 01)
## dmesg when I put the webcam on the usb port.
[ 171.660349] usb 5-1: new full speed USB device using uhci_hcd and address 4
[ 171.882653] usb 5-1: New USB device found, idVendor=093a, idProduct=2620
[ 171.882680] usb 5-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 171.882929] usb 5-1: configuration #1 chosen from 1 choice
[ 171.884721] gspca: probing 093a:2620
[ 171.889868] gspca: video0 created
[ 171.890186] gspca: probing 093a:2620
[ 171.890201] gspca: intf != 0
And now we will install the C3tech camera.
1 – First, add we add webcam repo on YaST.
2 – Search for v4l libs and devel and install it. Install linux development packages also(make, gcc, bison..) Install mercurial also.
3 – Clone the last version of V4Linux drivers to your desktop, using hg.
hg clone http://linuxtv.org/hg/v4l-dvb
4 – Enter on v4l-dvb directory and compile the source.
cd v4l-dvb
make && make install
5 – If you have errors, please check linux development packages, we will need it to compile using make.
6 – Ready! Now we will use LD_PRELOAD prefix to run some camera programs, like skype and cheese.
To skype, you can try a shell-script(create a file using your prefered text editor, add the content below and add basic permissions to execute):
#!/bin/bash
LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so skype
To cheese, the same stuff, just change the program name in the end of PREFIX line.
#!/bin/bash
LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so cheese.
And now, you can use skype and cheese with v4libs.
ALL THANKS TO DOUGSLAND. HIS WORK TO V4L IS GREAT.















